Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save javedLive/4727e97a2fee56c60fdea689a397cc11 to your computer and use it in GitHub Desktop.
Save javedLive/4727e97a2fee56c60fdea689a397cc11 to your computer and use it in GitHub Desktop.
SSL COMMERZ Payment Gateway with Laravel (SandBox)
<form id="payment_gw" action="https://sandbox.sslcommerz.com/gwprocess/v3/process.php" method="post" name="payment_gw">
<input type="hidden" name="store_id" value="test" />
<input type="hidden" name="total_amount" value="{{$total_amount}}" /> // Amount to be paid
<input type="hidden" name="tran_id" value="{{$tran_id }}" /> // A transaction id which will be needed to check valid transaction
<input type="hidden" name="success_url" value="http://laravel-bd.com/shop-success" />
<input type="hidden" name="fail_url" value="http://laravel-bd.com/shop-failure" />
<input type="hidden" name="cancel_url" value="http://laravel-bd.com/shop-cancel" />
</form>
<script type='text/javascript'>
document.payment_gw.submit();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment