Open marinesnow34 opened 4 months ago
try { return restTemplate.postForObject(TossPaymentConfig.CONFIRM_URL, new HttpEntity<>(params, headers), TosspaymentDto.class); } catch (HttpClientErrorException e) { return e.getResponseBodyAs(TosspaymentDto.class); } catch (Exception e) { log.error("e.getMessage() = " + e.getMessage()); throw new BusinessLogicException(ExceptionCode.TOSS_PAYMENT_SUCCESS_FAIL); }
토스 에러 만들기 참고