Add a new payment method to the current customerās profile.
Payment methods must be tokenized through the payment processor before being added. The payment method token should be obtained from the payment processorās client-side SDK (e.g., Stripe.js) to ensure sensitive payment information is never sent directly to the API.
Request body for adding a payment method to a customer's profile.
Payment methods must be tokenized through the payment processor's client-side SDK before being submitted to this API. Never send raw card details directly.
The payment method token obtained from the payment processor's client-side SDK.
For card payments, this should be a tokenized representation of the card (e.g., a Stripe payment method token). Specific cards for digital wallets (like Apple Pay or Google Pay) cannot be added and should instead be processed directly through the payment processor during checkout.
This token is used to securely add the payment method without exposing sensitive payment information to the API.
1 - 500Whether to set this payment method as the default payment method for the customer.
If set to true, this payment method will be used by default for future transactions. If the customer already has a default payment method, it will be replaced.
Created.
Representation of a payment method for a customer
Indicator of the payment method type.
card, digitalWallet Indicates if this card is the default card in a customer's saved payment methods.
A representation of the customer's credit or debit card.
This property is required when the payment method type is card.
A representation of the customer's digital wallet, such as Apple Pay.
This property is required when the payment method type is digitalWallet.