【问题标题】:Python - How to pass quantity in Pinax Stripe subscription?Python - 如何在 Pinax Stripe 订阅中传递数量?
【发布时间】:2017-01-24 23:54:38
【问题描述】:

我在我的 Django 项目中使用 pinax stripe 包,用户可以在其中注册多人订阅。

我知道 stripe 有一个数量参数,可以传递给订阅,但在 pinax 包中找不到它。

有人可以指导我如何在 pinax-stripe 包中传递数量参数吗?

【问题讨论】:

    标签: python django stripe-payments pinax


    【解决方案1】:

    Like this:

    Subscription.objects.create(
        customer=self.customer,
        plan=plan,
        quantity=1
    )
    

    【讨论】:

      猜你喜欢
      • 2021-11-19
      • 2016-07-04
      • 2019-02-15
      • 2016-12-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-28
      相关资源
      最近更新 更多