민지님
민지님
requestPayment내 appScheme 값 문의
- 가이드: https://docs.tosspayments.com/guides/windows/card 하이브리드 앱향 개발중이고, requestPayment에 'appScheme'을 넣어야 하는데요. appScheme에 대한 정의가 없는 것 같습니다. const tossPayments = await loadTossPayments(clientKey!); tossPayments.requestPayment('카드', { amount: 15000, orderId: 'testOrderId00001', orderName: '', customerName: 'Bold Action', successUrl: ${window.location.origin}/product, failUrl: ${window.location.origin}/product, appScheme: 'livenapp://' }); 이 호출과 일치하는 오버로드가 없습니다. 마지막 오버로드에서 다음 오류가 발생했습니다. '{ amount: number; orderId: string; orderName: string; customerName: string; successUrl: string; failUrl: string; appScheme: string; }' 형식의 인수는 'PaymentRequest' 형식의 매개 변수에 할당될 수 없습니다. 개체 리터럴은 알려진 속성만 지정할 수 있으며 'PaymentRequest' 형식에 'appScheme'이(가) 없습니다.ts(2769)
9 replies