躍然一笑
2023-08-10 14:33:32
我正在嘗試找到如何填寫(xiě)貝寶中的運(yùn)輸信息,尤其是客戶(hù)的電子郵件地址和姓名。這是我的代碼: 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" }, 送貨地址已填寫(xiě),但 Paypal 頁(yè)面中未填寫(xiě)姓名和電子郵件地址。有人可以幫我將正確的參數(shù)傳遞給 paypal 嗎?
1 回答

慕的地6264312
TA貢獻(xiàn)1817條經(jīng)驗(yàn) 獲得超6個(gè)贊
paypal.Buttons({
createOrder: function(data, actions) {
return actions.order.create({
payer: {
name: {
given_name: 'Jean',
surname: 'Martin'
},
email_address: 'jeanmartin@email.com'
},
purchase_units: [{
...
}]
});
},
添加回答
舉報(bào)
0/150
提交
取消