forked from woocommerce/woocommerce-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise checkout payment statuses to avoid data loss on error (woocomm…
…erce#5350) * Clarify docs for STARTED * Clarify docs for setActivePaymentMethod * Remove useActivePaymentMethod hook (this held state for active methods and tokens) * Update type defs * Enhance setActivePaymentMethod action to accept method data * SET_ACTIVE_PAYMENT_METHOD action * Add setActivePaymentMethod dispatcher and make "started" status only * Update setActivePaymentMethod usage in express methods * Set radio control defaults * Consolodate tokens and methods * Update assets/js/base/context/providers/cart-checkout/payment-methods/reducer.ts Co-authored-by: Seghir Nadir <[email protected]> * Spacing * Split saved cards tests from regular, since saved cards are checked by default Co-authored-by: Seghir Nadir <[email protected]>
- Loading branch information
1 parent
6507ffb
commit f948f33
Showing
14 changed files
with
265 additions
and
308 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
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.