使用这些版本的React Native和Stripe。当调用presentPaymentSheet
时,我在图像中得到错误。有人以前见过这个错误吗?
"@stripe/stripe-react-native": "^0.26.0",
"react-native": "0.71.1",
export async function paymentProcess(info: PaymentInfoType) {
const initResult = await initPaymentSheet({
customerId: info.customerId,
paymentIntentClientSecret: info.paymentIntentClientSecret,
customerEphemeralKeySecret: info.ephemeralKeySecret,
//
...initPaymentSheetParams,
});
if (initResult.error) {
throw new Error('Failed on init.');
}
const result = await presentPaymentSheet({ timeout: 2000 });
}
1条答案
按热度按时间vdzxcuhz1#
我建议你删除
node_modules
文件夹和yarn.lock
文件,然后执行yarn install
从头开始构建react-native项目。