-
Notifications
You must be signed in to change notification settings - Fork 137
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
[POS] Custom Payment UI — Part 3 | Emitting UI–agnostic payment states in CardReaderPaymentController
#12877
Merged
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
8829f5a
Introduce `CardReaderPaymentState` model emitted by `CardReaderPaymen…
samiuelson a22d662
Introduce `CardReaderPaymentState` model
samiuelson 95eba27
Map payment flow error to `PaymentFailed` state
samiuelson df1cf58
Emit `FetchingOrderFailed` state as `paymentState`
samiuelson d174491
Emit `LoadingData` state as `paymentState`
samiuelson f2f688f
Emit `CollectingPayment` state as `paymentState`
samiuelson 8190ba7
Emit `ProcessingPayment` state as `paymentState`
samiuelson cc752b0
Emit `CapturingPayment` state as `paymentState`
samiuelson 873479f
Fix detekt's issues
samiuelson 899eb1d
Emit `ReFetchingOrder` as `paymentState`
samiuelson ee5ece5
Emit `SharingReceipt` as `paymentState`
samiuelson 051aa78
Emit `PrintingReceipt` as `paymentState`
samiuelson 0f5b68b
Emit `PaymentSuccessful` as `paymentState`
samiuelson 677ed80
Emit remaining states as `paymentState`
samiuelson bc36059
Format code
samiuelson c2a4599
Clean up code
samiuelson 76e5f9d
Fix detekt's complaints
samiuelson 152d9e0
Update sut instances in unit test
samiuelson a3ea1d8
Revert interac tracking code
samiuelson 980d649
Add `onCancel` prop to `CollectingInteracRefund`
samiuelson d3577a2
Merge branch 'custom-payment-ui-2' into custom-payment-ui-3
samiuelson c26ed71
Extract `nameForTracking` from the state model
samiuelson 7fe2991
Fix tracking logic – add missing names
samiuelson 44115aa
Extract `::trackCancelledFlow` into use case class
samiuelson f756819
Merge branch 'custom-payment-ui-2' into custom-payment-ui-3
samiuelson 0c4e9ec
Rename `CardReaderTrackCanceledFlow` -> `CardReaderTrackCanceledFlowA…
samiuelson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Btw, I'd consider to track this case too, just instead of passing hard coded string we could pass state's name there
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.
I like the idea, but I would prefer to implement it out of this PR, and refactoring process because it would affect the existing business logic—it would require modifying unit tests.
Reported issue: https://github.com/orgs/woocommerce/projects/278/views/1?visibleFields=%5B%22Title%22%2C%22Assignees%22%2C%22Status%22%2C143176801%2C%22Linked+pull+requests%22%5D&pane=issue&itemId=87370857&issue=woocommerce%7Cwoocommerce-android%7C12930