#justinadkins_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255676164736024627
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Could you elaborate which SDK or methods you are using? And which guide you are following?
I am following this guide: https://docs.stripe.com/terminal/features/operate-offline/collect-card-payments?terminal-sdk-platform=android&reader-type=bluetooth#handle-offline-events
We are using stripe-terminal-android@3.6.0
In that guide it references two callback functions in the StripeOfflineListener. One is onPaymentIntentForwarded and the other is onForwardingFailure. I would like to know what happens when a forwarded payment intent fails due to a declined card (since this validation doesn't happen during purchase in offline mode).
onPaymentIntentForwarded has a comment that states The PaymentIntent was successfully forwarded, or an error occurred.
onForwardingFailure has a comment that states A non-specific error occurred while forwarding a PaymentIntent.
Yeah good question. I am looking at the methods but you can easily test it by using a Test mode decline card, no?
Unless I'm mistaken, offline mode does not work with simulated readers and I don't currently have the ability to connect a physical reader.
Which mean.. you can't test it? Hmm
Yeah
Alright so I think those 2 methods are bot the same and may don't notify you about a decline. Since a decline is not really an error, it's a rejection from card issuer. You may want to check the PaymentIntent Status to actually see if it succeeded or failed
And I think you want a reader to test.