自定义收款人的PayPal退款权限

问题描述

我有以下流程- 买家付款,我在客户上添加了一个客户收款人,将orderId传递给服务器,并在服务器上捕获了交易。

在这种情况下我可以退款吗? 使用以下API,我得到“ PERMISSION_DENIED” https://api.sandbox.paypal.com/v2/payments/captures/0NA021645B5069646/refund

说明:“您无权访问或对此资源执行操作。”

我在做什么错了?

解决方法

您无权从其他人的帐户退款。

他们需要grant the permission到您的API调用者帐户。

获得批准后,对于该特定的v2退款电话,您需要构造并传递一个PayPal-Auth-Assertion标头,其记录在此处:https://developer.paypal.com/docs/api/reference/api-requests/#http-request-headers

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...