我正在尝试在使用 Flutter 的移动应用程序之一中使用卡集成支付。我正在学习本教程。
Flutter app using Stripe and Firebase
我在云功能中收到以下错误。 “缺少必需的参数:类型。”甚至我在云函数中也像这样包含了类型。
const paymentIntent = await stripe.paymentIntents.create({
amount: req.query.amount,
currency: req.query.currency,
confirmation_method: 'automatic',
type: 'standard',
payment_method: clonedPaymentMethod.id,
stripeAccount: stripeVendorAccount,
confirm: true,
});
有人可以指导我吗?谢谢。