checkout-sdk-js icon indicating copy to clipboard operation
checkout-sdk-js copied to clipboard

Stripeupe Payment Initialization Error: The following betas are not recognized for Stripe () Parameter

Open fresh5447 opened this issue 2 years ago • 6 comments

Describe the bug bigcommerce/checkout-sdk version": "1.346.0

When initializing the stripeupe gateway using the card method, an error is thrown from Stripe

Screenshot 2023-02-14 at 8 45 37 PM

In the source code you can see these betas being added:

https://github.com/bigcommerce/checkout-sdk-js/blob/eabb2f3faa02be36dc9beac5f4df3ee6bbedbca2/packages/core/src/payment/strategies/stripe-upe/stripe-upe-script-loader.ts#L29

This is how I am initializing the payment method, which I believe is correct.

                    const options = {
                        methodId: 'card',
                        gatewayId: 'stripeupe',
                        stripeupe: {
                            containerId: 'checkoutButton--card',
                            onError: (error) => {
                                console.log("stripeupe render error", error)
                            },
                        },
                    }

                   await service.initializePayment(options);

fresh5447 avatar Feb 15 '23 21:02 fresh5447

Hey @AlanMunozN can you please help look at this issue?

animesh1987 avatar Feb 15 '23 23:02 animesh1987

Hey @animesh1987, we'll create a ticket to review that

AlanMunozN avatar Feb 16 '23 00:02 AlanMunozN

Hi @fresh5447, the error is not related to the betas version, we'll check the options and as soon as possible give an answer

AlanMunozN avatar Feb 16 '23 00:02 AlanMunozN

Thanks @AlanMunozN - appreciated!

fresh5447 avatar Feb 16 '23 16:02 fresh5447

Hey @fresh5447 I think the issue is related to a missing function called render image

could you please try adding a function for render?

AlanMunozN avatar Feb 20 '23 23:02 AlanMunozN

@bigcommerce/team-checkout was this looked into and resolved?

bc-0dp avatar Feb 16 '24 16:02 bc-0dp