Skip to content

Commit

Permalink
fixed billable model
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmancuso committed Jul 6, 2018
1 parent 47b1103 commit a5f3486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions billing/models/Billable.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _save_subscription_model(self, processor_plan, subscription_object):
if subscription:
subscription.plan = processor_plan
subscription.plan_id = subscription_object['id']
subscription.plan_name = subscription_object['plan']['id']
subscription.plan_name = subscription_object['plan']['name']
subscription.trial_ends_at = trial_ends_at
subscription.ends_at = ends_at
subscription.save()
Expand All @@ -255,7 +255,7 @@ def _save_subscription_model(self, processor_plan, subscription_object):
user_id = self.id,
plan = processor_plan,
plan_id = subscription_object['id'],
plan_name = subscription_object['plan']['name'],
plan_name = subscription_object['plan']['id'],
trial_ends_at = trial_ends_at,
ends_at = ends_at,
)
Expand Down

0 comments on commit a5f3486

Please # to comment.