简体   繁体   中英

Python - How to pass quantity in Pinax Stripe subscription?

I am using the pinax stripe package in my Django project where a user can enroll multiple people for subscriptions.

I know that stripe has a quantity parameter which can be passed for subscriptions but could not find it in pinax package.

Can someone guide me on how can I pass the quantity parameter in the pinax-stripe package?

Like this :

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM