Hide email in Stripe Checkout

元气小坏坏 提交于 2021-01-27 07:11:14

问题


How to disable or hide email in checkout.js in Stripe Payment

onStripeUpdate(e) {
    this.stripehandler.open({
      name: "",
      description: "",
      panelLabel: "Pay {{amount}}",
      allowRememberMe: false,
      email: "", //--->how to hide this email?
    });
    e.preventDefault();
  }

回答1:


It is not possible to disable the email field entirely. You can pass a value for the email configuration option, but it must be a valid email address. If it's a valid address, the field will be replaced by a static label with the value you provided.

If you don't provide the email option, or if you provide an invalid value (such as an empty string in your example code), then the email field will still be displayed.



来源:https://stackoverflow.com/questions/42802439/hide-email-in-stripe-checkout

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