-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
isCashPaymentInProgress flag to intercept card events
Each time we tap the card on the reader, the .card payment state would override the current .cash payent state, changing the views. With this flag we filter card events when a cash transaction is in progress, so we can ignore them. Allowing card payments while cash hasn’t been “marked as complete” yet, and disallowing doubles charges on the success screen.
- Loading branch information
1 parent
ffbf8ae
commit 26acf3e
Showing
1 changed file
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters