204 message when trying to use Paypal Payouts API with Java. (sandbox)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What's up with that? 😄 I send my secret and username, get a Bearer token, send the bearer token as a header, and I get a 204 empty response, and the payment doesn't get deposited in the account of the correct sandbox account.
I've been going based on what is in postman. These are my headers for the bearer token
HashMap<String, String> headers = new HashMap<String, String>();
headers.put("Authorization", authString);
headers.put("Cache-Control", "no-cache");
headers.put("Host", "api.sandbox.paypal.com");
headers.put("accept-encoding", "gzip, deflate");
headers.put("content-length", contentLength);
headers.put("Connection", "keep-alive");
headers.put("Accept", "application/json");
headers.put("Accept-Language", "en_US");
headers.put("Content-Type", "application/x-www-form-urlencoded");
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- IPN works in sandbox but not live in Sandbox Environment
- Change the button from Sandbox to Production in PayPal Payments Standard
- Handling payouts that are being on hold/blocked in REST APIs
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- Refunding an order via HATEOAS URL failing with NOT_AUTHORIZED error in Sandbox Environment