Payment Confirmation
Usage
const confirmation = client.components.paymentConfirmation({
containerId: 'confirmation',
invoiceId: 'inv_xxx',
paymentMethodId: 'pm_xxx',
customerId: 'cus_xxx',
onPaymentSuccess: (payment) => {
console.log('Payment successful:', payment.id);
},
onPaymentError: (error) => {
console.error('Payment failed:', error);
},
onBack: () => {
console.log('Back clicked');
},
});Configuration
PaymentConfirmationConfig
Property
Type
Required
Description
Payment Object
Example
Display
Last updated
Was this helpful?
