@lacspace/connectips
Connect 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.
npm i @lacspace/connectipsUsage
import { signToken, buildForm, validateTxn } from "@lacspace/connectips";
// sign the redirect token with your RSA (PKCS#8) private key
const token = await signToken(
{ merchantId, appId, appName, txnId, txnDate, txnAmount, referenceId, remarks },
privateKeyPkcs8Pem,
);
const form = buildForm({ /* merchant fields + token */ }); // POST to Connect IPS
// confirm server-to-server
const ok = await validateTxn({ merchantId, appId, referenceId, txnAmount }, credentials);Exports 4
signTokenbuildFormvalidateTxnverifyTokenKeywords
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/khaltiKhalti 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/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.