Open alexhdez98 opened 5 months ago
Does this happen during debugging or only for released apps?
@jonasbark During debugging on Android. On iOS is working fine in release.
Hello, is there any update on this item? I am also experiencing this issue on Android devices only.
Can you try it on the latest version. I was able to use the customer sheet in the example app
@remonh87 Seems the issue of not being able to even open the customer sheet has disappeared 👍 However, when adding a new payment method in the sheet, it crashes with the error:
E/AndroidRuntime(15315): FATAL EXCEPTION: main
E/AndroidRuntime(15315): Process: xxx.xxx.xxx, PID: 15315
E/AndroidRuntime(15315): java.lang.IllegalArgumentException: Required value was null.
E/AndroidRuntime(15315): at com.stripe.android.paymentsheet.forms.FormViewModel.<init>(FormViewModel.kt:69)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.injection.DaggerCustomerSheetViewModelComponent$FormViewModelSubcomponentImpl.getViewModel(DaggerCustomerSheetViewModelComponent.java:159)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetViewModel.buildFormObserver(CustomerSheetViewModel.kt:1189)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetViewModel.transitionToAddPaymentMethod(CustomerSheetViewModel.kt:770)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetViewModel.transitionToAddPaymentMethod$default(CustomerSheetViewModel.kt:756)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetViewModel.onAddCardPressed(CustomerSheetViewModel.kt:374)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetViewModel.handleViewAction(CustomerSheetViewModel.kt:179)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetActivity$onCreate$1$1$4$1.invoke(CustomerSheetActivity.kt:99)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.CustomerSheetActivity$onCreate$1$1$4$1.invoke(CustomerSheetActivity.kt:99)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.ui.CustomerSheetScreenKt$SelectPaymentMethod$1$1$1.invoke(CustomerSheetScreen.kt:135)
E/AndroidRuntime(15315): at com.stripe.android.customersheet.ui.CustomerSheetScreenKt$SelectPaymentMethod$1$1$1.invoke(CustomerSheetScreen.kt:135)
E/AndroidRuntime(15315): at androidx.compose.foundation.ClickablePointerInputNode$pointerInput$3.invoke-k-4lQ0M(Clickable.kt:895)
E/AndroidRuntime(15315): at androidx.compose.foundation.ClickablePointerInputNode$pointerInput$3.invoke(Clickable.kt:889)
E/AndroidRuntime(15315): at androidx.compose.foundation.gestures.TapGestureDetectorKt$detectTapAndPress$2$1.invokeSuspend(TapGestureDetector.kt:255)
E/AndroidRuntime(15315): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
E/AndroidRuntime(15315): at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:179)
E/AndroidRuntime(15315): at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:168)
E/AndroidRuntime(15315): at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:474)
E/AndroidRuntime(15315): at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:508)
E/AndroidRuntime(15315): at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:497)
E/AndroidRuntime(15315): at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:368)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl$PointerEventHandlerCoroutine.offerPointerEvent(SuspendingPointerInputFilter.kt:665)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.dispatchPointerEvent(SuspendingPointerInputFilter.kt:544)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNodeImpl.onPointerEvent-H0pRuoY(SuspendingPointerInputFilter.kt:566)
E/AndroidRuntime(15315): at androidx.compose.foundation.AbstractClickablePointerInputNode.onPointerEvent-H0pRuoY(Clickable.kt:855)
E/AndroidRuntime(15315): at androidx.compose.foundation.AbstractClickableNode.onPointerEvent-H0pRuoY(Clickable.kt:703)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:317)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:303)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.NodeParent.dispatchMainEventPass(HitPathTracker.kt:183)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.HitPathTracker.dispatchChanges(HitPathTracker.kt:102)
E/AndroidRuntime(15315): at androidx.compose.ui.input.pointer.PointerInputEventProcessor.process-BIzXfog(PointerInputEventProcessor.kt:96)
E/AndroidRuntime(15315): at androidx.compose.ui.platform.AndroidComposeView.sendMotionEvent-8iAsVTc(AndroidComposeView.android.kt:1446)
E/AndroidRuntime(15315): at androidx.compose.ui.platform.AndroidComposeView.handleMotionEvent-8iAsVTc(AndroidComposeView.android.kt:1398)
E/AndroidRuntime(15315): at androidx.compose.ui.platform.AndroidComposeView.dispatchTouchEvent(AndroidComposeView.android.kt:1338)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3169)
E/AndroidRuntime(15315): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2845)
E/AndroidRuntime(15315): at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:573)
E/AndroidRuntime(15315): at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1911)
E/AndroidRuntime(15315): at android.app.Activity.dispatchTouchEvent(Activity.java:4256)
E/AndroidRuntime(15315): at androidx.appcompat.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:70)
E/AndroidRuntime(15315): at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:521)
E/AndroidRuntime(15315): at android.view.View.dispatchPointerEvent(View.java:14899)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6755)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6526)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5995)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6057)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6018)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:6192)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6026)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:6249)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5999)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:6057)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:6018)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:6026)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5999)
E/AndroidRuntime(15315): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:9034)
E/AndroidRuntime(15315): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:8985)
E/AndroidRuntime(15315): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:8941)
E/AndroidRuntime(15315): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:9177)
E/AndroidRuntime(15315): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:266)
E/AndroidRuntime(15315): at android.os.MessageQueue.nativePollOnce(Native Method)
E/AndroidRuntime(15315): at android.os.MessageQueue.next(MessageQueue.java:339)
E/AndroidRuntime(15315): at android.os.Looper.loopOnce(Looper.java:179)
E/AndroidRuntime(15315): at android.os.Looper.loop(Looper.java:344)
E/AndroidRuntime(15315): at android.app.ActivityThread.main(ActivityThread.java:8212)
E/AndroidRuntime(15315): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(15315): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
E/AndroidRuntime(15315): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
E/AndroidRuntime(15315): Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@3bcca2c, androidx.compose.runtime.BroadcastFrameClock@703acf5, StandaloneCoroutine{Cancelling}@5c17a8a, AndroidUiDispatcher@77368fb]
I/Process (15315): Sending signal. PID: 15315 SIG: 9
This is happening during debugging in Android only:
Smartphone / tablet
Thanks for your support!
Can you give me some code that I can use to reproduce the issue? I probably need to file a bug report to Stripe for it
Describe the bug Whenever invoking the Stripe.instance.initCustomerSheet() in Android, the application crashes with the error:
To Reproduce Steps to reproduce the behavior:
Expected behavior Whenever this is invoked in iOS, it works just fine and presents the CustomerSheet with the payment methods associated with the customer.
Smartphone / tablet