#asim_1
1 messages · Page 1 of 1 (latest)
Happy to help, can you tell me more about the crash?
I'm using the set up payment method flow.
So i'm not actually charging the customer on the payment sheet.
On showing the sheet the first time, everything works normally. A card is selected, Set up button is clicked, all is well.
If I try to show the payment sheet a second time (in case user decides to switch to a different card), the app crashes
Error thrown is Caused by: java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.stripe.android.paymentsheet.state.PaymentSheetLoadingException$SetupIntentInTerminalState)
@crude meadow need any more details?
Do you know what your code is calling when this error happens?
paymentSheet.presentWithSetupIntent(setupIntentClientSecret, configuration);
Also what is your SDK version?
34
Thank you, also can you show me the code for setting up your configuration object?
Gotcha, and to double check, a new SetupIntent is created after you confirm the first SetupIntent? I would hope that we would have a more graceful error if an old SetupIntent was used, but you never know
Nope, I'm reusing the old setup intent. Is that an issue?
If the SetupIntent was already confirmed, you will need a new one to save a new payment method
Alright making the change and testing.
@crude meadow thanks, its working
have a great day.
Nice! Thanks for the report, I will see if we can make that error message clearer