bigcommerce / checkout-sdk-js

BigCommerce Checkout JavaScript SDK
MIT License
134 stars 215 forks source link

Error Initializing Klarnav2 Payment Method #1255

Closed fresh5447 closed 3 years ago

fresh5447 commented 3 years ago

When attempting to initialize the Klarnav2 payment method I receive the following error:

unable to proceed because payment method data is unavailable or not properly configured.

This is my current config:

                    await service.initializePayment({
                        methodId: 'pay_over_time',
                        gatewayId: 'klarnav2',
                        klarnav2: {
                            container: 'klarna-container',
                            onLoad: (e) => console.log('Klarna Loaded', e),
                            onError: (e) => console.error('Klarna Loaded Error', e)
                        },          
                    });

One thing that is odd is I expect this methodId to be klarna, but it is actually pay_over_time

Screen Shot 2021-09-29 at 11 19 30 AM

Here are the docs I am following, looks like everything should be straight forward, so I am not sure where I am going wrong.

Currently running: "@bigcommerce/checkout-sdk": "^1.181.0",

bhargav-codes commented 2 years ago

Did you find a solution to this issue ? I am facing the same problem with stripe