I've set up PayPal Payouts with the correct headers, payload, and url in my java app, and am getting a 204 response from PayPal while in Sandbox mode. When I change values, the error or success response that I receive from PayPal are symmetrical to the errors or success responses that I receive when modifying values in the Postman configuration provided by PayPal, meaning my headers, secret keys, authorization, bearer token are all correct. However, the money is not being deposited in the correct account. This is inconsistent with what I've experienced with another, personal PayPal app I created with node, where the money gets deposited in the account in test mode. Does this mean PayPal Payouts only returns a 204? If not, how do I fix this?
... View more
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");
... View more