Payment methods
How to supply reusable gateway tokens on a recovery request and use the payment method wallet to designate primary and backup methods.
Supply a payment method
Provide each payment method as a reusable gateway token in the payment_gateway_references array on a billing_infos entry. Each reference carries the token and its reference_type (for example, stripe_payment_method). Recover stores the method and uses it to collect on the retry schedule.
For the gateways that issue these tokens, see Payment gateways.
Payment method wallet
The Wallet feature lets you designate payment methods as primary or backup in the same request. Set primary_payment_method or backup_payment_method to true on each entry in billing_infos. You can submit multiple payment methods, but only one can be marked as primary.
Updated 1 day ago