우루르
TPToss payments 개발자 커뮤니티
•Created by 우루르 on 8/29/2024 in #❓┃연동개발-문의
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);
}}
/>`
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}
12 replies