【发布时间】:2016-11-15 20:18:30
【问题描述】:
我有以下 python 代码来创建条状收费。
a_charge = stripe.Charge.create(
amount=cents,
currency="usd",
source=token,
description="my_description",
application_fee=application_fee,
stripe_account=teacher_stripe_id
)
这成功了(我认为),因为它显示在我的仪表板中并带有charge_id。 但是,紧接着在代码中,以下失败:
stripe.Charge.retrieve(a_charge.id)
出现错误: 没有这样的费用:somelongstringhere
但是,somelongstringhere 确实是我的条带仪表板上的收费详细信息下的 ID。那么为什么 Stripe 无法检索到这笔费用呢?这不是正确的 id 吗?
【问题讨论】:
标签: python django stripe-payments