Last active
February 18, 2020 07:02
-
-
Save javedLive/4727e97a2fee56c60fdea689a397cc11 to your computer and use it in GitHub Desktop.
SSL COMMERZ Payment Gateway with Laravel (SandBox)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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