-
Notifications
You must be signed in to change notification settings - Fork 69
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
Activate fraud services before WPCOM/Jetpack connection and account onboarding #7520
Activate fraud services before WPCOM/Jetpack connection and account onboarding #7520
Conversation
…-and-account-creation
…m-connection-and-account-creation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +6 B (0%) Total Size: 1.43 MB
ℹ️ View Unchanged
|
…m-connection-and-account-creation
…m-connection-and-account-creation
…m-connection-and-account-creation
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.
Tested following the instructions and everything worked perfectly as described (one small note, for the last step of checking the checkout page, for me it was wcpay_upe_config
instead of wcpayConfig
- I guess it depends on which checkout is enabled).
Thanks for the care and attention in the instructions and the comments in the code as well, very much appreciated! 🐐
Left a few questions/comments but nothing blocking from my side, thanks for working on this!
…m-connection-and-account-creation
Thank you, @dmallory42, for doing this review! I really appreciate it. |
…m-connection-and-account-creation
…m-connection-and-account-creation
Fixes #7517
Changes proposed in this Pull Request
Title: Activate fraud tracking before onboarding and/or WPCOM/Jetpack connection
Description:
Until now, we have provided the fraud services configuration only through the account data (the
fraud_services
entry). This meant that we could not activate them prior to onboarding. This hampers our accounts fraud detection capabilities.We now take advantage of a new server API endpoint (
accounts/fraud_services
) that will provide the public, account-agnostic fraud services configuration so we can properly initialize them without the need for an account or a Jetpack connection (the endpoint is public). This refers right now to Sift activation.The fraud services configuration in the account data is still used and takes precedence over the one from the public endpoint.
We will activate the Sift JS SDK tracking in all WooCommerce admin pages and the WooPayments Connect page.
Testing instructions
Broken Token Utilities
https://cdn.sift.com/s.js
(search bysift
). You should also have a request tohttps://hexagon-analytics.com
npm run listen
wcpaySettings.fraudServices.sift
. It should have entries like these:user_id
inwcpaySettings.fraudServices.sift
matches the one in WCPay Dev Tools' Store Details sidebarwcpayConfig.fraudServices.sift
. It should have entries like these:npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge