#hercules_2022-android
1 messages · Page 1 of 1 (latest)
Thanks - also is the only official documentation for the android sdk that which can be found in github: https://github.com/stripe/stripe-android
there's Javadoc at https://stripe.dev/stripe-android/
(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