TypeScript SDK on GitHub
Browse the source code, examples, releases, and issue tracker.
Installation
Initialize the client
Create an invoice
Common operations
invoice_url, order_no, expires_at, and status.
Verify a payment callback
verifyInvoicePaid() retrieves the invoice from the authenticated API, requires
the invoice status to be completed, and compares the callback status and paid
amount with the API result.
Handle errors
Wrap API calls intry/catch, log a correlation identifier instead of secrets,
and retry only operations that are safe to repeat. Reuse the same idempotency key
when retrying the same invoice creation.
TODO: Add the remaining constructor options, complete method reference, and
supported runtime matrix.