#nina_paymentelement-klarna
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/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.
- nina_webhooks, 1 day ago, 10 messages
nina_paymentelement-klarna
This request is I add localhost domain "req_F35ulOv9kLpgli"
is there any error in the JS console or warning?
No
Can you try const options: StripeElementsOptionsMode = { mode: 'payment', currency: 'usd', amount: 100020, paymentMethodTypes: ['klarna'], };
for a sec and tell me what you see?
If I remove paymentMethodTypes: ['klarna'], klarna could not show
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
cool
๐งโ๐ป 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
foocontains the valuebar.
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)
So the problem is likely that you didn't enable Klarna in your payment method settings: https://dashboard.stripe.com/test/settings/payment_methods go to your Default configuration and enable Klarna
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?
Can I use credit card to complete a PaymentIntent?
yeah it's fine. I just want to be certain I look at the right account
and to be clear you are currently based in the US with an IP address in the US?
I am in Cad
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
In the Us, it means the IP should be US?
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
I also set the billing address country as US, it also can't work
correctyou just can't test really from Canada unless you use a VPN
Gotcha, It is difficult for me to test it
If I specify paymentMethodTypes, can I create an experiment?
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?
Are you referring to our A/B Testing feature?
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.
If I specify the paymentMethodTypes: ['card', 'klarna'], can I use it ?
If I specify the paymentMethodTypes: ['card', 'klarna'], can I use it ?
Nope, sorry
To run an A/B test, your integration must use dynamic payment methods
Yes, so you cannot specify the paymentMethodTypes parameter