수기결제(키인결제) 시 구매자명, 구매자이메일, 구매휴대폰 정보 삽입데이터 문의

URL url = new URL("https://api.tosspayments.com/v1/payments/key-in");

HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestProperty("Authorization", authorizations);
connection.setRequestProperty("Content-Type", "application/json");
connection.setRequestMethod("POST");
connection.setDoOutput(true);
JSONObject obj = new JSONObject();
obj.put("orderId", orderId);
obj.put("amount", amount);
obj.put("cardNumber", cardNumber);
obj.put("cardExpirationYear", cardExpirationYear);
obj.put("cardExpirationMonth", cardExpirationMonth);
obj.put("orderName", orderName);
obj.put("customerIdentityNumber", customerIdentityNumber);

. 점 mid는 kvp_jworiakqey
Was this page helpful?