@paycall-402/utils
v0.1.1
Published
Utility helpers shared across Paycall 402 packages.
Readme
@paycall-402/utils
Utility helpers shared across Paycall 402 packages.
Important: Currently, only EIP-3009 tokens are supported for end-to-end payment and settlement flows.
Install
npm i @paycall-402/utilsWhat this package contains
- Base64URL encoding/decoding helpers
- Header encode/decode helpers for
X-PAYMENT-* - Crypto/time helpers used by client and server flows
Usage
import {
PAYMENT_CHALLENGE_HEADER,
decodeChallengeHeader,
encodePaymentMessageHeader
} from "@paycall-402/utils";For end-to-end examples, see: https://github.com/rohitsethii/paycall-402
