Skip to content

Commit d7537f1

Browse files
committed
fix stripe trial end timestamp
1 parent 23fb12f commit d7537f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/api/v1/stripe_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def callback
173173
}
174174

175175
unless billing.plan.price in 0 | nil
176-
kwargs[:trial_end] = 45.days.from_now # start a trial on paid tiers
176+
kwargs[:trial_end] = 45.days.from_now.to_i # start a trial on paid tiers
177177
end
178178

179179
# create a trial subscription (possibly without a payment method)

0 commit comments

Comments
 (0)