diff --git a/examples/payments/templates/home.html b/examples/payments/templates/home.html new file mode 100644 index 0000000..64eb2b8 --- /dev/null +++ b/examples/payments/templates/home.html @@ -0,0 +1,354 @@ +{% extends "base.html" %} +{% block title %}Payment Gateways — Demo{% endblock %} + +{% block content %} + + + +
+
Sandbox test credentials
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Payment methodTest ID / UsernamePassword / MPINOTP / TokenSecret (demo)
+ eSewa + 9806800001/2/3/4/5Nepal@1231234568gBm/:&EnhH.1/q, code EPAYTEST
+ Khalti + 9800000001/2/3/4/51111987654live_secret_key_68791341fdd94846a146f0457ff7b455
+ Fonepay + Not availableNot availableNot availablemerchant NBQM, secret key a7e3512f5032480a83137793cb2021dc
+ ConnectIPS + Not availableNot availableNot availableRequires merchant onboarding with Nepal Clearing House (NCHL) — you receive Merchant ID, App ID, and .pfx certificate.
+
+
+ +
+
+ +
+
Payment methods
+
+
+
+ +
+
Khalti
+
Redirect to Khalti's checkout
+
+
+
+ {% csrf_token %} + +
+
+ +
+
+ +
+
eSewa
+
Redirect to eSewa's checkout
+
+
+
+ {% csrf_token %} + +
+
+ +
+
+ +
+
ConnectIPS
+
Form-POST to ConnectIPS login
+
+
+
+ {% csrf_token %} + +
+
+
+
+
+ +
+ +
+
+ + Fonepay QR + +
+ +
+
+ NOTICE + Fonepay QR uses real transactions in production +
+
    +
  • No test credentials available — test at your own risk
  • +
  • You can use amounts in paisa (e.g., 0.001)
  • +
  • Payments will be processed through real Fonepay gateway
  • +
  • Fonepay's test environment is temporarily unreachable, so any QR shown here is a simulated demo stand-in.
  • +
+
+ +
+
+ + +
+
+ + +
+
+
+ + +
+ +
+ + + + +
+
+
+ +{% comment %} + +
+
Recent orders
+
+ + + + + + {% for o in orders %} + + + + + + + + + {% empty %} + + {% endfor %} + +
OrderGatewayAmountStatusProvider ref
{{ o.order_id }}{{ o.gateway|capfirst }}NPR {{ o.amount }}{{ o.status }}{{ o.provider_ref|truncatechars:20 }} + {% if o.gateway != 'fonepay' %} + + {% endif %} +
No orders yet — pay with a gateway above to see it show up here.
+
+
+{% endcomment %} +{% endblock %} + +{% block scripts %} + +{% endblock %}