View as Markdown

SDK reference · Node SDK

prov.authorize.checkoutApprovals

prov.authorize.checkoutApprovals in the Node SDK: 11 methods. The authorize.checkoutApprovals methods.

Methods

create

prov.authorize.checkoutApprovals.create(params: CreateCheckoutApprovalParams): Promise<CheckoutApproval>

Create a cart approval (201; 200 with deduped when your customer already has one pending).

Calls POST /v1/authorize/checkout_approvals.

spcChallenge

prov.authorize.checkoutApprovals.spcChallenge(params: { cart: Record<string, unknown> }): Promise<{ object: "spc_challenge"; challenge: string; expiresAt: string; rpId: string }>

A single-use Secure Payment Confirmation challenge bound to this exact cart.

Calls POST /v1/authorize/checkout_approvals/spc_challenge.

list

prov.authorize.checkoutApprovals.list(params?: { limit?: number; cursor?: string; status?: CheckoutApprovalStatus }): Promise<ListResponse<CheckoutApproval>>

Your account's cart approvals, newest first.

Calls GET /v1/authorize/checkout_approvals.

get

prov.authorize.checkoutApprovals.get(id: string): Promise<CheckoutApproval>

One cart approval: its status and, once approved, the token and what you learn about the approver.

Calls GET /v1/authorize/checkout_approvals/{id}.

remind

prov.authorize.checkoutApprovals.remind(id: string, opts?: { channel?: ReminderPinChannel; idempotencyKey?: string }): Promise<Reminder>

Remind your customer about a pending cart approval (201): the first message again, marked as a reminder, with a fresh link (the first link keeps working).

Calls POST /v1/authorize/checkout_approvals/{id}/reminders.

listReminders

prov.authorize.checkoutApprovals.listReminders(id: string): Promise<ListResponse<Reminder>>

The cart approval's reminders, oldest first, with how each ended.

Calls GET /v1/authorize/checkout_approvals/{id}/reminders.

cancelReminder

prov.authorize.checkoutApprovals.cancelReminder(id: string, reminderId: string): Promise<Reminder>

Cancel a reminder held until quiet hours end, before it goes.

Calls DELETE /v1/authorize/checkout_approvals/{id}/reminders/{reminder_id}.

reportThreeDSResult

prov.authorize.checkoutApprovals.reportThreeDSResult(id: string, params: ThreeDSResultParams): Promise<CheckoutBankCheck>

Report what your payment provider said on the approval's bank check (a challenge for the page, or the outcome).

Calls POST /v1/authorize/checkout_approvals/{id}/threeds_results.

getSettings

prov.authorize.checkoutApprovals.getSettings(): Promise<CheckoutApprovalSettings>

Your checkout approval settings (resendOnExpiry).

Calls GET /v1/authorize/settings/checkout_approvals.

updateSettings

prov.authorize.checkoutApprovals.updateSettings(params: { resendOnExpiry: boolean }): Promise<CheckoutApprovalSettings>

Let a person ask for a new link from an expired approval page (you get authorize.checkout_approval.resend_requested).

Calls PUT /v1/authorize/settings/checkout_approvals.

createEvidencePack

prov.authorize.checkoutApprovals.createEvidencePack(id: string, params?: EvidencePackParams): Promise<EvidencePack>

A chargeback evidence pack for an approved cart approval (Growth+); download it at downloadUrl.

Calls POST /v1/authorize/checkout_approvals/{id}/evidence_packs.

Was this page helpful? Send us feedback

LLM? Read llms.txt.