#justinadkins_code

1 messages ¡ Page 1 of 1 (latest)

blazing creekBOT
#

👋 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.

potent dew
#

Could you elaborate which SDK or methods you are using? And which guide you are following?

restive storm
#

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.

potent dew
#

Yeah good question. I am looking at the methods but you can easily test it by using a Test mode decline card, no?

restive storm
#

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.

potent dew
#

Which mean.. you can't test it? Hmm

restive storm
#

Yeah

potent dew
#

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.