After receiving the URL from the payment gateway, this is the format:
#/app/booking/details?id=25&success=true&paymentId=123&token=xx2311&PayerID=QSWAA
My route configuration currently looks like this:
.state('app.booking.details', {
url: '/details/:id/:paymentId',
views: {
'mainView@app': {
templateUrl: 'views/details_booking.html'
}
},
css: ['assets/css/styles.css','assets/css/plugins.css'],
resolve: loadSequence('bookingCtrl')
})
I am facing an issue where I am unable to separate the URL and pass it to the server. The only parameter that is successfully passed through is id
. Here is my Laravel 5.1 method so far:
public function getBookingDetailAPI(Request $request)
{
$oid = $request->input('paymentId'); --> null
$oid = $request->input('id'); --> 25
dd($oid);
}