Posted: August 23, 2019 at 5:11 am
Hi EE Team,
(Please refer to my previous unresolved topic for historical purposes : Previous topic)
I have contacted Stripe to understand how to customize the stripe checkout window placeholder for the postal code validation field and they are asking which version of Stripe Checkout you are using. Could you please provide this information ?
For Stripe Checkout it uses version 2, which is considered legacy.
Then, added in a recent version, Stripe Elements with Payment Intents was added as an option.
OK, I am giving up trying to translate ‘CP’ into ‘Code Postal’. You guys are saying that it is under Stripe control and Stripe are saying the opposite. After digging into all EE files, I am giving up !
Now, Stripe told me that I can use Stripe Element instead of Stripe Checkout since Event Espresso is now using that API. They also told me that this API should show ‘Code Postal’ when validating the postal code when french language setting is selected. But it seems EE is not using postal code validation when using Stripe Element API (I have tested multiple card numbers and web browsers and postal code is never asked). I have double checked this by browsing the code in all EE Stripe plugin files, especially stripe_elements_form.template.php. In addition, the payment form is half translated. As an example, the “What’s this” label and the “Expiry Date (MM/YY)” label are not translated even though their placeholders are ! As for other missing translation, I have tried using the “gettext” filter without success.
I am desperately seeking your help for :
1) How to translate the Stripe Elements form in french ?
Thanks in advance.
As mentioned in your previous thread, the only thing we can send over to Stripe for postal code is setting
Heres the doc for the integration method we are using:
We can set the locale to use on checkout should you wish to override whatever it uses and there’s an option for that in Stripes settings, but not specifically for the postal code field.
If anyone from Stripe can highlight how we pass a value onto that version of Stripe checkout to use as a place holder for postal code I will happily provide a snippet that will do it within EE for you but as far as I can tell, there isn’t one which is why I said previously it is controlled by Stripe themselves.
However, that may all now be irrelevant as you can’t use Stripe Checkout v2 with PSD2 anyway, that’s one of the reasons we added the Stripe elements option.
It does, but not in the same way as I’m guessing you’ve seen (with a single field collecting the card number, expiry, CVV and zip?)
It uses the zip field from setting ‘Collect the user’s billing address?’ to Yes.
It’s set up within the
This is not something you should edit directly but it can be changed via a hook.
Those are new strings added to the plugin so there is no translation for them yet.
The gettext filter should work for them, can you post the code you are using and I’ll find out why its not working for you?
The placeholders for the’elements’ loading on the that are translated via Stripe.
For this do you mean the ‘Card Number’, ‘Expiry Date (MM/YY)’ and “CVC (What’s this?” strings or something else?
It does, but you need to set the ‘Collect the user’s billing address’ option in the payment method settings to yes.
The support post ‘Validate the billing ZIP code (2)’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.