Skip to content

Does someone have a working version of Klarna? #379

Answered by rinorzek
rinorzek asked this question in Help
Discussion options

You must be logged in to vote

Finally managed to do this by literally having to read the code base:

const cart = await swell.cart.update({
          billing: {
            method: "klarna",
            klarna: {
              token: paymentIntent.payment_method,
            },
            intent: {
              stripe: {
                id: paymentIntent.id,
              },
            },
          },
        });

Now I have an error saying the account_id is required which is completely meaningless

Replies: 7 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@vstudenichnik-insoft
Comment options

@coderreco
Comment options

Answer selected by logeshswell
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
4 participants