#maire_attach-klarna

1 messages ยท Page 1 of 1 (latest)

near pathBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1283496161486831667

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

fallen heath
#

maire_attach-klarna

#

Hey @blissful apex ! In theory you don't need to attach anything. SetupIntents will automatically attach the PaymentMethod for you after confirmation as long as you pass customer: 'cus_123' on the SetupIntent creation which is much easier.

With that said, Klarna doesn't support "future payments" publicly

blissful apex
#

I see. How do subscriptions get attached then?

near pathBOT
potent sandal
#

๐Ÿ‘‹ stepping in

blissful apex
#

hi there!

potent sandal
#

Can you clarify what you mean by "How do subscriptions get attached"?

#

You don't "attach" Subscriptions

#

You create them and you set a PaymentMethod that is attached to the Customer as either the default_payment_method for the Subscription or as the default for the Customer via invoice_settings.default_payment_method

blissful apex
#

okay not sure what happened but Klarna seems to be showing up as a payment method now

#

is there anyway to check Klarna + stripe integration status to have a fallback for if the Klarna widget is failing so we don't have broken experiences for our customers?

potent sandal
#

What exactly are you referring to when you say "Klarna widget"?

blissful apex
#

the option to toggle between card payment method and klarna

#

inside the payment element

potent sandal
#

Ah okay so Klarna as a payment method type within Payment Element

blissful apex
#

correct

potent sandal
#

Are you using the defered-intent flow or the intent-first flow?

blissful apex
#

๐Ÿค”

potent sandal
#

Meaning do you create your SetupIntent before you render Payment Element and pass the client secret to Payment Element?

blissful apex
#

yes

potent sandal
#

That will indicate which payment method types will be shown within Payment Element

#

Yep nvm that is indeed the way for Payment Element.

blissful apex
#

I'm looking for error handling around Klarna - as if something on Klarna's end isn't working

potent sandal
#

Ah well that would happen upon you calling confirmSetup()

#

Then that will return an error if there is an issue on Klarna's end