updated t&c,
This commit is contained in:
@@ -154,6 +154,7 @@ def update_subscription(rower,data,method='up'):
|
||||
return False,0
|
||||
|
||||
if result.is_success:
|
||||
yesterday = (timezone.now()-datetime.timedelta(days=1)).date()
|
||||
rower.paidplan = plan
|
||||
rower.planexpires = result.subscription.billing_period_end_date
|
||||
rower.teamplanexpires = result.subscription.billing_period_end_date
|
||||
@@ -161,6 +162,8 @@ def update_subscription(rower,data,method='up'):
|
||||
rower.paymenttype = plan.paymenttype
|
||||
rower.rowerplan = plan.shortname
|
||||
rower.subscription_id = result.subscription.id
|
||||
rower.protrialexpires = yesterday
|
||||
rower.plantrialexpires = yesterday
|
||||
rower.save()
|
||||
name = '{f} {l}'.format(
|
||||
f = rower.user.first_name,
|
||||
|
||||
Reference in New Issue
Block a user