我想为我的用户做单次支付。我尝试过sdk和curl的沙盒。我收到批次标头响应,状态为挂起。我已经检查了这两个帐户,它显示交易为completed.but,我得到以下响应。
stdClass Object
(
[batch_header] => stdClass Object
(
[payout_batch_id] => MFAW63MEMBDB8
**[batch_status] => PENDING**
[sender_batch_header] => stdClass Object
(
[email_subject] => SDK payouts test txn
)
)
[links] => Array
(
[0] => stdClass Object
(
[href] => https://api.sandbox.paypal.com/v1/payments/payouts/MFAW63MEMBDB8
[rel] => self
[method] => GET
[encType] => application/json
)
)
)发布于 2020-07-10 23:16:27
支出以批处理的形式运行,开始时为挂起状态。您可以稍后查询批处理的状态,或者为一些相关事件注册一个webhook事件监听器:
https://developer.paypal.com/docs/api-basics/notifications/webhooks/event-names/#batch-payouts
https://stackoverflow.com/questions/62818638
复制相似问题