Haru
TPToss payments 개발자 커뮤니티
•Created by Haru on 5/29/2024 in #❓┃연동개발-문의
결제 파라미터 관련 문의 드립니다.
상점ID: qomicszpod
문의 내용:
저희가 현재 결제 위젯을 사용하여 결제 테스트를 직접 하고 있는데, 결제 승인이 완료되면 사용자에게 결제 완료 Email을 보내는 시스템을 구축하려고 합니다.
결제 위젯이 있는 html에서
button.addEventListener("click", function () {
paymentWidget.requestPayment({
orderId: generateRandomString(),
amount: amount,
orderName: "test Product",
successUrl: window.location.href + "/success.php",
failUrl: window.location.href + "/fail.php",
customData: {
customerEmail: "test",
customerName: "test",
customerMobilePhone: "test"
}
})
위와 같이 작성하였고, 결제가 완료되어 success.php로 다이렉트 될 때, success.php에서 email 정보를 받아, 메일을 보내려고 합니다.
sucess.php에서 확인 결과, payment key, orderId, amout만 받는 것을 확인했습니다.
혹시, 저 3개 외 나머지 파라미터를 받을 수 있는 방법이 있을까요??
22 replies