@bigcommerce/checkout-sdk / StripeUPEPaymentInitializeOptions
A set of options that are required to initialize the Stripe payment method.
Once Stripe payment is initialized, credit card form fields, provided by the payment provider as iframes, will be inserted into the current page. These options provide a location and styling for each of the form fields.
<!-- This is where the credit card component will be inserted -->
<div id="container"></div>
service.initializePayment({
methodId: 'stripeupe',
stripeupe {
containerId: 'container',
},
});
• containerId: string
The location to insert the credit card number form field.
• Optional
style: Object
Checkout styles from store theme
▪ [key: string
]: string
▸ Optional
initStripeElementUpdateTrigger(updateTriggerFn
): void
Name | Type |
---|---|
updateTriggerFn |
(payload : StripeElementUpdateOptions ) => void |
void
▸ Optional
onError(error?
): void
Name | Type |
---|---|
error? |
Error |
void
▸ render(): void
void