-
Notifications
You must be signed in to change notification settings - Fork 207
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
Integrating ECE to shortcode checkout #3436
Merged
Merged
Changes from all commits
Commits
Show all changes
131 commits
Select commit
Hold shift + click to select a range
7d1d4b7
add ece feature flag
Mayisha a5cc1f0
update '@stripe/react-stripe-js' to latest
Mayisha 26c0196
render ece button on block checkout
Mayisha fe572d5
display ece button if feature flag is enabled
Mayisha 48e7e11
Merge branch 'develop' into task/3402-ece-ff
Mayisha 122db02
check ece feature flag status from blocks data
Mayisha 6a8e7ae
add min height to express checkout container
Mayisha 34dc409
create 'WC_Stripe_Express_Checkout_Element' class
Mayisha ac13e24
fix callback function name
Mayisha 0da1b05
register script for shortcode checkout
Mayisha 9291021
move ajax functions to separate class
Mayisha 8c6f05d
move helper functions to a separate class
Mayisha e3f68d3
include and initialize express checkout classes
Mayisha 9502a5a
Merge branch 'develop' into task/ece-backend
Mayisha 55e661c
make functions public in the helper class
Mayisha 08c3205
fix lint issue
Mayisha 7539f73
Merge branch 'develop' into task/ece-backend
Mayisha 1f42347
use correct global variable
Mayisha 632b63c
fix php lint issues
Mayisha 1be4921
Integrating ECE to shortcode checkout
wjrosa f2b64f3
Adding extra contraints to show ECE
wjrosa 1e901c9
Merge branch 'develop' into add/ece-for-shortcode-checkout
wjrosa b318c26
Importing additional implementations from WCPay
wjrosa 8956e8e
Use our own Stripe tracking
mattallan 0af7c3e
Fix typos in normalizeOrderData
mattallan acc8e92
Add missing client/api methods to handle ECE requests
mattallan afbb84e
Update ESLint config to not require await directly within async funct…
mattallan 0cd28d5
Fix JS linting issues
mattallan d94bde5
Use startExpressCheckoutElement() to init the payment button
james-allan 56225b3
Add getExpressCheckoutAjaxURL util function
mattallan 9a40a5d
Update ECE API functions to use express checkout data
mattallan 942af31
Move api const to top and add init function for page specific initial…
james-allan 3efecab
Fix comment
james-allan 3a24788
Adding changelog entry
wjrosa c07f00d
Putting display none back
wjrosa 8244cf3
Multiple changes to the display logic based on WCPay
wjrosa 99cceb4
Multiple changes to the display logic based on WCPay
wjrosa b894df0
Fix multiple issues + changing the main element ID
wjrosa ef6f49d
Removing unsupported coalesce operator
wjrosa 1114804
Including missing methods
wjrosa d0055ea
Fix lint issues
wjrosa eeee466
Fix lint issues
wjrosa bc581aa
Updating ESLint version and requirement
wjrosa e839cd0
ECE instantiation options update
wjrosa bd7dacd
Fix get/update shipping option AJAX requests
mattallan 1168099
Rename WooPayment related funtion and fix camelcase issue
james-allan a933b6e
Fetch proper requestShipping meta from product data
mattallan e49eb3a
Set 'wc-stripe-is-deferred-intent' in data submitted with the checkou…
mattallan e36f28b
Merge branch 'develop' into add/ece-for-shortcode-checkout
wjrosa 1e08089
Fixing additional JS error + reverting removal of ESLint rule
wjrosa dbee822
Resolving ESLint issues
wjrosa a3409f9
Increasing ECMAScript version in .jshintrc
wjrosa 15ed41f
Reverting unnecessary changes to stripe-utils
wjrosa fe64a45
Reverting more unnecessary changes
wjrosa 63ba605
Reverting hardcoded flag
wjrosa 74df4cf
Fix Jest functions undefined in .jshintrc
wjrosa c0f2336
Adding specific unit tests
wjrosa bc7a79b
Adding specific unit tests
wjrosa 94b9c63
Reverting unnecessary changes
wjrosa 1554796
Putting some coalesce operators back
wjrosa a5b19e4
Replace i18n text domain
james-allan 7a53b7c
Fix typo
james-allan 5f2dba8
add tracking functions for ece
Mayisha 98e901a
add functions for ajax calls for ece
Mayisha a495f3e
add event handlers for ece
Mayisha 378dedf
add utils for ece
Mayisha 326cb08
render ece button on block checkout
Mayisha ee64e67
display ece button if feature flag is enabled
Mayisha 2ec92b4
check ece feature flag status from blocks data
Mayisha 5224e37
create 'WC_Stripe_Express_Checkout_Element' class
Mayisha 38f34ce
register script for shortcode checkout
Mayisha 3014ae7
move helper functions to a separate class
Mayisha 3d5d4a7
fix lint issue
Mayisha d957329
Integrating ECE to shortcode checkout
wjrosa a13844d
Adding extra contraints to show ECE
wjrosa a158ed8
Importing additional implementations from WCPay
wjrosa 341cc7b
Use our own Stripe tracking
mattallan f01b77d
Fix typos in normalizeOrderData
mattallan 01bbd19
Add missing client/api methods to handle ECE requests
mattallan 22693c6
Update ESLint config to not require await directly within async funct…
mattallan 1b09b4f
Use startExpressCheckoutElement() to init the payment button
james-allan 6d71417
Add getExpressCheckoutAjaxURL util function
mattallan 119bc54
Move api const to top and add init function for page specific initial…
james-allan 1aa1ccb
Fix comment
james-allan f6f859d
Adding changelog entry
wjrosa 41f2fe9
Putting display none back
wjrosa 2c97fce
Multiple changes to the display logic based on WCPay
wjrosa 7dacdee
Multiple changes to the display logic based on WCPay
wjrosa 91da3c7
Fix multiple issues + changing the main element ID
wjrosa 74b656b
Removing unsupported coalesce operator
wjrosa 89022ba
Including missing methods
wjrosa 6465a35
Fix lint issues
wjrosa 0482754
Fix lint issues
wjrosa 7cdca34
Updating ESLint version and requirement
wjrosa b84ce2f
ECE instantiation options update
wjrosa 43270b4
Fix get/update shipping option AJAX requests
mattallan 3e366ac
Rename WooPayment related funtion and fix camelcase issue
james-allan d49de74
Fetch proper requestShipping meta from product data
mattallan 8017870
Set 'wc-stripe-is-deferred-intent' in data submitted with the checkou…
mattallan 53534ec
Fixing additional JS error + reverting removal of ESLint rule
wjrosa 4eb6327
Resolving ESLint issues
wjrosa ee6ab6f
Increasing ECMAScript version in .jshintrc
wjrosa af3f599
Reverting unnecessary changes to stripe-utils
wjrosa 1a099d8
Reverting more unnecessary changes
wjrosa fdcaefd
Reverting hardcoded flag
wjrosa 54c9e76
Fix Jest functions undefined in .jshintrc
wjrosa 3c0721d
Adding specific unit tests
wjrosa cec24e1
Adding specific unit tests
wjrosa 23c2a5b
Reverting unnecessary changes
wjrosa 8f6395f
Putting some coalesce operators back
wjrosa f4e7700
Fix merge issues
wjrosa 195c8c3
Merge branch 'add/ece-for-shortcode-checkout' of https://github.com/w…
wjrosa 5466935
Fix merge issues
wjrosa ad9c359
Fix merge issues
wjrosa 4f6435e
Removing duplicate files
wjrosa 3a369da
Fix JS import
wjrosa 1519464
Fix JS import
wjrosa 929385b
Merge branch 'develop' into add/ece-for-shortcode-checkout
Mayisha fcca9fe
Merge branch 'develop' into add/ece-for-shortcode-checkout
wjrosa 055bf94
Merge branch 'add/ece-for-shortcode-checkout' of https://github.com/w…
wjrosa bea0f8a
Adding the get cart details endpoint
wjrosa e321b5d
Using real cart data
wjrosa ee0f29d
Adding get cart details nonce
wjrosa 88c41a4
Fix get cart details nonce usage
wjrosa 9a44df9
Merge branch 'develop' into add/ece-for-shortcode-checkout
wjrosa eecb00a
Updating eslint-plugin-react-hooks to 4.3.0
wjrosa 40f0a7c
Merge branch 'add/ece-for-shortcode-checkout' of https://github.com/w…
wjrosa 4891f8f
Fix lint issues
wjrosa 7e0e424
Fix lint issues
wjrosa 93de0be
Fix lint issues
wjrosa aaf440c
Revert hardcoded flag
wjrosa 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"esversion": 6, | ||
"esversion": 11, | ||
"boss": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
|
@@ -13,6 +13,9 @@ | |
|
||
"browser": true, | ||
|
||
"mocha": true, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fixes undefined functions in unit tests |
||
"jasmine": true, | ||
|
||
"globals": { | ||
"_": false, | ||
"Backbone": false, | ||
|
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.
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.
I did some research, and this actually means the minimum ECMAScript-supported version. The 11th version was introduced in June 2020, and it supports optional property chaining (which we already use in many places of the code).