모바일에서 결제창 띄우기
"[INVALID_PARAMETER]: 모바일 화면에서는 Promise 방식을 지원하지 않습니다. " 라고 오류가 발생하고 있습니다.
WEB으로 개발된 사이트를 모바일용으로 옮기고 있는데 WEB에서는 then 과 catch 로 아래와 같이 요청했습니다.
tossPayments.requestPayment('CARD', {
amount: amount
orderId: orderId,
orderName: orderName,
customerName: customerName,
useEscrow: false
})
.then(function(data){
goPayment(data);
})
.catch(function(error){
goNav(2);
});
모바일에서 위와 똑같이 되도록 구성하려면 어떻게 수정해야 할까요? successUrl 나 failUrl는 사용할수 없는 상태입니다.
WEB으로 개발된 사이트를 모바일용으로 옮기고 있는데 WEB에서는 then 과 catch 로 아래와 같이 요청했습니다.
tossPayments.requestPayment('CARD', {
amount: amount
orderId: orderId,
orderName: orderName,
customerName: customerName,
useEscrow: false
})
.then(function(data){
goPayment(data);
})
.catch(function(error){
goNav(2);
});
모바일에서 위와 똑같이 되도록 구성하려면 어떻게 수정해야 할까요? successUrl 나 failUrl는 사용할수 없는 상태입니다.
