#herculues_2022-PaymentSheet
1 messages · Page 1 of 1 (latest)
I had a similar thread for this earlier in case it helps
but now I'm trying to get last cancelled not last error
Ah ok that does help
You could check for the canceled status instead: https://stripe.dev/stripe-android/paymentsheet/com.stripe.android.paymentsheet/-payment-sheet-result/index.html
So using a similar method:
when(paymentSheetResult) {
// ...
is PaymentSheetResult.Canceled -> {
Toast.makeText(
this,
"Payment Canceled. See logcat for details.",
Toast.LENGTH_LONG
).show()
}
// ....
}
}```