如何在 react-stripe-js 中禁用条带的高级欺诈检测?
How do I disable advanced fraud detection of stripe in react-stripe-js?
我终于找到了一种方法来禁用 react 网站每个页面上的条带加载,从而降低网站速度并降低网站性能。我只需要在支付页面上使用 stripe 并遇到了一个解决方案,即禁用 stripe
的高级欺诈检测
和HTML是这样做的
<script src="https://js.stripe.com/v3/?advancedFraudSignals=false"></script>
但我正在将 react-stripe-js 与我的 React 应用程序一起使用
https://stripe.com/docs/stripe-js/react#elements-provider
https://www.npmjs.com/package/@stripe/react-stripe-js
任何人都知道我如何使用 react-stripe-js
来应用禁用功能?
在加载 React 组件之前,您应该能够 configure the stripe API 模块:
import {loadStripe} from '@stripe/stripe-js/pure';
loadStripe.setLoadParameters({advancedFraudSignals: false});
import { /*...*/ } from "@stripe/react-stripe-js";
我终于找到了一种方法来禁用 react 网站每个页面上的条带加载,从而降低网站速度并降低网站性能。我只需要在支付页面上使用 stripe 并遇到了一个解决方案,即禁用 stripe
的高级欺诈检测和HTML是这样做的
<script src="https://js.stripe.com/v3/?advancedFraudSignals=false"></script>
但我正在将 react-stripe-js 与我的 React 应用程序一起使用
https://stripe.com/docs/stripe-js/react#elements-provider
https://www.npmjs.com/package/@stripe/react-stripe-js
任何人都知道我如何使用 react-stripe-js
来应用禁用功能?
在加载 React 组件之前,您应该能够 configure the stripe API 模块:
import {loadStripe} from '@stripe/stripe-js/pure';
loadStripe.setLoadParameters({advancedFraudSignals: false});
import { /*...*/ } from "@stripe/react-stripe-js";