우루르
우루르
결제실패
PaymentMethodWidget가 가끔 안나오는때가 있는데 혹시 원인이 있을까요..? const paymentWidgetControl = usePaymentWidget(); const [paymentMethodWidgetControl, setPaymentMethodWidgetControl] = useState<PaymentMethodWidgetControl | null>(null); <PaymentMethodWidget selector="payment-methods" onLoadEnd={() => { paymentWidgetControl .renderPaymentMethods( 'payment-methods', {value: price}, { variantKey: 'DEFAULT', }, ) .then((control: PaymentMethodWidgetControl) => { setPaymentMethodWidgetControl(control); }); }} />
4 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}
위 에러가 계속해서 발생합니다. 해결방법이 있을까요?
12 replies