In a custom payement gateway, where the store redirects to third party website for payment. To request i have options to send either in POST/GET. I'm requesting with POST method. But the response they give is in get method.
The response url according to their documentation is http://yoursite.com/success?q=su&oid=XYZ1234&amt=100&refId=000AE01
And in my case i have captured response at http://yoursite.com/cgateway/payment/response
with responseAction
method of PaymentController.php
controller.
The result i obtained is http://yoursite.com/cgateway/payment/response?q=su&oid=XYZ1234&amt=100&refId=000AE01
Now the problem is how should i get those data in responseAction
in PaymentController ?
Best Answer
To get params in a controller you can use:
or