pakdatakit-pay 0.1.0
pakdatakit-pay 0.1.0 on its registry
First release.
buildJazzCashSecureHash(params, integritySalt)andverifyJazzCashResponse(params, integritySalt, expected?): the JazzCashpp_SecureHash(HMAC-SHA256 over the salt and the non-emptypp…fields sorted by name, joined with&), following JazzCash’s integration guide v4.2, section 14.2. Verification compares the hash in constant time, can checkpp_TxnRefNoandpp_Amountagainst your records, and reportssuccessonly for response code000. It never throws for any response body.jazzCashHashMessage(): the exact text that is hashed, for debugging in the sandbox.- Two entry points:
pakdatakit-pay(node:crypto) andpakdatakit-pay/web(Web Crypto, async), with the same results. - Tests use the guide’s example text and synthetic payloads checked with OpenSSL; no official sample hash is public, so the rules still need confirming against JazzCash’s sandbox.
- Easypaisa is not included: its integration guides are not published.