Skip to content

Conversation

@kfdsy0103
Copy link
Contributor

@kfdsy0103 kfdsy0103 commented Feb 4, 2025

📌 관련 이슈

✨ PR 세부 내용

  1. 카카오페이 결제 API를 연동하여 결제를 구현하였습니다. (테스트 환경)
    결제의 과정은 '준비-결제-승인' 이고 구체적인 과정은 다음과 같습니다.
  • 결제 준비 단계(/kakao-pay/ready) : 카카오페이 쪽에 결제 정보를 생성하도록 합니다. 응답으로 url을 받는데, 사용자를 이쪽으로 리다이렉트 되도록 합니다.

  • 사용자의 결제 : url로 이동하여 비밀번호를 입력하고 결제를 진행합니다. 다음 결과에 따라 프론트 쪽 url로 리다이렉트합니다.

  • 결제 최종 승인 단계(/kakao-pay/approve) : 최종 승인까지 완료되어야 실제로 돈이 빠져나갑니다. 프론트에서 orderId와 pgToken를 전달하면 결제 최종 승인 api를 호출해 마무리합니다.

    위 url과 화면 구성은 회의 때 얘기를 나눠봐야할 것 같습니다.


  1. 동시성 처리는 mysql의 네임드락을 사용하였습니다. 레디스 도입을 생각했으나 레디스 구축 및 학습 비용을 고려하여, 일단은 현재 환경에서 최대한 해결하였습니다.

  1. html 작성하여 테스트 진행하였습니다.
    https://github.com/user-attachments/assets/419a0922-25a6-40e8-b19e-a29d9b431d12

@kfdsy0103 kfdsy0103 added the ✨ feature 새로운 기능을 추가합니다 label Feb 4, 2025
@kfdsy0103 kfdsy0103 self-assigned this Feb 4, 2025
@kfdsy0103 kfdsy0103 linked an issue Feb 4, 2025 that may be closed by this pull request
1 task
Copy link
Member

@dongjune8931 dongjune8931 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

Copy link
Contributor

@redblackblossom redblackblossom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

@redblackblossom redblackblossom merged commit 7308e46 into develop Feb 7, 2025
1 check passed
@redblackblossom redblackblossom deleted the feat/#71/idea_purchase branch February 7, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ feature 새로운 기능을 추가합니다

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 아이디어 구매 api 구현

4 participants