Set up
new KetaPay({ apiKey, maxRetries, timeoutMs, logLevel, logger, defaultHeaders, appInfo }).
Create a checkout session
Act for a customer
Lists
Await a list for one page, orfor await it to walk every page:
Webhooks
Pass the raw body, before any JSON parsing. On Next.js or other edge handlers, passawait request.text().
verify(body, header, [newSecret, oldSecret]).
Errors
Every error extendsKetaPayError with type, code, param, statusCode and requestId. NotFoundError (404) and ConflictError (409) are subclasses of InvalidRequestError.