@lacspace/esewa
eSewa ePay v2 (Nepal) payment toolkit over Web Crypto — HMAC-SHA256 signing, checkout-form building, response verify/decode, amount validation, CSPRNG transaction ids, and transaction-status request/parse. Zero-dependency, isomorphic.
npm i @lacspace/esewaUsage
import { buildForm, verifyResponse } from "@lacspace/esewa";
// 1) redirect the buyer — POST form.fields to form.action
const form = buildForm({ amount: "1000", productCode: "EPAYTEST", successUrl, failureUrl, secret });
// 2) on return, verify the signed payload against YOUR order amount
const res = verifyResponse(base64Data, secret);
// { verified, status, transactionUuid, totalAmount }Exports 7
signPaymentbuildFormverifyResponsecheckStatuspaisaToRupeesESEWA_TEST_SECRETESEWA_TEST_PRODUCT_CODEKeywords
More in Nepal Payments
Khalti KPG-2 (ePayment API v2, Nepal) client — initiate payments and look up status over injectable fetch, plus pure helpers: request builders, paisa amount validation, callback verification, sandbox/production presets and a CSPRNG order-id generator. Zero-dependency, isomorphic.
@lacspace/connectipsConnect IPS (Nepal) merchant integration over Web Crypto — RSA-SHA256-sign the redirect token, build or send the validate-txn request, verify signatures, and validate/inspect the canonical message fields offline. Zero-dep, isomorphic.
@lacspace/fonepayFonepay (Nepal) Request-To-Pay over Web Crypto — HMAC-SHA512 sign the request DV and verify the response DV, now with request validation, a CSPRNG PRN generator, auto-submit form + dynamic-QR builders and sandbox/live presets. Zero-dep, isomorphic.