#kosek-klarna-polandmessaging
1 messages · Page 1 of 1 (latest)
I'm not seeing that when I test myself.
Did you use one of Klarna's test phone numbers for their sandbox environment? When I used one, all of the info got filled out for me
It actually fills out my real phone number, even tho I have provided the test one. That's why I have hidden in behind the red rectangle. Does it get it from Stripe Dashboard? Not sure where is this coming from
Let me go through a new order, maybe there's something stale from previous attempts
No, I still see my real phone number. I pass the data like this (this works for the past year with Blik, P24, cards):
const { error, paymentIntent } = await stripe.confirmPayment({
clientSecret,
elements,
redirect: 'if_required',
confirmParams: {
return_url: `${window.location.origin}/order-completed?cartId=${cart.id}`,
payment_method_data: {
billing_details: {
address: {
country: country_code ?? undefined,
city: city ?? undefined,
line1: address_1 ?? undefined,
line2: address_2 ?? undefined,
postal_code: postal_code ?? undefined,
state: province ?? undefined,
},
name: `${first_name} ${last_name}`,
email: cart.email,
phone: phone ?? undefined,
},
},
},
});
The phone number must come from my account in stripe dashboard.
No, it must be stored somewhere in cookies
From previous fillout
On Klarna side
SOrry bout that
I'm doing incognito mode, hold on
Also klarna has example numbers and info on their site that you can input. https://docs.klarna.com/resources/test-environment/sample-customer-data/#united-states
For testing your integration against the Klarna Playground (test) environment
Yes, now it works in incognito mode. There was stale data from previous attemps. It must be somewhere stored in cookies and remotely on KLarna. Thank you.
Can I ask here another one or should I create a new one?
WHen I test Payment Element on this page: https://stripe.com/docs/payments/payment-element
And using United Kingdom it shows some additional data for Klarna (screenshot)
But using Poland as an example there isn't any infomration about what Klarna is and payment options. I don't see it in test environment either. Is there something that I can enable to view the info in Polish language inside the PaymentElement?
I know there is this: https://stripe.com/docs/payments/payment-method-messaging
But that is not for PaymentElement.
Good question. Looking in to this and will get back to you. Can you send a screenshot of what it looks like for a Polish customer?
THere's nothing. Like on the above page. Mine just doesn't have the input fields, because I provide data in cofirmPayment and have
fields: {
billingDetails: 'never',
},
Poland
Having trouble recreating this. Can you send me an example payment intent that you saw this with (pi_123) as well as your client-side code for setting up your payment element?
I can even recreate it on the test page in Stripe docs in here: https://stripe.com/docs/payments/payment-element
By selecting Poland from dropdown.
But sure, this is the intent: pi_3OhbnkLJMdQkx7dY0NmzRvgw
import { PaymentElement } from '@stripe/react-stripe-js';
export default function StripePaymentContainer() {
const paymentElementOptions = {
layout: {
type: 'accordion',
},
fields: {
billingDetails: 'never',
},
};
return <PaymentElement options={paymentElementOptions} />;
}
import { useCart } from 'medusa-react';
import StripePaymentContainer from './StripePaymentContainer';
export default function PaymentContainer() {
const { cart } = useCart();
if (!cart?.payment_sessions?.length) return null;
return (
<div>
<h3 className="text-xl font-header text-gray-600 font-bold">
Metoda płatności
</h3>
<div className="mt-6">
{cart?.payment_session?.provider_id === 'stripe' && (
<StripePaymentContainer />
)}
</div>
</div>
);
}
👋 hopping in here since pompey has to head out soon
You're specifically asking why the "Available offers from Klarna" section isn't appearing, right? Is this when you switch to a different stripe account entirely, or just when you switch to a different intent?
Yes, exactly. I have never seen it. We use only Polish language in store and only Poland as a region.
But do you really see the message in Polish on the test page in here: https://stripe.com/docs/payments/payment-element ?
I can see the section when I choose Germany or United Kingdom. But not when Poland.
I have tested multiple intents.
Germany:
Selected Poland:
gotcha - l et me see if I can find more details on why we don't display that
So from what I can see, we likely missed implementing this for Poland + Klarna because it launched aroudn the same time Payment Method Messaging element (which the payment element is using to surface that section)
I'll flag to the team to get that fixed
kosek-klarna-polandmessaging