Add the ability to turn off advanced fraud signals

Created on 20 September 2023, about 1 year ago
Updated 10 October 2023, about 1 year ago

With the recent improvement to how we bind the Stripe.js library, we now have the ability to let the merchant disable advanced fraud signals if they want. It seems this should be a global option per store, especially since the library path is going to be cached anyways. However, we don't currently have a great place to put such site-wide settings from a payment gateway module.

Commerce AvaTax and Commerce Square have no problems defining global settings form for their integrations, and I think we should do the same. This would be a "Stripe settings" menu item in the payment configuration section, and it would have a single checkbox labeled, "Collect user interaction signals required for advanced fraud detection." that is TRUE by default. This can have a help text: "Learn more about this feature in the Stripe documentation." with "Stripe documentation" linking to: https://stripe.com/docs/disputes/prevention/advanced-fraud-detection

We can add more such global settings to this form in the future.

After this form is in place, the library definition function will need to be updated accordingly.

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rszrama

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024