#nina_paymentelement-klarna

1 messages ยท Page 1 of 1 (latest)

dense ironBOT
#

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

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

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.

young ore
#

nina_paymentelement-klarna

hushed moth
#

This request is I add localhost domain "req_F35ulOv9kLpgli"

young ore
#

is there any error in the JS console or warning?

hushed moth
#

No

young ore
#

Can you try const options: StripeElementsOptionsMode = { mode: 'payment', currency: 'usd', amount: 100020, paymentMethodTypes: ['klarna'], };
for a sec and tell me what you see?

hushed moth
#

It can show if you specify the paymentMethodTypes

young ore
#

sorru what does that mean?

#

you were already setting paymentMethodTypes earlier

hushed moth
#

If I remove paymentMethodTypes: ['klarna'], klarna could not show

young ore
#

ahhhhhhhh

#

So to be super clear: the code example you shared works fine?

hushed moth
#

const options: StripeElementsOptionsMode = {
mode: 'payment',
currency: 'usd',
amount: 100020,
paymentMethodCreation: 'manual',
setup_future_usage: 'off_session',
customPaymentMethods: customPaymentMethods.value,
paymentMethodTypes: ['card', 'klarna'],
}; this one , the klarna will show

young ore
#

cool

dense ironBOT
#

๐Ÿง‘โ€๐Ÿ’ป How to format code on Discord

Inline code: wrap in single backticks (`)

This:

The variable `foo` contains the value `bar`.

Will turn into this:

The variable foo contains the value bar.

Code blocks: wrap in three backticks (```)

Also, you can specify the language after the first three backticks to get syntax highlighting.

This:

```javascript
function foo() {
return 'bar';
}
```

Will turn into this:

function foo() {
  return 'bar';
}```

Notes about **code blocks**:
- Specifying the language is optional (e.g., you can omit `javascript` in the example above)
  - If you don't specify the language you won't get syntax highlighting
- When you're inside a code block (after you type \`\`\`) the `Return`/`Enter` key will add a new line instead of sending your message
  - Once you end the code block `Return`/`Enter` works normally again

You can [read more about message formatting on Discord's website.](https://support.discord.com/hc/en-us/articles/210298617)
young ore
hushed moth
#

I think I enable it

#

I use sandbox account

young ore
#

yeah I'm fairly confident that's the issue and maybe you are mixing up multiple accounts?

Sorry this is a pain to debug in general without a lot more details but it's also hard for you to give the right detail because it's all hidden

#

Can you complete a PaymentIntent first and give me that PaymentIntent id so I can look at your logs?

hushed moth
#

Can I use credit card to complete a PaymentIntent?

young ore
#

yeah it's fine. I just want to be certain I look at the right account

hushed moth
#

Gotcha

#

Let me give you a paymentIntent I do it before

#

req_j4aA5jccSiEkah

young ore
#

and to be clear you are currently based in the US with an IP address in the US?

hushed moth
#

I am in Cad

young ore
#

because I looked at our logs and it says you are not

#

yeah see that's why

#

it is in your screenshot, it only works for customers based in the US

hushed moth
#

In the Us, it means the IP should be US?

young ore
#

correct!

#

super annoying because there are no visible ways for you to detect this. I just get that quesiton a lot and know where to narrow it down in our logs ๐Ÿ™

#

but I'm confident Klarna would work fine if you were based in the US

hushed moth
#

I also set the billing address country as US, it also can't work

young ore
#

correctyou just can't test really from Canada unless you use a VPN

dense ironBOT
hushed moth
#

Gotcha, It is difficult for me to test it

#

If I specify paymentMethodTypes, can I create an experiment?

harsh yew
#

Hi ๐Ÿ‘‹

My colleague has to go soon so I'm taking over.

Can you explain what you mean by creating an experiment? What do you want to test?

hushed moth
#

I want to use experiment to do ab test

#

Yep

harsh yew
#

This is entirely managed through the Dashboard.

#

And our docs clearly call out that you must use dynamic payment methods for this

To run an A/B test, your integration must use dynamic payment methods. A/B testing is available if you use either Payment Element Web with the Payment Intents API or Checkout in payment mode. See Supported payment methods for the list of payment methods you can test.

hushed moth
#

If I specify the paymentMethodTypes: ['card', 'klarna'], can I use it ?

harsh yew
#

If I specify the paymentMethodTypes: ['card', 'klarna'], can I use it ?

Nope, sorry

hushed moth
#

To run an A/B test, your integration must use dynamic payment methods

harsh yew
#

Yes, so you cannot specify the paymentMethodTypes parameter