【问题标题】:React native tipsi stripe error You should call init first反应原生tipsi条带错误你应该先调用init
【发布时间】:2021-07-14 08:47:36
【问题描述】:

我正在使用tipsi-stripe' for payment but when click submit it's showing error 你应该先调用init` 下面是我的代码

setIsLoading(true);
            const aa = await stripe.createTokenWithCard({
              cvc: "123", 
              expMonth: 11, 
              expYear: 2022,
              number: "4242424242424242",
            });
            if (aa) {
              console.log(aa.tokenId);
              setModal(false);
            } else {
              setIsLoading(true);
            }

谁能告诉我为什么会出现这个错误?

【问题讨论】:

    标签: reactjs react-native stripe-payments


    【解决方案1】:

    听起来你没有正确初始化包:https://tipsi.github.io/tipsi-stripe/docs/usage.html

    【讨论】:

      猜你喜欢
      • 2017-10-21
      • 2018-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多