在Stripe Checkout中隐藏电子邮件

时间:2017-03-15 06:22:56

标签: reactjs stripe-payments stripe-connect

如何在Stripe Payment

中的checkout.js中禁用或隐藏电子邮件
onStripeUpdate(e) {
    this.stripehandler.open({
      name: "",
      description: "",
      panelLabel: "Pay {{amount}}",
      allowRememberMe: false,
      email: "", //--->how to hide this email?
    });
    e.preventDefault();
  }

1 个答案:

答案 0 :(得分:2)

无法完全停用电子邮件字段。您可以传递email configuration option的值,但该值必须是有效的电子邮件地址。如果它是有效地址,则该字段将替换为您提供的值的静态标签。

如果您未提供email选项,或者提供的值无效(例如示例代码中为空字符串),则仍会显示电子邮件字段。