Stripe 未能自动填写客户邮箱发送回执

Stripe fails to automatically fill the customer email adress to send a receipt

我进行了条带结帐,运行(在测试模式下)测试卡​​运行良好。

现在我不明白为什么它在成功时不通过电子邮件发送收据。

我在 docs 中看到我们需要 1) 允许在仪表板中自动发送电子邮件(已完成)和 2) 在 checkout.sessions.create 函数中指定客户的电子邮件地址.

目前,stripe 不发送电子邮件,因为我没有在 checkout.sessions.createcustomer_email 字段中指定电子邮件地址。

我不明白的是,为什么 stripe 不自动填写地址并将收据发送给它,因为 stripe 结账实际上是在“结账”页面上收集一封电子邮件,如果这有意义的话……

感谢您的帮助。

Stripe 在测试模式下不发送电子邮件。 Stripe's documentation for email receipts右边的信息框是这样解释的:

Receipts for payments created using your test API keys are not sent automatically. Instead, you can view or manually send a receipt using the Dashboard.