Stripe embed form: Change Zipcode placeholder text?

梦想的初衷 提交于 2019-12-13 04:41:25

问题


Does anyone know if it's possible to change the zipcode placeholder text to say "postcode" instead? Trying to take payments from uk customers and worried "zipcode" is putting them off.


回答1:


Since the stripe checkout window is embedded it is currently no supported way that i know off to change the text displayed. The checkout window also adapts to which country the user is in. So as mentioned in comments it might say "Zip Code" in the US, but "Postcode" in the UK. If you want to lock the language to keep f.ex "Postcode" you can use the "locale" parameter in the initialization of the checkout window.

Here you can find the docs explaining which parameters and data is editable in the checkout window: https://stripe.com/docs/checkout#integration-custom



来源:https://stackoverflow.com/questions/54478427/stripe-embed-form-change-zipcode-placeholder-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!