-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Stripe Express Checkout Elements (ECE) on the Product page (#…
…3441) * add ece feature flag * update '@stripe/react-stripe-js' to latest * render ece button on block checkout * display ece button if feature flag is enabled * check ece feature flag status from blocks data * add min height to express checkout container * create 'WC_Stripe_Express_Checkout_Element' class * fix callback function name * register script for shortcode checkout * move ajax functions to separate class * move helper functions to a separate class * include and initialize express checkout classes * make functions public in the helper class * fix lint issue * use correct global variable * fix php lint issues * Integrating ECE to shortcode checkout * Adding extra contraints to show ECE * Importing additional implementations from WCPay * Use our own Stripe tracking * Fix typos in normalizeOrderData * Add missing client/api methods to handle ECE requests * Update ESLint config to not require await directly within async functions * Fix JS linting issues * Use startExpressCheckoutElement() to init the payment button * Add getExpressCheckoutAjaxURL util function * Update ECE API functions to use express checkout data * Move api const to top and add init function for page specific initialization * Fix comment * Adding changelog entry * Putting display none back * Multiple changes to the display logic based on WCPay * Multiple changes to the display logic based on WCPay * Fix multiple issues + changing the main element ID * Removing unsupported coalesce operator * Including missing methods * Fix lint issues * Fix lint issues * Updating ESLint version and requirement * ECE instantiation options update * Fix get/update shipping option AJAX requests * Rename WooPayment related funtion and fix camelcase issue * Fetch proper requestShipping meta from product data * Set 'wc-stripe-is-deferred-intent' in data submitted with the checkout when using ECE * Fix incorrect product prices when store has price includes tax setting * Implement adding the product to the cart when clicking the ECE from the product page * Fix tax and shipping values being displayed as NULL * Don't send shipping line items if the store doesn't have shipping methods * Initialize/start the Stripe Express Checkout Elements on the product page * Fix changing quantities and variations, also add support for deposits * Use correct get shipping nonce key * Add support for add bookings products to the cart * When changing booking dates, clear the cart and delete any 'in-cart' bookings created * Fix whitespace * Delete duplicate files that have moved to client/express-checkout * Fix merge conflict errors * Bring fixes from develop to this branch due to bad handling of conflicts * Bring fixes from develop to this branch due to bad handling of conflicts * Add changelog entry * Add deposits support by hiding itemization when cart contains deposits * fix line items totals not matching total amount * send currency when fetching the stripe amount after selecting a variation on product page * Add changelog entry --------- Co-authored-by: Mayisha <[email protected]> Co-authored-by: Mayisha <[email protected]> Co-authored-by: Wesley Rosa <[email protected]> Co-authored-by: James Allan <[email protected]>
- Loading branch information
1 parent
2eb6546
commit e07054e
Showing
7 changed files
with
375 additions
and
38 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.