자동빌링 관련한 문제

TypeError: Cannot read properties of undefined (reading 'customerKey') 가 Toss Payments SDK (v1:8:493552), ?

, . (), , .

는 customerKey어 Toss Payments SDK. src/components/SubscriptionModal.tsx 의 handlePayment , 이 customerKey:


const customerKey =
customer_${userId}_${Date.now()}
;
이 customerKey는 billingAuthOptions 어 tossPayments.requestBillingAuth() :


const billingAuthOptions = {
customerKey: customerKey,
successUrl: successUrl,
failUrl: failUrl,
customerName: customerName,
customerEmail: userEmail
};

await tossPayments.requestBillingAuth(billingAuthOptions);
, 도 customerKey어 billingAuthOptions :

🔍 Customer info prepared: {customerKey: 'customer_1_1753760036255', customerEmail: ', customerName: '', userId: 1}
🔍 Billing auth options: Object (에 customerKey.)
, 서 customerKey. TypeError: Cannot read properties of undefined (reading 'customerKey') 은 Toss Payments SDK 서 billingAuthOptions 서 customerKey, , .
Was this page helpful?