Created
July 17, 2018 11:25
-
-
Save bhaktaraz/0770958703e7ffe0f81db9f0a950c038 to your computer and use it in GitHub Desktop.
nPay Integration Example
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
<h1>Redirecting...</h1> | |
<div style="display: none;"> | |
<form action="{{ npay_payment_url }}" method="post" target="_parent" name="npay"> | |
<input type="hidden" value="{{ processID }}" name="ProcessID"> | |
<input type="hidden" value="{{ MerchantID }}" name="MerchantID"> | |
<input type="hidden" value="{{ MerchantTxnID }}" name="MerchantTxnID"> | |
<input type="hidden" value="{{ PayAmount }}" name="PayAmount"> | |
<input type="hidden" value="{{ MerchantUsername }}" name="MerchantUsername"> | |
<input type="hidden" value="{{ description }}" name="Description"> | |
<input value="Continue to Payment" type="submit"> | |
</form> | |
</div> | |
<script> | |
window.onload = function () { | |
document.forms['npay'].submit() | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment