Skip to content

Commit

Permalink
feat: 외부 결제 모듈 연동 (#92)
Browse files Browse the repository at this point in the history
* feat: 예약 테이블 유니크 키 추가

* feat: 목 외부 결제 서버 api 연동

* feat: 수업 예약시 결제 기능 추가

* refactor: 로그 오타 수정

* refactor: 패키지 위치 수정

* refactor: import문 최적화

* feat: yml update

* fix: 목 서버용 구분자 추가
  • Loading branch information
Parkjyun authored Jan 24, 2025
1 parent 3edc943 commit 2b5383b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class TossClientCaller implements PaymentClientApi {

private static final String BASIC = "Basic ";
private static final String CANCEL_REASON_INTERNAL_ERROR = "내부 오류";
private static final String DELIMITER = ":";

private final TossProperties tossProperties;
private final RestClient tossRestClient;
Expand All @@ -27,7 +28,7 @@ public TossClientCaller(TossProperties tossProperties, RestClient tossRestClient
this.tossRestClient = tossRestClient;
this.paymentClientResponseErrorHandler = paymentClientResponseErrorHandler;
this.secretKey = Base64.getEncoder()
.encodeToString((tossProperties.clientId()).getBytes());
.encodeToString((tossProperties.clientId() + DELIMITER).getBytes());
}

@Override
Expand Down

0 comments on commit 2b5383b

Please sign in to comment.