#armin_api
1 messages ยท Page 1 of 1 (latest)
๐ 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.
The yellow highlighted message should be in english. I'm on our english page for Germany. Browser language in Chrome is German
You can still force the element local if you need:
https://docs.stripe.com/js/elements_object/create#stripe_elements-options-locale
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.
๐ taking over for my colleague. Let me catch up.
It's possible to display multiple Payment options (if available)
You can refer to the example in the guide:
https://docs.stripe.com/payments/payment-method-messaging
You can force the available payment methods:
https://docs.stripe.com/js/elements_object/create_element?type=paymentMethodMessaging#elements_create-options-paymentMethodTypes
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
He would expect french
sorry I missed your message somehow
I'm looking at this right away
the locale needs to be set when creating the elements https://docs.stripe.com/js/elements_object/create_without_intent#stripe_elements_no_intent-options-locale
not the PaymentMessageElement
or on the Stripe instance