Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
eSewa Integration Example
<div style="display: none;">
<form action="{{ esewa_payment_url }}" method="POST" target="_parent" name="esewa">
<input value="{{ tAmt }}" name="tAmt" type="hidden">
<input value="{{ tAmt }}" name="amt" type="hidden">
<input value="0" name="txAmt" type="hidden">
<input value="0" name="psc" type="hidden">
<input value="0" name="pdc" type="hidden">
<input value="{{ esewa_service_code }}" name="scd" type="hidden">
<input value="{{ pid }}" name="pid" type="hidden">
<input value="{{ esewa_success_url }}" type="hidden" name="su">
<input value="{{ esewa_failure_url }}" type="hidden"
<input value="Continue to Payment" type="submit" style="border-radius:8px; background:#3C0; font-size:20px; color:#fff; font-weight:bold; padding:6px; width:60%;">
window.onload = function () {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment