V2 SDK 결제창 호출 시 타입 관련

await payment.requestPayment({
  method: 'CARD',
  amount: getTotalPrice(paymentMethod),
  orderId,
  orderName: `${reducer.ordererName}님 결제 [${orderId}]`,

  successUrl: `${globalThis.location.origin}/payments/tosspayments/success`,
  failUrl: `${globalThis.location.origin}/payments/tosspayments/fail`,

  customerEmail: reducer.ordererEmail,
  customerName: reducer.ordererName,
  customerMobilePhone: reducer.ordererPhone,

  card: {
    useEscrow: false,
    flowMode: 'DEFAULT',
  },
})


,
method가 CARD고 card .
image.png
Was this page helpful?