Call DG subscribe_customer_to_plan with trial period until first of next month

This commit is contained in:
PCoder 2017-12-24 12:51:16 +01:00
parent 3826ca207a
commit f5170cce5f
1 changed files with 2 additions and 1 deletions

View File

@ -392,7 +392,8 @@ class MembershipPaymentView(LoginRequiredMixin, IsNotMemberMixin, FormView):
)
subscription_result = stripe_utils.subscribe_customer_to_plan(
customer.stripe_id,
[{"plan": stripe_plan.get('response_object').stripe_plan_id}]
[{"plan": stripe_plan.get('response_object').stripe_plan_id}],
trial_end=membership_type.next_month_in_sec_since_epoch
)
stripe_subscription_obj = subscription_result.get(
'response_object'