Add Payment Method
Usage
const addPayment = client.components.addPaymentMethod({
containerId: 'add-payment',
customerId: 'cus_xxx',
defaultType: 'CARD',
onSuccess: (paymentMethod) => {
console.log('Added:', paymentMethod.id);
},
onCancel: () => {
console.log('Cancelled');
},
});Configuration
AddPaymentMethodConfig
Property
Type
Required
Description
Card Form
Bank Account Form (ACH)
Example
Security
Credit Card Support & Evervault
The SDK component is the only supported path for collecting card details
How the Evervault iframe works
Customization scope
Bank accounts vs. credit cards
Method
SDK required?
REST API endpoint
Last updated
Was this helpful?
