· 6 years ago · Sep 05, 2019, 01:10 PM
1CloseableHttpClient httpclient = HttpClients.createDefault();
2 HttpPost httpPost = new HttpPost(TOKEN_URI);
3 httpPost.setHeader("Authorization", "Bearer " + stripeApiKey); // Do we need to pass this?
4 List<NameValuePair> nvps = new ArrayList<NameValuePair>();
5 nvps.add(new BasicNameValuePair("client_secret", stripeApiKey)); Is this really the platform API Key?
6 or is it the client secret of the connected account?
7 nvps.add(new BasicNameValuePair("grant_type", "authorization_code"));
8 nvps.add(new BasicNameValuePair("client_id",)); // Is this the platforms client id? or the connected account client id?
9 nvps.add(new BasicNameValuePair("code", code));