#martin-gaibisso_unexpected

1 messages ยท Page 1 of 1 (latest)

bitter summitBOT
#

๐Ÿ‘‹ 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/1299009892555817021

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

vague scarabBOT
outer pond
#

Hi ๐Ÿ‘‹ can you tell me more about your integration? Are you creating your intent first, or are you initializing Elements and the Payment Element without a client secret?

granite pagoda
#

thats correct, PI is created after initialization

#

it was showing before, i dont think anything changed our end

outer pond
#

Does it show up if you omit the paymentMethodCreation parameter?

granite pagoda
#

country and currency are correct as i know klarna only shows for certain country-currency

outer pond
#

The other thing I'm thinking, is that since you're using on_behalf_of, Klarna may not be enabled on that Connected Account. Do you see any errors or warnings in the browser console?

granite pagoda
#

no comments, and yes, they are enabled.

#

same thing if i remove the paymentMethodCreation

outer pond
#

Can you copy/paste that Connected Account's ID here?

granite pagoda
#

sure

#

acct_1NBgKCQuqCz6D3Lq

bitter summitBOT
outer pond
#

Thank you, taking a closer look

granite pagoda
#

it says off by default

#

it's ON in that CA

fluid wyvern
#

Can you share a payment intent id where klarna didn't show, but you expected it to?

granite pagoda
#

no payment intent yet, just a request

#

you can check there

#

just add anything and go to checkout

outer pond
#

You're also prefilling defaultValues, right? Can you share what address you're using for testing to repro this behavior?

granite pagoda
#

this is the script initializing PE

fluid wyvern
#

So you're saying this used to work?

#

And stopped working?

granite pagoda
#

yes

#

correct

fluid wyvern
#

With the same configuration?

granite pagoda
#

yes, as far as i can tell. no code change

fluid wyvern
#

Where are you located? Is the difference who and where this is being tested?

granite pagoda
#

idk, i'm not in UK

#

let me test a tunnel

#

oh yeah, showing now ๐Ÿค”

#

ok, so not only country in address but IP restriction aswell

outer pond
#

You aren't passing a country in the address are you? Just a postal code

granite pagoda
#

correct

fluid wyvern
granite pagoda
#

ok, thanks for your time