目前,我正在将订单金额转拨到正常工作的商家帐户中。
但是现在,当我执行退款操作时,会出现错误。
我遵循的步骤是:
获取商人的访问令牌
中进行退款处理。
captureId :从订单细节中获取
退款api的回应:
{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "60091a8e09195",
"details": [
{
"issue": "PERMISSION_DENIED",
"field": "capture_id",
"value": "90Y75959CH863854A",
"description": "You do not have permission to access or perform operations on this resource.",
"location": "path"
}
],
"links": [
{
"href": "https://developer.paypal.com/docs/api/payments/v2/#error-PERMISSION_DENIED",
"rel": "information_link"}
]}
有人能帮我找出我在做什么错误吗?我该如何解决这个问题呢?
发布于 2022-02-10 04:51:52
要确定授权期间应该尝试询问哪些作用域,请使用自己的凭据执行正常的access_token请求,并查看返回的scopes
变量。
https://uri.paypal.com/services/payments/refund
似乎是相关的。
https://stackoverflow.com/questions/71049463
复制相似问题