How to implement response URL that gets called from Payment gateway
Hi,
I am developing an application that uses Atom payment gateway. Once a payment is done on Atom Payment gateway page, it redirects the user back to a order received page with payment status. This URL is passed to Atom Payment gateway as part of payment request.
The problem is when I print the request variable, it always prints an empty array. I am not sure if I am doing this the correct way.
There is the URL being passed to Atom as part of payment request.
http://xxxxxxx.com/alliedorder/order-received/
Here is the route I have added in my web.php file
Route::get('/alliedorder/order-received/', 'AlliedServicesController@displayOrderResult');
And here is my controller method
public function displayOrderResult(Request $request) {
dd(request()->all());
return view('usernav.orderResult');
}
dd(request()->all())) prints an empty array.
when I change my Route from get to post, i am getting methodNotAllowed Exception. at RouteCollection->methodNotAllowed(array('POST')) in RouteCollection.php line 220
Please help me in resolving this issue.
Please or to participate in this conversation.