Forbidden response on post request, only in sandbox mode
nikola_travel
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-27-2018
10:24 AM
I already posted a question on stackoverflow but no answer yet - https://stackoverflow.com/questions/52500390/paypal-forbidden-post-request-only-in-sandbox-mode
I am using PayPal API successfully in production but having problems in sandbox environment. When I try to make a post request to "payouts" endpoint I am constantly getting 403 forbidden response. I created a sandbox account which is verified, US as a country, credentials are in place... So everything looks perfect on paper but still the request won't work. Any ideas? This is basically my request:
RestClient.post('https://api.sandbox.paypal.com/v1/payments/payouts?sync_mode=true', payload.to_json, headers)
with:
headers = {}.reverse_merge('Content-Type' => 'application/json', 'Authorization' => "Bearer #{access_token}")
0 REPLIES 0
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
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- IPN works in sandbox but not live in Sandbox Environment
- Issue with Rendering Trustly Payment Button via PayPal JavaScript SDK in SDKs
- Handling payouts that are being on hold/blocked in REST APIs
- Platform Marketplace integration approval in Sandbox Environment