setupIntent
If the exception is related to a SetupIntent, this will return one of three 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 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. If you instead choose to abandon the original SetupIntent and create a new one, be sure not to capture the original SetupIntent.
For exceptions unrelated to a SetupIntent, this will return null.
https://stripe.com/docs/terminal/payments#process
Return
The current SetupIntent