Closed robertnicjoo closed 5 years ago
Hi,
When I try to return results in specific route or page i'm getting error 400 but receiving token as well!
400
try { $snap_token = $midtrans->getSnapToken($transaction_data); $project->payment_verified = 'y'; $project->save(); //return redirect($vtweb_url); return redirect()->back()->with('success', 'Done '.$snap_token); } catch (Exception $e) { return $e->getMessage; }
but if i use default echo $snap_token; everything works just fine.
echo $snap_token;
what is the issue with it?
anyone?
can you make sure that the token passed to the front? if you have, then this occured, means there's a trouble with the snap itself. Please contact support@midtrans.com
Hi,
When I try to return results in specific route or page i'm getting error
400
but receiving token as well!but if i use default
echo $snap_token;
everything works just fine.what is the issue with it?