我一直在尝试将 PayPal Payouts API 集成到我的应用程序中,但遇到了一些问题。
请求
{
"sender_batch_header": {
"email_subject": "<redacted> Payout Received",
"email_message": "You have received a payout. Thank you for your service with <redacted>",
"sender_batch_id": "<redacted-uuid>"
},
"items": [{
"recipient_type": "EMAIL",
"amount": {
"value": "100.0",
"currency": "USD"
},
"note": "Thank you for your services",
"receiver": "<redacted-email>",
"sender_item_id": "<redacted-uuid>"
}
]
}
回应
{
"batch_header": {
"payout_batch_id": "<redacted-id>",
"batch_status": "PENDING",
"sender_batch_header": {
"sender_batch_id": "<redacted-email>",
"email_subject": "<redacted> Payout Received",
"email_message": "You have received a payout. Thank you for your service with <redacted>"
}
},
"links": [{
"href": "https://api.sandbox.paypal.com/v1/payments/payouts/<redacted-id>",
"rel": "self",
"method": "GET",
"encType": "application/json"
}
]
}
我们的问题是付款实际上并未发送到请求电子邮件的 PayPal 帐户。接收者电子邮件是 PayPal 沙箱帐户电子邮件,因此这应该不是问题。根据文档,如果请求成功,则批次状态为
PENDING
。我在这里缺少什么吗?