#lepetitblanc - klarna language
1 messages · Page 1 of 1 (latest)
not really it is a live shop system
I can give you a link to the live page but it is in german, no translation yet. I am using this : https://x.klarnacdn.net/kp/lib/v1/api.js
and than Klarna.Payments.load({container: '#container_id', 'payment_method_category: category })
in a loop with klarne_pay_now and pay_later
Can I see the live page where the code is actually run?
payment works fine, it is just in english instead of german
Wir sind Ihr innovativer und zuverlässiger Partner zum Thema Container und Muldenservice. Einfach und bequem in 4 Schritten online bestellen!
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
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
Should I be seeing Klarna among those?
just click on one of the klarna logos
(Rechung) or (sofort) in pink
than the klarna widget will be shown
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.
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.
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
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,
});
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
ok. i try to talk to klarna, thank you so far
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
Thank you for your time!
Do you maybe have any idea how i can get in touch with klarna?
I see a "chat with us" button on their support site. Try that if you can https://www.klarna.com/us/customer-service/
Thanks, it seems that this is just for registered customers
Apologies, maybe you are more under merchant support? https://www.klarna.com/merchant-support/
Unfortunately I'm not finding an obvious place for specifically developer questions
Klarna can not help because we have no merchant_id, they asked me to aks stripe and stripe can ask them...
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?
They were asking for a merchent_id they cannot or don't want to help without this id...
I will ask my colleagues how we can help on this.
Or maybe if there is a better way to reach out to Klarna
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'
} ```
Thank you, this solved my problem. i am sorry i was not able to find this information in the docs