- 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.
- I want to implement subscription functionality. in REST APIs
- link my PayPal business account with my WordPress website , but it's not work ?! in PayPal Payments Standard
- Change the button from Sandbox to Production in REST APIs
- Receiving a PAYMENT.SALE.COMPLETED webhook notification - how can I trace the parent Subscription in REST APIs
- “This payment cannot be processed because there was an error with the capture order API call”. in REST APIs