Toss payments 개발자 커뮤니티Tp개커Toss payments 개발자 커뮤니티
Powered by
우루르우
Toss payments 개발자 커뮤니티•2y ago•
11 replies
우루르

React Native 위젯 연동시 Warning이 발생합니다.

    "@tosspayments/widget-sdk-react-native": "^1.3.0", 
`<PaymentWidgetProvider
        clientKey={TOSS_REAL_API_KEY}
        customerKey={'DDF_dDF123sdDDD'}>`  

` <PaymentMethodWidget
        selector="payment-methods"
        onLoadEnd={() => {
          setTimeout(() => {
            paymentWidgetControl
              .renderPaymentMethods(
                'payment-methods',
                {value: price},
                {
                  variantKey: 'DEFAULT',
                },
              )
              .then(control => {
                setPaymentMethodWidgetControl(control);
              });
          }, 0);
        }}
      />` 
    "@tosspayments/widget-sdk-react-native": "^1.3.0", 
`<PaymentWidgetProvider
        clientKey={TOSS_REAL_API_KEY}
        customerKey={'DDF_dDF123sdDDD'}>`  

` <PaymentMethodWidget
        selector="payment-methods"
        onLoadEnd={() => {
          setTimeout(() => {
            paymentWidgetControl
              .renderPaymentMethods(
                'payment-methods',
                {value: price},
                {
                  variantKey: 'DEFAULT',
                },
              )
              .then(control => {
                setPaymentMethodWidgetControl(control);
              });
          }, 0);
        }}
      />` 

이렇게 사용중에 있는데, 토스 paymentMethodWidget 오픈시

Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string. Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=3, WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: PaymentWidget, WKJavaScriptExceptionColumnNumber=33, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}
Error evaluating injectedJavaScript: This is possibly due to an unsupported return type. Try adding true to the end of your injectedJavaScript string. Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=3, WKJavaScriptExceptionMessage=ReferenceError: Can't find variable: PaymentWidget, WKJavaScriptExceptionColumnNumber=33, WKJavaScriptExceptionSourceURL=about:blank, NSLocalizedDescription=A JavaScript exception occurred}


위 에러가 계속해서 발생합니다. 해결방법이 있을까요?
Toss payments 개발자 커뮤니티 banner
Toss payments 개발자 커뮤니티Join
Toss payments 개발자 커뮤니티입니다. 결제 연동하며 겪는 기술 문의부터, 결제 시장에 대한 다양한 정보까지 얻어가세요~
15,588Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

React-native 위젯 문의
치와와치치와와 / ❓┃연동개발-문의
12mo ago
react native 결제위젯 연동시 successurl 문의
효경효효경 / ❓┃연동개발-문의
3y ago
해외 결제 위젯 연동시
foxstarFfoxstar / ❓┃연동개발-문의
11mo ago
결제위젯 연동시 카카오페이에서만 오류가 발생합니다.
윤갱/마도/86윤윤갱/마도/86 / ❓┃연동개발-문의
6mo ago