Skip to content

Latest commit

 

History

History
81 lines (49 loc) · 1.41 KB

StripeUPEPaymentInitializeOptions.md

File metadata and controls

81 lines (49 loc) · 1.41 KB

@bigcommerce/checkout-sdk / StripeUPEPaymentInitializeOptions

Interface: 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',
    },
});

Table of contents

Properties

Methods

Properties

containerId

containerId: string

The location to insert the credit card number form field.


style

Optional style: Object

Checkout styles from store theme

Index signature

▪ [key: string]: string

Methods

onError

Optional onError(error?): void

Parameters

Name Type
error? Error

Returns

void


render

render(): void

Returns

void