php - Redirect with Variables in Laravel | Payment Gateway -
i see lot of similar questions being asked on stack overflow none seem work me. hence asking here.
the case simple. trying integrate payment gateway - asking me submit form set of data it's url.
url: https://test.examplepg.com/_payment
form\parameters:
<form action="<?php echo $action; ?>" method="post" name="payuform"> <input type="hidden" name="_token" value="<?php csrf_token() ?>"> <input type="hidden" name="key" value="<?php echo $merchant_key ?>" /> <input type="hidden" name="hash" value="<?php echo $hash ?>"/> <input type="hidden" name="txnid" value="<?php echo $txnid ?>" /> <input type="hidden" name="amount" value="<?php echo $amount ?>" /> <input type="hidden" name="firstname" id="firstname" value="<?php echo $firstname ?>" /> <input type="hidden" name="email" id="email" value="<?php echo $email ?>" /> <input type="hidden" name="phone" value="<?php echo $phone ?>" /> <input type="hidden" name="productinfo" value="<?php echo "product 1, 2"?>" size="64" /> <input type="hidden" name="surl" value="<?php echo $successurl?>" size="64" /> <input type="hidden" name="furl" value="<?php echo $failureurl?>" size="64" /> <input type="hidden" name="bankcode" value="<?php echo $bankcode; ?>" /> .... <?php if($hash) { ?> <input type="submit" value="submit" /> <?php } ?> </form>
instead of creating form/view , writing javascript submit form, laravel redirect post data (or similar). possible?
curl wouldn't work user needs on url verification.
thanks in advance.
Comments
Post a Comment