customerKey 가 반드시 필요한가요?

인 qr.


const payment = tossPayments.payment({customerKey: TossPayments.ANONYMOUS})
?

await payment.requestPayment({
method: "CARD", //
amount: {
currency: "KRW",
value: Number(price),
},
orderId: generateKey(),
orderName: $('#prdNm').text(),
successUrl: window.location.href + '/success', // 는 URL
failUrl: window.location.href + '/fail', // 는 URL
customerEmail: null,
customerName: null,
customerMobilePhone: null,
//
card: {
useEscrow: false,
flowMode: "DEFAULT", //
useCardPoint: false,
useAppCardOnly: false,
},
});
Was this page helpful?