client_secret to the elements’ handleNextAction, or poll Retrieve status for how far the setup has gone and what is outstanding. Once it reaches succeeded, payment_method_id names the saved method and Create Payment charges it.
Endpoints
Attributes
The checkout configuration this setup was created through, prefixed
ch_.
Null for a setup created through this API rather than a hosted checkout.The credential a buyer’s surface presents to poll this setup and set its
return URL — hand it to the elements’
handleNextAction. Only on setups
created through this API, and always null in list responses — retrieve the
setup intent for it.Why the setup ended where it did, or
null when nothing has failed. Present on canceled — a buyer who abandoned carries no code, one refused by the provider does. Dropped once the setup succeeds.The buyer’s member record on the account, prefixed
mber_. Null without the
member:basic:read permission, unless the caller is the buyer.The method behind this setup shaped for display: a buyer-facing name, the standard icon set, and the card’s brand, last four, issuer identification number, expiry, and network transaction id when it was a card. Null until a method was collected.
Properties
Properties
Card, Apple Pay, and Google Pay payments only: the card’s network, last four, issuer identification number, expiry, and network transaction id.
Properties
Properties
The network identifier (
visa, amex, …), matching card.networks entries
and saved card payment methods. Null when the vault did not record the
network.The issuer identification number, also called the BIN: the card’s leading six
or eight digits, which identify the issuing bank. Null when the processor did
not report it.
The network transaction id this account uses for the card. It’s this account’s own id, from its first customer-present charge or verification on the card, when Whop has one. Otherwise it’s an earlier network transaction id for this card, which can come from another account’s transaction or be one brought with the card. Cite it as the prior transaction on a later merchant-initiated charge of this card at this account. Null until there is one. A webhook sent as a payment is first recorded can carry
null, so retrieve the payment to read it.Buyer-facing instrument name — “Visa •••• 4242” when the card surfaced, else
the method’s own name (“Klarna”).
The standard icon set: square and card shapes, each in light and dark colorways.
Properties
Properties
The credit-card-proportioned tile (48x30).
Properties
Properties
The square tile (32x32).
Properties
Properties
Installment methods only: how many payments the charge splits into. Data, not
copy — compose and translate the label client-side.
The saved payment method, prefixed
payt_, ready to charge with Create
Payment. Null until the setup has succeeded.Where the buyer lands after completing an off-site step, or
null to leave
them where they are.How far the setup has got. A 201 or 200 means we answered, not that the method was saved — always branch on this.
requires_action — the buyer has a step outstanding; hand client_secret to the elements or poll Retrieve setup status. processing — the processor is deciding. succeeded — the method is saved, and only this one means saved. canceled — abandoned or refused; see last_setup_error.Available options: processing, succeeded, canceled, requires_action3D Secure behavior for supported on-session card payments.
mandate_challenge requires a 3DS challenge before payment processing; mandate_if_required mandates a challenge only when the payment processor requires it; frictionless_if_required uses the regular frictionless 3DS flow. Payments of $1,000 or more use mandate_if_required unless mandate_challenge is selected. Risk and authentication recovery requirements can override the preference. The setting requested for this setup, or null when unset.Available options: mandate_challenge, mandate_if_required, frictionless_if_requiredThe user saving the payment method. Null when the buyer is an account rather than a user.
Properties
Properties
SetupIntent

