#guillaume1landr_unexpected
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/1430965253084156025
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there,
I will be with you in just a moment. Helping another user right now.
Can you share a checkout session ID?
Hi
cs_live_b1NTQYxnWO8EYIMfBVDw2tcx9PTYGL0GXx3vAKtW4JJ3AtN3TQUTGepTaE
I just generated this one on en sandbox env, cs_test_b1Ee4aZz1t5w5Zb70TmGO8yMgFzqauQWsYvN6WlJaZ2BhDMRrxfP1dndxg
The Checkout Session cs_test_b1Ee4aZz1t5w5Zb70TmGO8yMgFzqauQWsYvN6WlJaZ2BhDMRrxfP1dndxg is using the default payment method configuration pmc_1RY7Gv6EKClralackzHory8x where Klarna is enabled. That you are seeing Klarna is expected
hello! fyi i am taking over this thread, give me just a minute to catch up
π
Okay, so i can generate another one with a subscription that is not a trial, and Klarna will not be enabled.
cs_test_b11AYTzC2WdrbrUYWh1LUTDZ2qoLiazULWLf8yUTj6DhgqUx8dbUJNu5ck
fyi i'm all caught up on context, currently digging into the examples you shared
Well in the last example I can see that Klarna is enabled in the session object returned by Stripe but not in the UI
when you say not in the UI you mean it's not visible as a payment option in the embedded checkout page right?
So to fix my issue where my user can choose Klarna as a payment method qhen starting i should have payment method configuration for "Subscription" where we would disable Klana ((in house business requirement) and another for Single purchase payment with Klarna enabled
but yes regardless of what is happening with these, i would recommend doing this
Yes exactly, either embedded or hosted
give me just a bit to see if i can reproduce this on my end. it's a little tricky because you're also making these requests with two separate API keys (live mode and sandbox) so there are a lot of other factors that could be at play
It absolutely makes sense!
any chance you can reproduce this again using the sandbox API key for both the trial and non-trial mode, and in hosted moden so i can access the payment page easily?
yes
customer: cus_TF0A9t4LxWpay9
Hosted:
- Regular: cs_test_b1XF807iWltIhh4JUqtxwv8428BF2OVZvKsLQnP1PuBy0dWe3Bugs7huAq
- Trial: cs_test_b1qkM28GiSP86EtaIm4dvUN5GYbqIIGrmfVrJMXYZcukJcN50lbVM34hmw
Embedded:
- Regular: cs_test_b1g08M2byht1kUb3jTN5ZtZVL0Yve87xzGKJICnsn6PUBLvmD0WFRRKO7T
- Trial: cs_test_b1SEkxdzKtUydYcvbxonexuYLTO60vfZfj0H1OWxqj9OqVhPUYFVJsoRqb
hmm i'm not seeing anything for klarna in either of the hosted UIs, are you? it could be i'm being filtered based on some location specific logic
ok i think that's it. i might need to grab another machine so i can test on a VPN
ok there we go, i think it was location filtering
i got it to show on my end. β¨ progress β¨
give me a bit to spelunk through some internal logs
ok, so the logs are suggesting that it's failing to show on the non-trial mode checkout interface because the amount is below your currency targeting rules, which is expected
so now the question of why did we let it through for the free trial one π€
ok, i am preeeetty sure this is a bug. i need to spend a bit more time reproducing this so i can get more data to share with our product team, so would it be OK if we convert this to a case and i can follow up async?
yes
Hello @kindred salmon, we have sent you a direct message, please check it at https://discord.com/channels/@me/1430984899950542858
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
can you let me know when you've gone through that link and created a case and i can take it from there?
Ticket has been created
awesome, got it. anything else you need help with here for now?
No thank you !
sounds good! and i know we chatted about this already but you can work around this for now by specifying a separate payment method configuration when creating subscriptions (which is a good practice anyway)