-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate split UPE payments with WooCommerce Blocks (#4681)
* Use 'card' for the default block UPE checkout * Attempt to load multiple payment methods for blocks (draft) * Display only enabled UPE payment methods * Display corresponding payment method titles * Render specific testing instructions whenever appropriate * Provide the right gatewayConfig for each payment method * Fix the action of updating a payment intent with AJAX request * Fix tests * Supply the Card Element instead of the Card from Stripe Payment Elements * Eliminate unnecessary upe payment methods for blocks * Avoid enqueuing identical scripts and styles twice * Create a changelog file * Align a react node responsible for the preview of the method in the editor with the main payment method UI * Apply cosmetic changes to variable names and scopes * Leverage the session storage with created payment intent * Align the definition of method responsible for supplying testing instructions text * Update the state with paymentIntent to avoid a recurring intent creation * Align method invocation with its definition * Get rid of the changelog file due to the nature of changes * Make sure callbacks are added to hooks for non-card payment methods in blocks Co-authored-by: Timur Karimov <[email protected]> Co-authored-by: Timur Karimov <[email protected]>
- Loading branch information
1 parent
88be4a9
commit 6444432
Showing
24 changed files
with
251 additions
and
130 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
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.