#armin_api

1 messages ยท Page 1 of 1 (latest)

lost cragBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1255442141522690172

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

waxen shoal
#

The yellow highlighted message should be in english. I'm on our english page for Germany. Browser language in Chrome is German

fathom rock
waxen shoal
#

Thank you. Let me check this quickly.

#

btw, I was asking my developer if it would be possible for example to show the 3 or 6 payment option, instead of the one with the smallest value. He said now. Can you confirm this ?

The reason is to show them an interest free option in the first place.

lost cragBOT
nocturne owl
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

fathom rock
waxen shoal
# fathom rock You can still force the element local if you need: <https://docs.stripe.com/js/e...

Our dveloper tried this:
let eid = {{ stripeCredentials.eid| json_encode() | raw }};
// Set your publishable key. Remember to change this to your live publishable key in production!
// See your keys here: https://dashboard.stripe.com/apikeys
const stripe = Stripe(eid);
const elements = stripe.elements();
const Amount = {{ cart.priceCalculator.grandTotal.grossAmount | raw }};
const amountclean = Math.round(Amount*100);

const options = {
    amount: amountclean,
    currency: '{{ cart.priceCalculator.grandTotal.currency.shortName }}',
    countryCode: '{{ userCountry ?? 'DE' }}',
    paymentMethodTypes: ['klarna', 'apple_pay_later'],
    locale: 'fr'
};
const PaymentMessageElement =
    elements.create('paymentMethodMessaging', options);
PaymentMessageElement.mount('#payment-method-messaging-element');

but for him it is still in browser language

#

He would expect french

nocturne owl
#

sorry I missed your message somehow

#

I'm looking at this right away

#

not the PaymentMessageElement

#

or on the Stripe instance