#bootsy_klarna-addresselement
1 messages · Page 1 of 1 (latest)
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.
- bootsy_api, 25 minutes ago, 27 messages
- bootsy_api-account-support, 2 days ago, 67 messages
- bootsy_api, 6 days ago, 11 messages
- bootsy_messaging-element-styles, 6 days ago, 43 messages
đź‘‹ 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/1240768132168290375
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
That's just when you select Klarna right? It doesn't do that for card payments for example?
i dunno. i don't use paymentintent for card payments
the whole reason i implemented address element was cuz klarna requires a billing address and the paymentintent api won't return an address form
I believe the recommended implementation is to pass the address when you call confirmKlarnaPayment(). We give an example of this here:
That being said, I'm also not sure if the Address Element is compatible with Klarna. Are you instantiating the Address Element with shipping mode? Or with billing mode?
you mean pass the address with my own forms?
i'm only using billing mode, we don't ship
Got it. I believe that you have to pass in the country yourself when you call confirmKlarnaPayment() but let me double check.
yeah, i tried passing in just country
but it fails without line1, city, state, postal code
i was working with someone else earlier today. i think i found an edge case stripe doesn't support, which is passing address via stripe forms while using klarna even though klarna requires it
yeah, that's what I'm checking now
Just letting you know I have someone creating a quick repro to see if we can give you some guidance. Will circle back again in a few.
alright, sounds good. i've just captured the info with my own forms for now
It sounds like we would expect the address to be grayed out when the mode is set to billing. That being said, I'll circle back with more actionable feedback in a minute
Okay, so if you use Address Element in billing mode, then Payment Element will automatically gray out any billing fields, since they’ll be collected through Address Element.
The Address Element will automatically pass the country on to Payment Element if you use confirmPayment instead of confirmKlarnaPayment (in fact, confirmKlarnaPayment doesn’t pull in anything from payment element so the email input also wouldn’t work).
Does that give you enough to make some code changes and try it out?