I was trying to implement postman's working as following for android app:
Here is my java codes:
MediaType CONTENT_TYPE = MediaType.parse("application/x-www-form-urlencoded"); RequestBody requestBody = new MultipartBody.Builder() .setType(CONTENT_TYPE) .addFormDataPart("phoneNumber", phone) .addFormDataPart("serviceType", type) .addFormDataPart("stripeToken", token) .addFormDataPart("serviceCost", String.valueOf(amount)) .build(); final Request request = new Request.Builder() .url(Const.URL_HEROKU_BASE+"payment/charge") .post(requestBody) .build();