- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using the Checkout-PHP-SDK
I am unable to capture a payment, my debug output returns:
403,
"name":"NOT_AUTHORIZED"
"details":[{"issue":"PERMISSION_DENIED","description":"You do not have permission to access or perform operations on this resource."}],
"message":"Authorisation failed due to insufficient permissions."
Am I missing something in my sandbox setup?
I can see in my dashboard API calls the setup is fine but capture is getting rejected
create succeeds -> /v2/checkout/orders
capture fails ->/v2/checkout/orders/[id]/capture
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So it turned out I had not referenced my client secret var correctly, the fact that the order creation worked threw me off investigating the connection. I spent far too much time down the rabbit hole, debug and a nights sleep are my friend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So it turned out I had not referenced my client secret var correctly, the fact that the order creation worked threw me off investigating the connection. I spent far too much time down the rabbit hole, debug and a nights sleep are my friend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh god, you saved me at least another day of wasting time 🤣
I spent almost the entire day debugging and for the same reason that the first call worked did not think that it could be a token issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So can you explain what "not referenced client secret var" actually means?
Where do I have to reference it?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- p is not a function error using the example downloaded from Paypal in SDKs
- PHP SDK error: broken content-length header in SDKs
- How to get the custom field from a payment with webhook/API? in REST APIs
- How to validate data existence on PayPal side in REST APIs
- ppxo_inline_guest_unhandled_error - How to handle this error throguh code in PayPal Payments Standard