24b0d121e09c28a8699fe8b115ef0464d188e0cf


24b0d121e09c28a8699fe8b115ef046c66f4214f98


https://github.com/cheolwo/TossInfra/blob/main/TossInfa/%ED%86%A0%EC%8A%A4%EA%B2%B0%EC%A0%9C/%ED%86%A0%EC%8A%A4%EA%B2%B0%EC%A0%9CAPIService.cs

TossInfra/TossInfa/토스결제/토스결제APIService.cs at main · cheolwo/TossInfraTossInfra. Contribute to cheolwo/TossInfra development by creating an account on GitHub.github.com

https://github.com/cheolwo/KakaoInfa/blob/main/kakaoInfa/kakaoInfa/%EC%B9%B4%EC%B9%B4%EC%98%A4%EA%B2%B0%EC%A0%9C/%EC%B9%B4%EC%B9%B4%EC%98%A4%EA%B2%B0%EC%A0%9CAPIService.cs

KakaoInfa/kakaoInfa/kakaoInfa/카카오결제/카카오결제APIService.cs at main · cheolwo/KakaoInfaKakaoInfa. Contribute to cheolwo/KakaoInfa development by creating an account on GitHub.github.com


그냥 프로세스가 비슷함.

사용자가 클라이언트에서 주문버튼 눌름


그러면 서버에서 주문정보를 토대로

토스는 결제생성Async, 카카오는 결제준비Async 실행함.

Return URL을 사용자에게 건넴.


사용자가 위 URL 가지고 결제함.


결제완료했다고 클라이언트에서 결제정보를 서버에게 보냄.

그러면 서버에서 토스로도 결제승인Async 하면 되고 카카오도 결제승인Async하면 됨.


끝임.



추가적으로 토스 자동결제 승인이라는 것도 있는데 그러면

사용자가 URL 가지고 결제하기만 하면 됨.

과정 일부 생략가능.



https://developers.kakaopay.com/docs/payment/online/common

카카오페이 | 개발자센터새로운 기회와 가치를 함께 만들어봐요developers.kakaopay.com

https://tossdev.github.io/api.html

토스페이 API토스페이 APItossdev.github.io