I have following format url returned from payment gateway:
#/app/booking/details?id=25&success=true&paymentId=123&token=xx2311&PayerID=QSWAA
Currently my route config as follow:
.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')
})
Unfortunately I can't separate the url and pass it to server. How can I resolve these. So far only id is able to pass through. These are my Laravel 5.1 method:
public function getBookingDetailAPI(Request $request)
{
$oid = $request->input('paymentId'); --> null
$oid = $request->input('id'); --> 25
dd($oid);
}