#ursus0055_payment-method-types

1 messages ยท Page 1 of 1 (latest)

steep pumiceBOT
#

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

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

rigid gull
#

Hi ๐Ÿ‘‹

Klarna is only valid in a specific set of circumstances. Do you have example Payment Intents where Klarna was not visible but you expected it to be?

mighty tide
#

e.g. this payment intent pi_3Qji6PAHjnjSi7Kd03M8Jqmh

rigid gull
#

Thanks, taking a look

mighty tide
#

we usually have card and klarna. here it seems we have card and google pay, strange

rigid gull
#

In it, the payment method types has been specified as

payment_method_types: {
    0: "card",
  },
#

So your code is telling Stripe that only cards are accepted

mighty tide
#

that's strange because it's hardcode this way
payment_method_types: ['card', 'klarna'],

rigid gull
#

That's not what your code sent to the API

mighty tide
#

is it possible to force klarna for this pi?

rigid gull
#

You can update the Payment Intent and specify both "card', "klarna" for the payment_method_types parameter

mighty tide
#

yes, sorry, you're right. it's hardcoded but only since a couple of weeks. the old payment intents are only card. sorry for wasting your time

rigid gull
#

No problem, that's why we're here.