Skip to content

Commit

Permalink
refactor: http 메서드수정
Browse files Browse the repository at this point in the history
  • Loading branch information
lja3723 committed Nov 18, 2024
1 parent 3101756 commit b15ac48
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
Expand All @@ -19,17 +19,17 @@ public class KakaoPaymentRedirectController {
@Value("${oauth.payment.fail_deep_link}")
private String failDeepLink;

@PostMapping("/kakaopay/redirect/approval")
@GetMapping("/kakaopay/redirect/approval")
public String redirectKakaopayApproval(@RequestParam("pg_token") String pgToken) {
return "redirect:" + approvalDeepLink + "?pg_token=" + pgToken;
}

@PostMapping("/kakaopay/redirect/cancel")
@GetMapping("/kakaopay/redirect/cancel")
public String redirectKakaopayCancel(@RequestParam("pg_token") String pgToken) {
return "redirect:" + cancelDeepLink + "?pg_token=" + pgToken;
}

@PostMapping("/kakaopay/redirect/fail")
@GetMapping("/kakaopay/redirect/fail")
public String redirectKakaopayFail(@RequestParam("pg_token") String pgToken) {
return "redirect:" + failDeepLink + "?pg_token=" + pgToken;
}
Expand Down

0 comments on commit b15ac48

Please sign in to comment.