Closed mehdisatei closed 2 years ago
Hi @mehdisatei,
That's the expected behavior. If the customer enters an invalid payment method, we'll show the error message in the PaymentSheet
UI, and let them try again with a new payment method. You'll only receive a callback with PaymentSheetResult.Failed
if the payment failed in some other part of flow and we couldn't recover from the failure.
You'll receive the success/failed/canceled callback only once PaymentSheet
has been dismissed.
On the flow that you described, PaymentSheet
remains open and the customer is able to try to complete the payment again, right?
I'll close this as working as intended, please let us know if that's not the case.
Summary
PaymentSheet
does not call backPaymentSheetResult.Failed
in case card information is wrongCode to reproduce
PaymentSheetResultCallback
stripePaymentSheet?.presentWithPaymentIntent(paymentIntentClientSecret = reference)
PaymentSheetResult.Failed
is not received inoverride fun onPaymentSheetResult
Android version
12
Impacted devices
Samsung Galaxy S21 5G
Installation method
Gradle dependency
Dependency Versions
implementation 'trustly.android.library:trustly-android-library:3.0.1'
SDK classes
Other information
I am testing in Sweden. I tested with a transaction of 500kr value so I was asked for bank id verification and after that no
PaymentSheetResult.Failed
was received. The flow: