Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Commit 2df311d

Browse files
committed
chore(payments): Make support for sending trial days to 0
1 parent b5bdb6f commit 2df311d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payments/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ def subscribe(self, plan, quantity=None, trial_days=None,
553553
cu = self.stripe_customer
554554

555555
subscription_params = {}
556-
if trial_days:
556+
if trial_days is not None:
557557
subscription_params["trial_end"] = \
558558
datetime.datetime.utcnow() + datetime.timedelta(days=trial_days)
559559
if token:

0 commit comments

Comments
 (0)