KnownError: Bridge 응답을 받지 못했습니다.



KnownError: Bridge .
.
.

async function confirm() {
const requestData = {
paymentKey: $("#paymentKey").val(),
orderId: $("#orderId").val(),
amount: $("#amount").val(),
};

const response = await fetch("/TossPay/confirm", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(requestData),
});

const json = await response.json();

if (!response.ok) {
// .
console.log(json);
window.location.href = /TossPay/PayFail?message=${json.message}&code=${json.code};
}

// .
console.log(json);
}
confirm();
Was this page helpful?