@lacspace/connectips
Connect 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.
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
connectipsnepalpaymentnchlrsa-sha256web-crypto
More in Nepal Payments
@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.
@lacspace/khaltiKhalti KPG-2 (ePayment API v2, Nepal) client — initiate payments, look up status, typed errors and Key auth over global fetch. Zero-dependency, 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.