#ferterahadi
1 messages · Page 1 of 1 (latest)
in production, my system logged this error message "Failed to retrieve payment method data"
need your help to find the TerminalErrorCode associated to that error message
yes @fading latch the TerminalErrorCode
looking at this doc https://stripe.dev/stripe-terminal-android/v1/com/stripe/stripeterminal/model/external/TerminalException.TerminalErrorCode.html
I have no idea what TerminalErrorCode "Failed to retrieve payment method data" is associated to
would greatly appreciate your assistance in finding it
"Failed to retrieve payment method data" is likely due to CARD_REMOVED that the card was removed during the transaction
thanks @fading latch may I confirm if that's what written in the code base?
from my log, an action preceding the error message was POST api.stripe.com/api/v1/payment_intents/{payment_intent_id}/confirm
and then the result of that API, POST api.stripe.com/api/v1/payment_intents/{payment_intent_id}/confirm, was timeout
Can you share the payment intent ID (pi_xxx)?
this one @fading latch pi_3NiH3yLvc0onZ7sf1eYoVVhz
From https://dashboard.stripe.com/payments/pi_3NiH3yLvc0onZ7sf1eYoVVhz, the payment was successfully authorised, but it was cancelled later
The confirm request was successful too: https://dashboard.stripe.com/logs/req_aBtg3wCzEGN6qr
I used Stripe-terminal-android SDK, v2.21.0
the result of the SDK processing the payment was "Failed to retrieve payment method data"
I wanted to know, what TerminalErrorCode is associated to that error message
from what I understand, the request reached the server and the server managed to process it, thus in the dashboard, we see the request as successfully authorized
but I believe, the response didn't reach the client side back
as a result of that event, the SDK threw this error message ""Failed to retrieve payment method data""
At which step in this doc that you receive "TerminalException.TerminalErrorCode"?
I am planning to do this
I can check e.errorMessage = "Failed to retrieve payment method data" too, but wouldn't it be better if we refer to the .errorCode? the only problem here is I don't know what's the errorCode associated to that message, as the issue happens on production
I see! TerminalErrorCode.CARD_REMOVED is the one with "Failed to retrieve payment method data"
ohh so it is real
may I know how this error is thrown TerminalErrorCode.CARD_REMOVED ?
and what other error messages associated to that errorCode?
The card was removed during the transaction
and what other error messages associated to that errorCode?
The error message is "Failed to retrieve payment method data"
I'd recommend logging the error code and message in your system for your own references
alright, thanks @fading latch
greatly appreciate your help
thanks for taking the time to look into this
No problem! Happy to help 😄