-
Title. I'm struggling for days to get Klarna working with swell, and it's very hard.
That's all I had in my code, I called this on button click, however I was getting an error on a new page that said:
it was no way I could debug this, even after reaching out to swell and stripe support. So now I decided to re-implement Klarna through Stripe with their new method of Payment Intent, like shown here. https://stripe.com/docs/payments/klarna/accept-a-payment?platform=web&ui=API The payment is successful I can assure you that, I check with the Stripe team, but now the problem for sure is Swell in this part, where the order says "Unpaid", what does Swell need in the cart update call with a payment method? The only way I could make the order go in (even though the payment status says "unpaid") was by removing the "method": "klarna" property from the swell.cart.update billing object. If I left that added it complained about this error: |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 2 replies
-
@papertokyo can you help me with this, it's really urgent for me, thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
even after adding the value for token, I used the payment_intent param from the url, I now get a similar error regarding the exp_month property: |
Beta Was this translation helpful? Give feedback.
-
how I'm updating the cart:
|
Beta Was this translation helpful? Give feedback.
-
it's crazy that we can have all of these changes, swellstores/swell-js@48c6d80 and not a single change in the docs! |
Beta Was this translation helpful? Give feedback.
-
Finally managed to do this by literally having to read the code base:
Now I have an error saying the account_id is required which is completely meaningless |
Beta Was this translation helpful? Give feedback.
-
The first thing I'm seeing is you have this code for constructing your return URL:
Unless I will double-check the examples in the docs, but can you verify that the |
Beta Was this translation helpful? Give feedback.
Finally managed to do this by literally having to read the code base:
Now I have an error saying the account_id is required which is completely meaningless