react-native-stripe-payments icon indicating copy to clipboard operation
react-native-stripe-payments copied to clipboard

Error on confirmPayment

Open ericksondelacruz opened this issue 4 years ago • 3 comments

I got this error while trying to confirm the payment.

error : There was an unexpected error -- try again in a few seconds error : StripeModule.failed

I am using "react-native": "0.63.3" "react-native-stripe-payments": "^1.0.6"

Do I need to test it in physical device instead of simulator?

ericksondelacruz avatar Dec 17 '20 12:12 ericksondelacruz

Same Error for me also on stripe.confirmPayment

{"code":"StripeModule.failed","message":"There was an unexpected error -- try again in a few seconds","domain":"RCTErrorDomain","userInfo":null,"nativeStackIOS":["0 wavili 0x000000010d082de7 RCTJSErrorFromCodeMessageAndNSError + 135","1 wavili 0x000000010d00a623 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.129 + 179","2 wavili 0x000000010d5e3786 __62-[StripePayments confirmPayment:cardParams:resolver:rejecter:]_block_invoke_2 + 198","3 libdispatch.dylib 0x00007fff2010535b _dispatch_call_block_and_release + 12","4 libdispatch.dylib 0x00007fff20106534 _dispatch_client_callout + 8","5 libdispatch.dylib 0x00007fff20113011 _dispatch_main_queue_callback_4CF + 1045","6 CoreFoundation 0x00007fff203a8276 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9","7 CoreFoundation 0x00007fff203a2b06 __CFRunLoopRun + 2685","8 CoreFoundation 0x00007fff203a1b9e CFRunLoopRunSpecific + 567","9 GraphicsServices 0x00007fff2b793db3 GSEventRunModal + 139","10 UIKitCore 0x00007fff2466d40f -[UIApplication _run] + 912","11 UIKitCore 0x00007fff24672320 UIApplicationMain + 101","12 wavili 0x000000010c99dc70 main + 112","13 libdyld.dylib 0x00007fff20257409 start + 1","14 ??? 0x0000000000000001 0x0 + 1"]}

kashi-mamidisetti avatar Dec 28 '20 09:12 kashi-mamidisetti

@ericksondelacruz Have you verified your business with Stripe? I'm getting this too, but I'm wondering if it's because I haven't verified my business yet.

calliday avatar Dec 31 '20 19:12 calliday

@ericksondelacruz Are you using a valid client_secret? I was getting this error passing a "dummy" string as the client_secret.

MicaelRodrigues avatar Mar 26 '21 12:03 MicaelRodrigues