테스트 결제시 에러 생성

await paymentWidget?.requestPayment({
orderId: orderId,
orderName: orderName,
customerName: myName,
// customerEmail: 'test@test.com',
successUrl: window.location.origin + '/successPurchase',
failUrl: window.location.origin + '/failPurchase',
});
}
} catch (error) {
//
const orderCancelRes = await request({
url: /api/order/${orderId},
method: 'DELETE',
});
if (orderCancelRes) {
console.log('cancel success');
}

.

POST https://api.tosspayments.com/v1/payments/sdk 400
, ?
Was this page helpful?