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',
},
})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 객체가 있음에도 타입 오류가 발생하고 있어 확인이 필요합니다.

