Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Tiered Pricing Plans #629

Open
wants to merge 14 commits into
base: original
Choose a base branch
from
Prev Previous commit
Next Next commit
Use Plan Total Calculator for Subscriptions
  • Loading branch information
jksimoniii committed Feb 3, 2019
commit db37888a34b2a4029e97c79c862924c17d411b8e
2 changes: 1 addition & 1 deletion pinax/stripe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def stripe_subscription(self):

@property
def total_amount(self):
return self.plan.amount * self.quantity
return self.plan.calculate_total_amount(self.quantity)

def plan_display(self):
return self.plan.name
Expand Down