#maire_attach-klarna
1 messages ยท Page 1 of 1 (latest)
๐ 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.
- maire_code, 23 hours ago, 8 messages
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
I see. How do subscriptions get attached then?
๐ stepping in
hi there!
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
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?
What exactly are you referring to when you say "Klarna widget"?
the option to toggle between card payment method and klarna
inside the payment element
Ah okay so Klarna as a payment method type within Payment Element
correct
Are you using the defered-intent flow or the intent-first flow?
๐ค
Meaning do you create your SetupIntent before you render Payment Element and pass the client secret to Payment Element?
yes
Okay then you can look at the payment_method_types returned in the SetupIntent: https://docs.stripe.com/api/setup_intents/object#setup_intent_object-payment_method_types
That will indicate which payment method types will be shown within Payment Element
Yep nvm that is indeed the way for Payment Element.
I'm looking for error handling around Klarna - as if something on Klarna's end isn't working
I was thinking about you using the ready Event but that only shows availablePaymentMethods for Express Checkout Element, see: https://docs.stripe.com/js/element/events/on_ready
Ah well that would happen upon you calling confirmSetup()
Then that will return an error if there is an issue on Klarna's end