RN android 에서만 겪는 초기화 이슈 문의드립니다. 비슷한 사례가 있었다면 어떻게 안내해주셨는지 궁금합니다.

https://github.com/tosspayments/tosspayments-sample-v1/blob/main/payment-widget/react-native/App.tsx

드 App.tsx 재 ios .
android

{paymentWidgetControl && (
<PaymentMethodWidget
{paymentWidgetControl && (
<PaymentMethodWidget
selector="payment-methods"
onLoadEnd={async () => {
console.debug('📦 [PaymentMethodWidget] onLoadEnd ');
try {
// ~!
const control = await paymentWidgetControl.renderPaymentMethods(
'payment-methods',
{ value: TRAINER_MATCHING_PRICE, currency: 'KRW', country: 'KR' },
{ variantKey: 'DEFAULT' }
);
// .
// async await . then 게 android 위 renderPaymentMethods . , .
console.debug('✅ renderPaymentMethods :', control);
setPaymentMethodWidgetControl(control);
} catch (error: any) {
console.error('❌ renderPaymentMethods :', JSON.stringify(error));
Alert.alert('', error.message || JSON.stringify(error));
}
}}
/>
)}

. .
GitHub
츠 SDK v1 . . Contribute to tosspayments/tosspayments-sample-v1 development by creating an account on GitHub.
tosspayments-sample-v1/payment-widget/react-native/App.tsx at main ...
Was this page helpful?