我正在尝试找到如何填写贝宝中的运输信息,尤其是客户的电子邮件地址和姓名。这是我的代码: paypal.Buttons({ createOrder: function(data, actions) { return actions.order.create({ purchase_units: [{ reference_id: "PUHF", description: "Some description", custom_id: "Something7364", soft_descriptor: "Great description 1", amount: { currency_code: "EUR", value: "234.00", breakdown: { item_total: { currency_code: "EUR", value: "200.00" }, tax_total: { currency_code: "EUR", value: "20.00" }, discount: { currency_code: "EUR", value: "5.00" }, shipping: { currency_code: "EUR", value: "20.00" }, insurance: { currency_code: "EUR", value: "1.00" }, shipping_discount: { currency_code: "EUR", value: "2.00" } } }, items: [ { name: "Item 1", description: "The best item ever", sku: "xyz-2654", unit_amount: { currency_code: "EUR", value: "100.00" }, quantity: "1" }, 送货地址已填写,但 Paypal 页面中未填写姓名和电子邮件地址。有人可以帮我将正确的参数传递给 paypal 吗?
1 回答
慕的地6264312
TA贡献1817条经验 获得超6个赞
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
payer: {
name: {
given_name: 'Jean',
surname: 'Martin'
},
email_address: 'jeanmartin@email.com'
},
purchase_units: [{
...
}]
});
},
添加回答
举报
0/150
提交
取消