Skip to content

Commit e695430

Browse files
authored
Merge pull request #249 from prgrms-web-devcourse-final-project/fix#248
[Fix]: 지갑 이동 수정 -3
2 parents 3f7696c + f93a8d0 commit e695430

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/backend/domain/payment/controller/ApiV1PaymentMethodController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ public ResponseEntity<Void> confirmCallback(
171171
@RequestParam(required = false, defaultValue = "") String result
172172
) {
173173
try {
174-
if (!"success".equalsIgnoreCase(result)) {
174+
String res = (result == null) ? "" : result.toLowerCase();
175+
if (!res.startsWith("success")) {
175176
return redirect("/wallet?billing=fail&reason=result_not_success");
176177
}
177178
if (customerKey == null || authKey == null) {

0 commit comments

Comments
 (0)