私はこれを持っています:
return stripe.Charge.create(
amount=amount,
currency=currency,
source=source, # obtained with Stripe.js
description=description
)
答えは次のとおりです。
File "/home/pdonaire1/desarrollos/4geeks/mall4g/apps/orders/stripe.py", line 16, in stripe_charge_create
return stripe.Charge.create(
AttributeError: 'module' object has no attribute 'Charge'
注:私はDjangoを使用していますが、シェルはうまく機能しますが、なぜdjangoが機能しないのかわかりません。
ありがとう。