[英]Stripe: Shipping address not submitting via Node/Express
我正在使用Node
和Express
向Stripe
提交表单。 当我为费用创建新客户时,我提交相关数据: https : //stripe.com/docs/api/node#create_customer
除了送货地址外,所有东西都出现在 Stripe 的仪表板中。 我在命令行或控制台中没有收到任何错误,因此很难解决问题。 我唯一的猜测是我需要将一些配置传递给 Stripe,告诉他们我正在收集地址。 不知道。
任何帮助将非常感激!
这就是我现在所拥有的。
stripe.customers.create({ email: req.body.stripeEmail, source: req.body.stripeToken, description: "this is he", metadata: { this: "that", gender: "female", party: "green" }, shipping: { name: "Yuki Matthews", address: { line1: "123 Yukon Ave.", line2: "Suite B", city: "Seattle", state: "Washington", country: "United States", postal_code: "98144" } } })
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.