setupIntent
If the exception is related to a SetupIntent, this will return one of two things:
The updated SetupIntent with a SetupIntent.status of
REQUIRES_PAYMENT_METHOD. This signifies that there was a failure to confirm this payment method, and Terminal.collectSetupIntentPaymentMethod or Terminal.processSetupIntent should be called again with the updated SetupIntent to try charging another payment method.Null. This signifies that the request to Stripe's servers timed out and SetupIntent.status is unknown. In this situation, the call to Terminal.confirmSetupIntent should be retried with the original SetupIntent.
For exceptions unrelated to a SetupIntent, this will return null.
https://docs.stripe.com/terminal/features/saving-payment-details/overview
Return
The current SetupIntent