#nina_klarna-canada

1 messages ยท Page 1 of 1 (latest)

crude gazelleBOT
#

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

๐Ÿ“ 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.

crystal ferry
honest prawn
#

Hi there,
I am supporting someone else right now but I will be with you in a moment.

crystal ferry
#

Thank you

honest prawn
#

Is this an error you are seeing on the "klarna side"? meaning when we are redirecting to klarna, this shows? Just trying to understand what is happening, what your integration looks like and when this message shows.

crystal ferry
#

Is this an error you are seeing on the "klarna side"? yes

#

The flow is when I use klarna to execute payment, it will redirect to the klarna website like above picture, but in the klarna page it shows not availiable

#

But I confirm klarna support rules in dashboard, it can work in Canada. I don't know what it happend.

#

I use USD Sandbox it can work fine

#

My request ID "req_c5VIWTBO3qxzed"

#
    mode: 'payment',
    currency: currency.value,
    amount: total.value,
    paymentMethodCreation: 'manual',
    customPaymentMethods: customPaymentMethods.value,
    appearance: generateStripeAppearance(),
  };

  return stripe.value.elements(options);
honest prawn
#

This is a bit tricky for us to investigate since the error message shows on the Klarna side, and not on ours. So I don't have much visibility as to why this Payment Method is not working. But I'll keep digging...

crystal ferry
#

Can you reproduce it?

#

Only for CAD sandbox account

honest prawn
#

No I can't seem to reproduce it, still trying

#

Are you using the Payment Element? I am a bit confused about the options parameter you are creating

crystal ferry
#

yes, I use Payment Element

#

const options: StripeElementsOptionsMode = {
mode: 'payment',
currency: currency.value,
amount: total.value,
paymentMethodCreation: 'manual',
customPaymentMethods: customPaymentMethods.value,
appearance: generateStripeAppearance(),
};

#

eg:

const options: StripeElementsOptionsMode = {
    mode: 'payment',
    currency: 'cad',
    amount: 12300,
    paymentMethodCreation: 'manual',
    customPaymentMethods: ['paypal'],
 
  };
honest prawn
#

Can I get the entire code snippet for the payment element?

crystal ferry
#
const stripe =
    Stripe(<CAD_SANBOX_KEY>);
const options = {
  mode: 'payment',
  currency: 'cad',
  amount: 1099,
  paymentMethodCreation: 'manual',
  customPaymentMethods: ['paypal'],
};
const elements = stripe.elements(options);
#
<form id="payment-form">
  <div id="payment-element">
    <!-- Mount the Payment Element here -->
  </div>
  <button id="submit">Submit</button>
</form>
const stripe =
    Stripe(<CAD_SANBOX_KEY>);
const options = {
  mode: 'payment',
  currency: 'cad',
  amount: 1099,
  paymentMethodCreation: 'manual',
  customPaymentMethods: ['paypal'],
};
const elements = stripe.elements(options);
const paymentElement = elements.create("payment");
paymentElement.mount("#payment-element"); 
honest prawn
#

I am still investigating.

crude gazelleBOT
boreal zephyr
#

๐Ÿ‘‹ taking over, give me some time to catch up

#

Okay looks to be a Klarna error really and not something we can debug here. I did try and I can't even test on my Canada account since I am not based there and Klarna just rejects me in Test mode in their playground and sends me back to my integration. If I try to force an address, it ignores it and doesn't let me pretend I am in Canada.

Sadly we'll have to send you to support directly for debugging this: https://support.stripe.com/contact and they can escalate to Klarna to investigate.

crystal ferry
boreal zephyr
#

sounds good, they should be able to work with Klarna and figure out the issue

#

I did try further and was able to pay if I forced a specific Canadian-based address during the confirmation: const response = await stripe.confirmPayment({ elements: elements, //redirect: 'if_required', confirmParams: { return_url: 'https://example.com', payment_method_data: { billing_details: { address: { line1: '2000 Guy St', city: 'Montreal', postal_code: 'H3H 2L8', state: 'QC', country: 'CA' }, email: 'myemail@example.com', name: 'my name', } }, }, });