paypal checkout sdk ruby - refund permission denied
freedrull
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-18-2020
12:12 PM
I create an order and execute it, saving the capture ID for refunds later.
I execute the refund ,but I get a PERMISSION DENIED response.
#<OpenStruct name=\"NOT_AUTHORIZED\", message=\"Authorization failed due to insufficient permissions.\", debug_id=\"8e3d4c0bca0f4\", details=[#<OpenStruct issue=\"PERMISSION_DENIED\", field=\"capture_id\", value=\"8EU66460CS946615V\", description=\"You do not have permission to access or perform operations on this resource.\", location=\"path\">], links=[#<OpenStruct href=\"https://developer.paypal.com/docs/api/payments/v2/#error-PERMISSION_DENIED\", rel=\"information_link\">]>
Am I using the correct ID?
1 REPLY 1
freedrull
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-23-2020
11:26 AM
It looks like I'm not the only one with this issue, I found a github issue where people are saying to use the /v1 endpoint instead.
Is this really a solution?
https://github.com/paypal/PayPal-REST-API-issues/issues/301#issuecomment-521317015

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Paypal via Adyen Permission Denied in REST APIs
- PERMISSION_DENIED error for checkout/orders/{order_id} endpoint in REST APIs
- Unable to test successful payments using sandbox personal accounts in NVP/SOAP APIs
- How do I handle INSTRUMENT_DECLINED error? in REST APIs
- Help needed for Sandbox Webhooks configuration in Sandbox Environment