@lacspace/khalti
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.
npm i @lacspace/khaltiUsage
import { initiate, lookup } from "@lacspace/khalti";
const { payment_url, pidx } = await initiate({
returnUrl, websiteUrl, amount: 100000, // paisa
purchaseOrderId: "order_1", purchaseOrderName: "Colour order",
}, { secretKey, env: "test" });
// verify server-to-server before fulfilling
const status = await lookup(pidx, { secretKey, env: "test" }); // "Completed" | "Pending" | ...Exports 3
initiatelookupKhaltiErrorKeywords
More in Nepal Payments
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.
@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.