브랜드페이 SDK 결제요청관련하여 문의드립니다. 아래의 개발 문서의 예제코드에서 결제 오류가 발생할 경우 SDK에서 오류메시지, 오류코드는 어떻게 구할 수 있나요?
brandpay.requestPayment({ amount: 15000, orderId: 'a2OKahFNXP8e80UPchRPB', orderName: '토스 티셔츠 외 2건', customerName: '박토스', customerEmail: 'customer@example.com', }) .then(function (data) { // 결제 요청 성공 처리 }) .catch(function (error) { if (error.code === 'USER_CANCEL') { // 사용자가 창을 닫아 취소한 경우에 대한 처리 } })
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
Tp개커
Toss payments 개발자 커뮤니티
Toss payments 개발자 커뮤니티입니다. 결제 연동하며 겪는 기술 문의부터, 결제 시장에 대한 다양한 정보까지 얻어가세요~