kraffslol / react-native-braintree-xplat

Cross-platform Braintree module for React Native
MIT License
81 stars 121 forks source link

Tapping "Paypal check out" crashes the app on android #45

Open qmegas opened 7 years ago

qmegas commented 7 years ago
FATAL EXCEPTION: main
    Process: com.test, PID: 1861
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1706816330, result=3, data=Intent { (has extras) }} to activity {com.test/com.test.MainActivity}: java.lang.RuntimeException: Cannot convert argument of type class com.braintreepayments.api.exceptions.UnexpectedException
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4925)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4968)
        at android.app.ActivityThread.access$1600(ActivityThread.java:222)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:158)
        at android.app.ActivityThread.main(ActivityThread.java:7229)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
     Caused by: java.lang.RuntimeException: Cannot convert argument of type class com.braintreepayments.api.exceptions.UnexpectedException
        at com.facebook.react.bridge.Arguments.fromJavaArgs(Arguments.java:57)
        at com.facebook.react.bridge.CallbackImpl.invoke(CallbackImpl.java:36)
        at com.pw.droplet.braintree.Braintree.onActivityResult(Braintree.java:131)
        at com.facebook.react.bridge.ReactContext.onActivityResult(ReactContext.java:265)
        at com.facebook.react.ReactInstanceManager.onActivityResult(ReactInstanceManager.java:675)
        at com.facebook.react.ReactActivityDelegate.onActivityResult(ReactActivityDelegate.java:149)
        at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:77)
        at android.app.Activity.dispatchActivityResult(Activity.java:7137)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4921)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4968) 
        at android.app.ActivityThread.access$1600(ActivityThread.java:222) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1849) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:158) 
        at android.app.ActivityThread.main(ActivityThread.java:7229) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)