@lacspace/esewa
eSewa ePay v2 (Nepal) payment gateway toolkit over Web Crypto — HMAC-SHA256 signing, form building, response verification and transaction status checks. 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 6
signPaymentbuildFormverifyResponsecheckStatusESEWA_TEST_SECRETESEWA_TEST_PRODUCT_CODEKeywords
nepalpaymentesewaepay-v2hmac-sha256web-crypto
More in Nepal Payments
@lacspace/khalti
Khalti KPG-2 (ePayment API v2, Nepal) client — initiate payments, look up status, typed errors and Key auth over global fetch. Zero-dependency, isomorphic.
@lacspace/connectipsConnect IPS (Nepal) merchant integration over Web Crypto — sign the redirect transaction token with your RSA private key and validate transactions server-to-server. Zero-dep, isomorphic.
@lacspace/fonepayFonepay (Nepal) merchant redirect / Request-To-Pay over Web Crypto — HMAC-SHA512 sign the request DV and verify the response DV. Zero-dep, isomorphic.