Skip to content

I recently upgraded stripev3 to stripeupe #1579

@alokltd

Description

@alokltd

Describe the bug
I recently upgraded my Stripe API from stripev3 to stripeupe.

checkoutService.initializePayment({
                    methodId: 'card',
                    gatewayId:'stripeupe',
                    stripeupe: {
                        containerId: 'stripeupe-container',
                        options: {
                            cardNumberElementOptions: {
                                classes: {base: "form-input optimizedCheckout-form-input"},
                                placeholder: "",
                                showIcon: false,
                                containerId: 'stripe-card-number-component-field',
                            },
                        cardExpiryElementOptions: {
                                classes: {base: "form-input optimizedCheckout-form-input"},
                               containerId: 'stripe-expiry-component-field',
                           },
                       cardCvcElementOptions: {
                           classes: {base: "form-input optimizedCheckout-form-input"},
                           placeholder: "",
                           containerId: 'stripe-cvc-component-field',
            },
        }
    },
});

I'm using @bigcommerce/checkout-sdk-js I was using this code to initialize the Stripe card field won't show. Is this the right way to initialize the StripeUPE form fields?

Thank you in advance.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions