如何在Stripe Payment
中的checkout.js中禁用或隐藏电子邮件onStripeUpdate(e) {
this.stripehandler.open({
name: "",
description: "",
panelLabel: "Pay {{amount}}",
allowRememberMe: false,
email: "", //--->how to hide this email?
});
e.preventDefault();
}
答案 0 :(得分:2)
无法完全停用电子邮件字段。您可以传递email
configuration option的值,但该值必须是有效的电子邮件地址。如果它是有效地址,则该字段将替换为您提供的值的静态标签。
如果您未提供email
选项,或者提供的值无效(例如示例代码中为空字符串),则仍会显示电子邮件字段。