const payment = tossPayments.payment({ customerKey: res.customerKey });
await payment.requestPayment({
method: "CARD",
amount: { currency: "KRW", value: ... },
orderId: ...,
orderName: ...,
successUrl: callbackUrl,
failUrl: callbackUrl,
card: {
flowMode: "DEFAULT",
},
});
const payment = tossPayments.payment({ customerKey: res.customerKey });
await payment.requestPayment({
method: "CARD",
amount: { currency: "KRW", value: ... },
orderId: ...,
orderName: ...,
successUrl: callbackUrl,
failUrl: callbackUrl,
card: {
flowMode: "DEFAULT",
},
});