-
Notifications
You must be signed in to change notification settings - Fork 136
[Woo POS] Switch to dynamic card reader hint instead of hardcoded "Remove card" prompt #13283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Woo POS] Switch to dynamic card reader hint instead of hardcoded "Remove card" prompt #13283
Conversation
…ed-with-please-wait-in-case-of-002-gbp-error
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
|
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
…ed-with-please-wait-in-case-of-002-gbp-error
…ed-with-please-wait-in-case-of-002-gbp-error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a broken test, but other than that LGTM!
I noticed though that the processing screen UI feels a bit off. Those ... creates a filling that the texts are not centrally aligned. Also, not sure maybe the margin between texts a bit too big, as on the successful payment screen it clearly smaller and bold and bigger text actually is on the top, not bottom
…ed-with-please-wait-in-case-of-002-gbp-error
…ed-with-please-wait-in-case-of-002-gbp-error
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #13283 +/- ##
============================================
- Coverage 41.10% 41.10% -0.01%
Complexity 6421 6421
============================================
Files 1321 1321
Lines 77179 77177 -2
Branches 10643 10643
============================================
- Hits 31724 31722 -2
Misses 42646 42646
Partials 2809 2809 ☔ View full report in Codecov by Sentry. |
Closes: #13264
Description
This PR slightly changes the texts shown in the payment flow in POS.
The hardcoded "Remove card" hint has now been deleted in this PR in favor of relying on dynamic hints that come from Terminal SDK. This improves the experience in case the reader asks to insert card inside the reader or to enter PIN – the hardcoded "Remove card" hint turned out to be misleading when testing a UK-based store.
Steps to reproduce
WooPosIsEnabledor runningWooPosActivitydirectly in AS).02to emulateoffline_pin_requiredterminal error.Testing information
POS should not show hardcoded hints for payment states, rather the ones that come from payment state's
readerHintproperty.The tests that have been performed
I tested the card payment flow in POS for the UK-based store, for a total of 3.02 GBP. I verified that in case reader asks to insert the card, the "Please wait..." message is shown instead of "Remove card".
Samsung Tab S9, Android 14
Images/gif
—
RELEASE-NOTES.txtif necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: