#asim_1

1 messages · Page 1 of 1 (latest)

hollow pollenBOT
crude meadow
#

Happy to help, can you tell me more about the crash?

terse trout
#

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?

crude meadow
#

Do you know what your code is calling when this error happens?

terse trout
#

paymentSheet.presentWithSetupIntent(setupIntentClientSecret, configuration);

crude meadow
#

Also what is your SDK version?

terse trout
#

34

crude meadow
#

Thank you, also can you show me the code for setting up your configuration object?

terse trout
crude meadow
#

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

terse trout
#

Nope, I'm reusing the old setup intent. Is that an issue?

crude meadow
#

If the SetupIntent was already confirmed, you will need a new one to save a new payment method

terse trout
#

Alright making the change and testing.

#

@crude meadow thanks, its working

#

have a great day.

crude meadow
#

Nice! Thanks for the report, I will see if we can make that error message clearer