Paypal API v2-API 响应缺少 Seller_receivable_breakdown

标签 paypal paypal-rest-sdk

如何从 Paypal v2 API 中找到 Seller_receivable_breakdown 字段?

当我获取付款时,我没有收到 seller_receivable_breakdown回到 API 响应中,其中应包含 net_amount .

有什么原因吗?

API 响应:

{
"create_time": "2020-05-08T18:06:08Z",
"id": "35W12417YE077383Y",
"intent": "CAPTURE",
"links": [
    {
        "href": "https://api.sandbox.paypal.com/v2/checkout/orders/35W12417YE077383Y",
        "method": "GET",
        "rel": "self",
        "title": "GET"
    }
],
"payer": {
    "address": {
        "country_code": "SG"
    },
    "email_address": "sb-vnmn01690912@personal.example.com",
    "name": {
        "given_name": "John",
        "surname": "Doe"
    },
    "payer_id": "ZMVMLDB2Q3RNS"
},
"purchase_units": [
    {
        "amount": {
            "currency_code": "USD",
            "value": "76.00"
        },
        "payee": {
            "email_address": "sb-dtlz4548886@business.example.com",
            "merchant_id": "9D3W7QWY9MULE"
        },
        "payments": {
            "captures": [
                {
                    "amount": {
                        "currency_code": "USD",
                        "value": "76.00"
                    },
                    "create_time": "2020-05-08T18:06:37Z",
                    "final_capture": true,
                    "id": "1DU784512L090023U",
                    "links": [
                        {
                            "href": "https://api.sandbox.paypal.com/v2/payments/captures/1DU784512L090023U",
                            "method": "GET",
                            "rel": "self",
                            "title": "GET"
                        },
                        {
                            "href": "https://api.sandbox.paypal.com/v2/payments/captures/1DU784512L090023U/refund",
                            "method": "POST",
                            "rel": "refund",
                            "title": "POST"
                        },
                        {
                            "href": "https://api.sandbox.paypal.com/v2/checkout/orders/35W12417YE077383Y",
                            "method": "GET",
                            "rel": "up",
                            "title": "GET"
                        }
                    ],
                    "seller_protection": {
                        "dispute_categories": [
                            "ITEM_NOT_RECEIVED",
                            "UNAUTHORIZED_TRANSACTION"
                        ],
                        "status": "ELIGIBLE"
                    },
                    "status": "COMPLETED",
                    "update_time": "2020-05-08T18:06:37Z"
                }
            ]
        },
        "reference_id": "default",
        "shipping": {
            "address": {
                "address_line_1": "123 Thomson Rd.",
                "admin_area_1": "SG_zip = 308123",
                "admin_area_2": "Singapore",
                "country_code": "SG",
                "postal_code": "308123"
            },
            "name": {
                "full_name": "Doe John"
            }
        }
    }
],
"status": "COMPLETED",
"update_time": "2020-05-08T18:06:37Z"
}

最佳答案

它可能不在沙盒模式下,或者您可能需要对捕获 id 执行 get 操作。

https://developer.paypal.com/docs/api/payments/v2/#captures_get

关于Paypal API v2-API 响应缺少 Seller_receivable_breakdown,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61685673/

相关文章:

php - Paypal 沙盒 curl NVP 请求失败 (DoExpressCheckoutPayment)

Paypal 新移动SDK app_id

symfony - Payum Paypal Rest config_path

c# - 我可以在 c# 中使用 PayPal API 在 app.config 文件中使用两个不同的 clientId 和 clientSecret 值吗?

paypal - 如何从成功的付款中获取交易ID?

javascript - 仅使用客户端 js 的 Paypal 订阅

javascript - 使用 Bootstrap 定价 slider 的每月 Paypal 付款

Paypal 付款已完成,但由于商户网站上的服务器关闭而未触发 IPN

javascript - 如何使用 node-fetch 模块模拟 curl 请求

Paypal REST API 计费计划和协议(protocol)(订阅)