Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
nPay Integration Example
<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