#kosek-klarna-polandmessaging

1 messages · Page 1 of 1 (latest)

limpid currentBOT
thorn locust
#

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

stable kernel
#

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

thorn locust
stable kernel
#

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?

thorn locust
#

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?

stable kernel
#

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',
    },
thorn locust
#

Gotcha, thank you

#

And what country is your Stripe account based in?

stable kernel
#

Poland

limpid currentBOT
thorn locust
#

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?

stable kernel
#
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>
  );
}
ivory geode
#

👋 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?

stable kernel
#

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:

ivory geode
#

gotcha - l et me see if I can find more details on why we don't display that

ivory geode
#

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

stable kernel
#

Awesome, thank you 🙂

#

🙌

limpid currentBOT
#

kosek-klarna-polandmessaging