Skip to content

CandyPay

항목내용
API 엔드포인트https://api.candypay.co.kr/px/intents/confirm
인증 방식Basic Auth (Secret Key Base64 인코딩)
서비스 파일CandyPaymentService.java
실패 추적TB_CANDY_PAYMENT_FAILURE 테이블 자동 기록

플로우 설명:

  1. 프론트엔드에서 CandyPay 위젯을 통해 결제를 진행합니다
  2. 결제 위젯이 반환한 payment_intent_id를 Spring Boot으로 전달합니다
  3. CandyPaymentService가 CandyPay API에 결제 승인을 요청합니다
  4. 실패 시 자동으로 TB_CANDY_PAYMENT_FAILURE에 전체 응답 데이터가 기록됩니다

application.yml의 retry 설정입니다.

항목설명
maxAttempts1최대 재시도 횟수
delay1000재시도 간격 (ms)
multiplier2.0지수 백오프 배수

현재 maxAttempts가 1로 설정되어 있어 실질적으로 재시도 없이 1회 시도합니다. 결제 실패 내역은 DB에 기록되므로, 필요 시 수동으로 재처리할 수 있습니다.