#lepetitblanc - klarna language

1 messages · Page 1 of 1 (latest)

static yew
#

Do you have a test page that I can see this on?

unreal widget
#

not really it is a live shop system

#

and than Klarna.Payments.load({container: '#container_id', 'payment_method_category: category })

#

in a loop with klarne_pay_now and pay_later

static yew
#

Can I see the live page where the code is actually run?

unreal widget
#

payment works fine, it is just in english instead of german

static yew
#

If this was working before and you didn't change anything to change it back but I'm still a bit unclear on some of the Stripe parts of this

unreal widget
#

but you need to put an item to the cart before you can get to the cart

#

I didn't changed anything on the code, i just activated connect to onboard other companies

#

to be honest, i cannot say when the language changed, i know that it was in german when we first build the shop a couple of years ago

static yew
#

Should I be seeing Klarna among those?

unreal widget
#

just click on one of the klarna logos

#

(Rechung) or (sofort) in pink

#

than the klarna widget will be shown

static yew
#

There we go, and indeed that is showing up in English for me.

#

Will see what I can find on why this might be happening.

unreal widget
#

Thank you.

#

What is strange to me is, that if you select (SOFORT Überweisung) which is also through klarna but not with their widget, the language is german.

static yew
#

Did you directly integrate with Klarna on your page? I'm not seeing Stripe code on that page in the developer console

#

If so, this would be something to bring to Klarna support

unreal widget
#

i create a chargable source in the backend

#
try {
            $source = Source::create([
                'type'         => 'klarna',
                'amount'       => $amount,
                'currency'     => $currency,
                'klarna'       => [
                    'product'          => 'payment',
                    'purchase_country' => $countryCode,
                ],
                'owner'        => [
                    'name'             => $name,
                    'email'            => $email,
                ],
                'source_order' => [
                    'items' => $items,
                ],
            ], $this->options );
        }
#

where in the options is an empty array or the option to set the stripe id for connected accounts

#

Country is AT

#

because for now we only ship to at, so usually it is AT or DE, if not it would through an error

#

This is how i initialize Klarna, the token is from stripe

#
// Initialize the SDK
    Klarna.Payments.init({
        client_token: client_token,
    });
static yew
#

Gotcha. If the client side code is Klarna, I would talk to them.

#

I don't think we send them something to say what the client side language should be

unreal widget
#

ok. i try to talk to klarna, thank you so far

static yew
#

Of course, if they point back to something Stripe is doing, we can look in to it further here. But I think it is more likely that something client side is determining this

#

Thank you for your time

unreal widget
#

Thank you for your time!

#

Do you maybe have any idea how i can get in touch with klarna?

static yew
unreal widget
#

Thanks, it seems that this is just for registered customers

static yew
#

Unfortunately I'm not finding an obvious place for specifically developer questions

unreal widget
#

Klarna can not help because we have no merchant_id, they asked me to aks stripe and stripe can ask them...

static yew
#

Sorry that you are getting sent around. Did they say to ask us for your merchant ID or ask us about the English on your page?

unreal widget
#

They were asking for a merchent_id they cannot or don't want to help without this id...

static yew
#

I will ask my colleagues how we can help on this.

#

Or maybe if there is a better way to reach out to Klarna

static yew
#

So it turns out that you can pass in the locale to the Klarna hash when creating the Klarna source https://jsfiddle.net/narb950e/
https://stripe.com/docs/sources/klarna#create-source

      product: 'payments',
      purchase_country: 'de',
      locale: 'de-DE', // <----
      first_name: 'Johannes',
      last_name: 'Claudi'
    } ```

Use Sources to accept payments using Klarna, a popular global payment method.

unreal widget
#

Thank you, this solved my problem. i am sorry i was not able to find this information in the docs