Closed harriswong closed 1 year ago
Tested the scenario where the server is not ready to provide sift's configuration. I did this by triggering an error thrown by get_sift_configuration()
. I confirmed that the plugin will function as if sift is not loaded.
Description
This PR adds the Sift.js snippet. It follows the documentation here https://sift.com/developers/docs/php/javascript-api/overview.
The logic is very similar to WooCommerce Payments https://github.com/Automattic/woocommerce-payments/blob/c7b5b934684cc8c3d256e2ec84bc4ddf1071edac/includes/class-wc-payments-fraud-service.php#L170-L205
Related issue(s)
273-gh-Automattic/woocommerce-shipping-issues 2246-gh-Automattic/woocommerce-connect-server
Steps to reproduce & screenshots/GIFs
s.js
, and Request URL ishttps://cdn.sift.com/s.js
.Checklist
changelog.txt
entry addedreadme.txt
entry added