#herculues_2022-PaymentSheet

1 messages · Page 1 of 1 (latest)

simple mason
#

Hi there. One moment

spice olive
#

I had a similar thread for this earlier in case it helps

#

but now I'm trying to get last cancelled not last error

simple mason
#

Ah ok that does help

#

So using a similar method:

        when(paymentSheetResult) {
            // ...
            is PaymentSheetResult.Canceled -> {
                Toast.makeText(
                    this,
                    "Payment Canceled. See logcat for details.",
                    Toast.LENGTH_LONG
                ).show()
            }
            // ....
        }
  }```