#lovelock
1 messages · Page 1 of 1 (latest)
Thanks, I do currently check if the amount paid is > 0 but we are also offering a discount on the first year too so it's not as simple as that.
Just looking to future proof the logic a bit!
There's no direct way to know this. But if you have the PaymentIntent object, you can check the subscription property to find the subscription. And from there you could check the trial_end value of the subscription to know if the trial just ended or not. https://stripe.com/docs/api/subscriptions/object#subscription_object-trial_end
Ah that makes sense! Thanks for the quick reply