但是我遇到了一个问题,当我点击pay按钮时,我在控制台Uncaught (in promise) IntegrationError: You must provide a Stripe Elementor a valid token type to create a Token.中得到了这个错误。process.env.PORT || 5000;
console.log(`Sever running on port ${PORT}`)
); Stripe.js</
(react-stripe-elements)stripe.handleCardPayment(intentData.client_secret);对于第一个错误,我总是得到一个错误,卡号没有填写-似乎总是以同一页上的react-elements-form当我使用confirmPaymentIntent时,它只是停留在状态: status => requires_sourc
我已经研究了如何使用React原生实现条纹,但还没有找到一种可靠的方法。显然,React Native不支持http模块,因此必须使用使用fetch (如中所解释的)的条带API。因此,我的问题是,使用fetch方法来条带化API端点是stripe.js的一个好选择吗?如果不使用stripe.js,我会错过什么吗?另外,stripe.js是不是条纹软件开发工具包的另一个名字?最后,通过使用fetch to Stripe端点来代替stripe.js,它仍然可以被认为是<e
我也在本地尝试过,得到了相同的错误,但正如您在code sand box instance中的基本代码片段中看到的那样,我得到了这个错误: Please load Stripe.js (https://js.stripe.com/v3/) on this page to use react-stripe-elements.If Stripe.js isn't available yet (it's loading asynchronously,