woocommerce-ios icon indicating copy to clipboard operation
woocommerce-ios copied to clipboard

[Mobile Payments] Improvement: show specific error details in the UI for more Stripe error codes

Open joshheald opened this issue 5 months ago • 1 comments

Description

In UnderlyingError+Stripe, we decode some of Stripe's errors into an enum which we can use to log, track, and present error information to merchants.

These are decoded from Stripe's SCPErrors.ErrorCode enum/integer codes, but we don't decode every one of these, and many are likely to have been added over time.

We should update the StripeTerminal dependency, then decode as many of these that make sense to show to merchants, adding relevant user-facing strings to be translated in the UnderlyingError.errorDescription property. These will be shown to users in error messages, and logged correctly.

joshheald avatar Sep 16 '24 14:09 joshheald