Python 属性错误:模块';条纹';没有属性';支付意向';
我已经安装了Stripe python模块(1.70.0),并希望创建一个PaymentIntent来为移动设备收费。但没有做到这一点Python 属性错误:模块';条纹';没有属性';支付意向';,python,api,mobile,stripe-payments,Python,Api,Mobile,Stripe Payments,我已经安装了Stripe python模块(1.70.0),并希望创建一个PaymentIntent来为移动设备收费。但没有做到这一点 import stripe stripe.api_key = "sk_test_XXXXXXXXX" stripe.PaymentIntent.create( amount=1099, currency='usd', payment_method_types=['card'], ) AttributeError:模块“strip
import stripe
stripe.api_key = "sk_test_XXXXXXXXX"
stripe.PaymentIntent.create(
amount=1099,
currency='usd',
payment_method_types=['card'],
)
AttributeError:模块“stripe”没有属性“PaymentIntent”。任何帮助都将不胜感激。版本1.70.0从2017年开始,不支持PaymentIntents(在1.84.0中添加)。您应该更新到库的最新版本