我正在用typescript构建我的反应应用程序,并想添加条纹来做在线支付。但是我找不到关于stripe的typescript教程,所以我尝试使用javascript来编写stripe部分。出现以下错误: ? 参考stackOverFlow上的其他解决方案,我使用了不同的导入方法,例如 import stripe from '.以下是代码:对于条带文件: import React from 'react'
import { Element } from "@stripe/react-
在条带文档中,它们将一个对象传递给createPaymentMethod函数。在Angular中,它不允许它通过,因为对象必须有3个属性,但在文档中,它们只传递一个属性。错误: error TS2345: Argument of type '{ card: any; }' is not assignable to parameter of type '{ card: any= window['elements'].create("card", { style: style });
) IntegrationError: You must provide a Stripe Element or a valid token type to create a Token.中得到了这个错误是什么导致了这个错误? Server.js require("dotenv").config({ path: ".})}
import