모바일 웹뷰앱에서 결제위젯 연동 문의드립니다.

.

try {
//
const method = "C";

//
await widgets.requestPayment({
orderId: orderId, // 문 ID
orderName: productName, //
customerName: buyerName, //
successUrl: ${window.location.origin}/success?method=${method},
failUrl: window.location.href, // 트 URL()
});
} catch (error: any) {
//
try {
await deletePayment(order_id);

//
if (error.code === "USER_CANCEL") {
console.log(".");
} else {
console.error(":", error.message);
}
} catch (apiError) {
console.error(":", apiError);
}
}
};


.
?
Was this page helpful?