pay.php 1) 사용자가 결제할 멤버십 결제정보 입력, 이때 결제 할 때 javascript로 orderId, orderName, successUrl, failUrl, customerEmail, customerName, customerMobilePhone 설정, 2) 사용자가 신용카드, 결제방법 선택 및 결제하기 3) 결제성공시 success.php로 실패시 fail.php로 전달
테스트 환경에서 pay.php에서 신용카드로 결제정보 입력했을 때 success.php로 결제완료 정보 넘어오는 것 확인 완료하였습니다.
여기서 response 값을 저희 데이터베이스에 저장하고 멤버십 정보를 업데이트 하려고 합니다. 궁금한 게 success에 돌아오는 변수가 paymentType, orderId, paymentKey 요 세가지밖에 없습니다. 최초에 toss 서버로 전송한 orderName, customerEmail, customerName, customerMobilePhone도 success 페이지에서 받아서 database에 저장 가능할까요?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Tp개커
Toss payments 개발자 커뮤니티
Toss payments 개발자 커뮤니티입니다. 결제 연동하며 겪는 기술 문의부터, 결제 시장에 대한 다양한 정보까지 얻어가세요~