user_cancel
function pay(method, requestJson) {
tossPayments.requestPayment(method, requestJson).catch(function (error) {
if (error.code === "USER_CANCEL") {
alert("유저가 취소했습니다.");
} else {
alert(error.message);
}
});
}
이 부분에서 PC버전은 USER_CANCEL에서 alert가 뜨는데 모바일에서 하면 failurl로 넘어갑니다.
PC와 모바일 다른 부분이 있울까요?
tossPayments.requestPayment(method, requestJson).catch(function (error) {
if (error.code === "USER_CANCEL") {
alert("유저가 취소했습니다.");
} else {
alert(error.message);
}
});
}
이 부분에서 PC버전은 USER_CANCEL에서 alert가 뜨는데 모바일에서 하면 failurl로 넘어갑니다.
PC와 모바일 다른 부분이 있울까요?
