Payment Method Select
Usage
const paymentSelect = client.components.paymentMethodSelect({
containerId: 'payment-methods',
customerId: 'cus_xxx',
onSelect: (paymentMethod) => {
console.log('Selected:', paymentMethod.id);
},
onAddNew: (type) => {
console.log('Add new payment method:', type);
},
});Configuration
PaymentMethodSelectConfig
Property
Type
Required
Description
Payment Method Types
Type
Description
PaymentMethod Object
Example
Display
Last updated
Was this helpful?
