【发布时间】: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