This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Revise checkout payment statuses to avoid data loss on error #5350
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b431d0c
Clarify docs for STARTED
mikejolley 0330c3c
Clarify docs for setActivePaymentMethod
mikejolley 9768d37
Remove useActivePaymentMethod hook (this held state for active method…
mikejolley a28de55
Update type defs
mikejolley ab6a85f
Enhance setActivePaymentMethod action to accept method data
mikejolley 8f5c97b
SET_ACTIVE_PAYMENT_METHOD action
mikejolley f1b80be
Add setActivePaymentMethod dispatcher and make "started" status only
mikejolley 34fb782
Update setActivePaymentMethod usage in express methods
mikejolley 2bfb007
Set radio control defaults
mikejolley 3dacdba
Consolodate tokens and methods
mikejolley dc8cbd1
Update assets/js/base/context/providers/cart-checkout/payment-methods…
mikejolley d7c9415
Spacing
mikejolley 401a99e
Split saved cards tests from regular, since saved cards are checked b…
mikejolley 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
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.
So we can no longer dispatch
started
?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.
No, it's dispatched as
statusOnly
now like pristine. That's all express methods need. The data addition was added for saved payment methods - with the newsetActivePaymentMethod
method that's no longer a requirement. They can stay pristine.