Cannot read properties of undefined (reading 'filter')

.
.
@Tosspayments/payment-sdk 1.6.5 , PC .

async function requestPayment() {
    const tossPayments = await loadTossPayments(clientKey);

    if (orderDetail) {
      tossPayments.requestPayment("카드", {
        amount: orderDetail.result.price,
        orderId: orderDetail.result.orderId,
        orderName: orderDetail.result.orderName,
        customerName: orderDetail.result.customerName,
        successUrl: `${window.location.origin}/payment/success`,
        failUrl: `${window.location.origin}/payment/fail`,
      });
    }
  }
2023-09-07_11.08.16.png
Was this page helpful?