gpt4 book ai didi

javascript - Stripe : Shipping address not submitting via Node/Express

转载 作者:太空宇宙 更新时间:2023-11-04 00:29:05 25 4
gpt4 key购买 nike

我正在使用 NodeExpressStripe 提交表单。当我为该费用创建新客户时,我提交了与其相关的数据: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"
}
}

})

最佳答案

您的代码是正确的。送货地址不会显示在仪表板中,但可以在您 retrieve the customer 时检索。通过 API。

关于javascript - Stripe : Shipping address not submitting via Node/Express,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41716283/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com