Components
Overview
Available Components
Component
Description
Using Components
// 1. Initialize the client
const client = new AlternativeClient({
clientId: 'your-client-id',
clientSecret: 'your-client-secret',
});
// 2. Create a component
const component = client.components.invoiceList({
containerId: 'my-container',
customerId: 'cus_xxx',
onSelect: (invoice) => {
console.log('Selected:', invoice);
},
});
// 3. Later: cleanup
component.unmount();Common Configuration
Property
Type
Required
Description
Component Instance
Building Custom Flows
Next Steps
Last updated
Was this helpful?
