#guillaume1landr_unexpected

1 messages Β· Page 1 of 1 (latest)

marble sirenBOT
#

πŸ‘‹ 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.

soft sequoia
#

Hi there,
I will be with you in just a moment. Helping another user right now.

#

Can you share a checkout session ID?

marble sirenBOT
kindred salmon
#

Hi

#

cs_live_b1NTQYxnWO8EYIMfBVDw2tcx9PTYGL0GXx3vAKtW4JJ3AtN3TQUTGepTaE

#

I just generated this one on en sandbox env, cs_test_b1Ee4aZz1t5w5Zb70TmGO8yMgFzqauQWsYvN6WlJaZ2BhDMRrxfP1dndxg

soft sequoia
#

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

winter wagon
#

hello! fyi i am taking over this thread, give me just a minute to catch up

kindred salmon
#

πŸ‘

#

Okay, so i can generate another one with a subscription that is not a trial, and Klarna will not be enabled.

cs_test_b11AYTzC2WdrbrUYWh1LUTDZ2qoLiazULWLf8yUTj6DhgqUx8dbUJNu5ck

winter wagon
#

fyi i'm all caught up on context, currently digging into the examples you shared

kindred salmon
#

Well in the last example I can see that Klarna is enabled in the session object returned by Stripe but not in the UI

winter wagon
#

when you say not in the UI you mean it's not visible as a payment option in the embedded checkout page right?

kindred salmon
#

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

winter wagon
kindred salmon
winter wagon
#

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

kindred salmon
#

It absolutely makes sense!

winter wagon
#

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?

kindred salmon
#

yes

#

customer: cus_TF0A9t4LxWpay9

#

Hosted:

  • Regular: cs_test_b1XF807iWltIhh4JUqtxwv8428BF2OVZvKsLQnP1PuBy0dWe3Bugs7huAq
  • Trial: cs_test_b1qkM28GiSP86EtaIm4dvUN5GYbqIIGrmfVrJMXYZcukJcN50lbVM34hmw

Embedded:

  • Regular: cs_test_b1g08M2byht1kUb3jTN5ZtZVL0Yve87xzGKJICnsn6PUBLvmD0WFRRKO7T
  • Trial: cs_test_b1SEkxdzKtUydYcvbxonexuYLTO60vfZfj0H1OWxqj9OqVhPUYFVJsoRqb
winter wagon
#

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

kindred salmon
#

cs_test_b1Oe1H5gD2VL26CENI7QmVWtCHLUz71LCZKVlSTUEcGfOddkm1Q02gFjRp

winter wagon
#

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?

kindred salmon
#

yes

marble sirenBOT
#

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.
winter wagon
#

can you let me know when you've gone through that link and created a case and i can take it from there?

kindred salmon
#

Ticket has been created

winter wagon
#

awesome, got it. anything else you need help with here for now?

kindred salmon
#

No thank you !

winter wagon
#

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)

kindred salmon
#

Alright, will do!

#

thank you