#hercules_2022-android

1 messages · Page 1 of 1 (latest)

real hull
#

hi there! I'd imagine there should be, let me look

wise yarrow
real hull
#

(which is where I'm looking)

#

as far as I can tell there's no direct equivalent. But the way that field is used is the same way you'd just use the result from onPaymentSheetResult in Android

#

like you'd just use the result this way :

private fun onPaymentSheetResult(paymentSheetResult: PaymentSheetResult) {
        when(paymentSheetResult) {
            // ...
            is PaymentSheetResult.Failed -> {
                Toast.makeText(
                    this,
                    "Payment Failed. See logcat for details.",
                    Toast.LENGTH_LONG
                ).show()
                Log.e("App", "Got error: ${paymentSheetResult.error}")
            }
            // ....
        }
  }
``` which is equivalent of what the iOS examples do with their mostRecentError : https://github.com/stripe/stripe-ios/blob/294dac6bb5b60b236c0f88d835ed768d7c25ef4d/Example/PaymentSheet%20Example/PaymentSheet%20Example/PaymentSheet%20Example/PaymentSheetTestPlayground.swift#L209
#

so yeah, I don't think you're missing any functionality, it's just a slightly different architecture