#aitooletc-terminal
1 messages · Page 1 of 1 (latest)
Hmm don't think there is a way, but can you provide your code around where the timeout/disconnected error you faced?
Thanks for the stacktrace. How about the code where it occurred?
Terminal.getInstance().processPayment(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
onSuccess(paymentIntent)
}
override fun onFailure(e: TerminalException) {
onFailure(e)
}
},
)
onfailure
Yes so we don't have a specific way to test timeout, however you can test bunch of other failure by the testing card and the simulated readers here https://stripe.com/docs/terminal/references/testing#test-cards-for-specific-error-cases
That should also test the above onFailure block
i believe we should have timeoutexception
btw, how do i check if the stripe terminal is rebooted manually or automatic?
aitooletc-terminal
Don't think there is a way, sorry