paypal checkout sdk ruby - refund permission denied

freedrull
Contributor
Contributor

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?

 

 

Login to Me Too
1 REPLY 1

freedrull
Contributor
Contributor

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

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.