问题描述
我正在尝试通过 PayPal rest-api 向某人的 PayPal 帐户汇款。 支付 api 处理没有任何错误,但在我收到的 webhook 中,它显示支付失败并且收款人没有收到钱。
我认为问题出在收款人帐户上,并尝试通过 PayPal(而不是 payout rest-api)简单地汇款。收款人能够收到款项。
我附上了失败时收到的 webhook 响应
{
"batch_header": {
"payout_batch_id": "5CUYYX9GRXXXX","batch_status": "DENIED","time_created": "2021-07-30T09:03:36Z","time_completed": "2021-07-30T09:03:39Z","time_closed": "2021-07-30T09:03:39Z","sender_batch_header": {
"sender_batch_id": "6318914d-8506-4182-be21-xxxxxxx","email_subject": "You have money!","email_message": "You received a payment. Thanks for using our service!"
},"funding_source": "BALANCE","amount": {
"currency": "USD","value": "1.00"
},"fees": {
"currency": "USD","value": "0.00"
}
},"items": [
{
"payout_item_id": "APW3A3DKHDXXX","transaction_status": "Failed","payout_item_fee": {
"currency": "USD","value": "0.00"
},"payout_batch_id": "5CUYYX9GXXXXX","payout_item": {
"recipient_type": "EMAIL","amount": {
"currency": "USD","value": "1.00"
},"receiver": "[email protected]","sender_item_id": "2014031400XXX","recipient_wallet": "PAYPAL"
},"time_processed": "2021-07-30T09:03:39Z","errors": {
"name": "UNDEFINED","message": "Sorry,an error has occurred. For help,please contact your account manager or our Customer Service team. You can also try sending the Payout after sometime.","@R_524_4045@ion_link": "https://developer.paypal.com/docs/api/payments.payouts-batch/#errors","details": [],"links": []
},"links": [
{
"href": "https://api.paypal.com/v1/payments/payouts-item/APW3A3DKHXXXX","rel": "item","method": "GET","encType": "application/json"
}
]
}
],"links": [
{
"href": "https://api.paypal.com/v1/payments/payouts/5CUYYX9GRGX2L?page_size=1000&page=1","rel": "self","encType": "application/json"
}
]}
我在此响应中没有收到错误消息。 我可以通过 rest-apis 向其他 PayPal 账户汇款,所以问题不在发送方。
为什么我无法通过 PayPal rest-api 向某些收件人发送付款?有没有其他人从 webhook 响应中收到此错误,其中显示未定义但没有任何其他详细信息?
解决方法
向该帐户发送付款被 PayPal 拒绝。这不是技术问题。
如果您需要解释拒绝原因,可以联系 PayPal 的支持人员。很可能有关接收帐户的某些内容过于可疑或可能具有欺诈性,因此无法继续进行自动 API 付款。