Skip to content

Conversation

@kidinov
Copy link
Contributor

@kidinov kidinov commented May 5, 2023

Closes: #8140

Description

This PR brings another error that's shown when Activity and VM are killed during TTP activity being in the foreground. Also, it adds tracking of this situation so we can determine if this is not an ideal solution and needs to be improved

Testing instructions

Test TTP, IPP (including refund) with "don't keep activity" dev option ON and OFF

When it's on, TTP will fail with the screen that explains that this happened

Images/gif

05-05--15-56.mp4
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@kidinov kidinov added this to the 13.6 milestone May 5, 2023
@kidinov kidinov added the feature: mobile payments Related to mobile payments / card present payments / Woo Payments. label May 5, 2023
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented May 5, 2023

You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code:

@kidinov kidinov requested review from AnirudhBhat and samiuelson and removed request for samiuelson May 5, 2023 12:52
@codecov-commenter
Copy link

codecov-commenter commented May 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 🎉

Comparison is base (96d39ca) 43.52% compared to head (c99d69c) 43.54%.

❗ Current head c99d69c differs from pull request most recent head 450ba43. Consider uploading reports for the commit 450ba43 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##              trunk    #8967      +/-   ##
============================================
+ Coverage     43.52%   43.54%   +0.01%     
- Complexity     4057     4063       +6     
============================================
  Files           841      841              
  Lines         44101    44115      +14     
  Branches       5756     5758       +2     
============================================
+ Hits          19196    19210      +14     
  Misses        23213    23213              
  Partials       1692     1692              
Impacted Files Coverage Δ
...s/cardreader/payment/CardReaderPaymentViewModel.kt 91.41% <100.00%> (+0.22%) ⬆️
...s/cardreader/payment/CardReaderPaymentViewState.kt 96.76% <100.00%> (+0.02%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@AnirudhBhat AnirudhBhat self-assigned this May 10, 2023
@kidinov kidinov added the status: do not merge Dependent on another PR, ready for review but not ready for merge. label May 11, 2023
@kidinov kidinov removed the status: do not merge Dependent on another PR, ready for review but not ready for merge. label May 11, 2023
@kidinov kidinov modified the milestones: 13.6, 13.7 May 12, 2023
@jkmassel jkmassel modified the milestones: 13.7, 13.8 May 21, 2023
Copy link
Contributor

@AnirudhBhat AnirudhBhat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I've left couple of non-blocking comment.

…t emitted when the TTP payment is not in progress and the card reader is connected, and that payment collection doesn't start when the `AppKilledWhileInBackground` state is emitted.
@kidinov kidinov enabled auto-merge May 25, 2023 08:22
@kidinov kidinov merged commit 37389ac into trunk May 25, 2023
@kidinov kidinov deleted the 8140-handle-built-in-reader-disconnections-and-reconnection-2 branch May 25, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: mobile payments Related to mobile payments / card present payments / Woo Payments.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mobile Payments] Handle built-in reader disconnections and reconnection

6 participants