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
Fix Flake Errors
  • Loading branch information
jksimoniii committed Feb 1, 2019
commit cbfa6e37d2814392fca2edf312f5f9896bc0e741
16 changes: 8 additions & 8 deletions pinax/stripe/tests/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,17 +1248,17 @@ def test_sync_plans(self, PlanAutoPagerMock):
"statement_descriptor": "ALTMAN",
"trial_period_days": 3,
"billing_scheme": "tiered",
"tiers_mode": 'test',
"tiers_mode": "test",
"tiers": [
{
"amount": None,
"flat_amount": 14900,
"up_to": 100
"amount": None,
"flat_amount": 14900,
"up_to": 100
},
{
"amount": 100,
"flat_amount": None,
"up_to": None
"amount": 100,
"flat_amount": None,
"up_to": None
}
],
},
Expand Down Expand Up @@ -1320,7 +1320,7 @@ def test_sync_plans_update(self, PlanAutoPagerMock):
"statement_descriptor": "ALTMAN",
"trial_period_days": 3,
"billing_scheme": "tiered",
"tiers_mode": 'test',
"tiers_mode": "test",
"tiers": [
{
"amount": None,
Expand Down
2 changes: 1 addition & 1 deletion pinax/stripe/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Subscription,
Tier,
Transfer,
UserAccount,
UserAccount
)

try:
Expand Down