小编Cup*_*upi的帖子

PayPal REST API不接受自定义的送货地址

我在https://developer.paypal.com/webapps/developer/docs/api/上关注PayPal REST API参考,以创建和执行付款.

要创建付款,我将以下数据发送到PayPal.数据包含"shipping_address".付款已成功创建.

{
"intent": "sale",
"payer": {
    "payment_method": "paypal"
},
"redirect_urls": {
    "return_url": "http://www.somethingabc.com/approve",
    "cancel_url": "http://www.somethingabc.com/cancel"
},
"transactions": [{
    "amount": {
        "currency": "USD",
        "total": "10.00",
        "details": {
            "shipping": "0.00",
            "subtotal": "10.00",
            "tax": "0.00"
        }
    },
    "item_list": {
        "items": [{
            "quantity": "1",
            "name": "Apples",
            "price": "10.00",
            "currency": "USD"
        }],
        "shipping_address": {
            "recipient_name": "John",
            "type": "residential",
            "line1": "441 Waterdale RD",
            "city": "Heidelberg West",
            "country_code": "AU",
            "postal_code": "3081",
            "state": "VICTORIA"
        }
    }
}]
Run Code Online (Sandbox Code Playgroud)

}

然后,我将Web浏览器重定向到PayPal响应中给出的approval_url(例如,https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-343434SADSDSAD34)登录并批准付款.将显示用户登录和PayPal评论网页.我希望此评论页面应显示我之前在创建付款时提供的自定义送货地址.但是,PayPal评论网页会显示PayPal所有者的地址. …

paypal paypal-sandbox

6
推荐指数
1
解决办法
999
查看次数

标签 统计

paypal ×1

paypal-sandbox ×1