通过 Stripe Payment Link URL 预填客户电子邮件

时间:2021-06-21 19:33:12

标签: forms url attributes stripe-payments

我正在一个项目中测试 Stripe 的新付款链接,并尝试在结帐表单的电子邮件字段中预填用户的电子邮件地址。我尝试使用“电子邮件”数据属性附加付款链接 URL,这不起作用,数据未传递:

https://buy.stripe.com/14k...fYZ?email=johnsmith@gmail.com

我知道 Stripe 的客户端结账解决方案确实允许这样做,但我正在尝试只使用支付链接,因为它非常简单。任何帮助将不胜感激,谢谢!

1 个答案:

答案 0 :(得分:1)

Stripe Payment Links 不支持预先填写客户的电子邮件。

但是,如果您愿意编写一些代码,则可以use the Stripe API to create a Checkout Session with a pre-filled email。创建会话后,您可以send your customer to the url provided in the Checkout Session object