#Vish
1 messages ยท Page 1 of 1 (latest)
I know it says you can do it per subscription but I dont want to go to every customer subscription and set the trial period
Hi ๐
That is what we recommend
But how can you recommend to do this for all customers individually?
Free trial should be price specific right?
Not necessarily.
Most free trials are related to specific subscriptions, not applied to Prices
But in our case, it is same free trial for each price. We have 100s of customers signing up everyday. It does not make sense to go to each subscription one by one to change free trial period. This should be automated
Which is what this forum is for. We help developers coding integrations with the Stripe APIs. How are you creating the Subscriptions?
We are using the firebase extension for Stripe
This is the git repo for it: https://github.com/stripe/stripe-firebase-extensions
So I would still recommend you to be setting the trial period when you create the Subscription. That is the recommended approach. However, if this really doesn't work for your user case we do still allow setting the free trial on the Price object, it's just. not recommended.
The problem is that I am getting errors in the above extension due to this
I have mentioned about my error here:
https://github.com/stripe/stripe-firebase-extensions/issues/368
This specific comment covers the part that this error only goes if free trial from price is removed:
https://github.com/stripe/stripe-firebase-extensions/issues/368#issuecomment-1367345675
So when the trial period is set on the Price object then that is when you see the documentPath error?
Yes
๐ Hopping in since snufkin has to head out soon
If you're using the firebase extension, then as far as I know the only way to get trials is to set the trial on the price even though it's no longer recommended
Yes, but as I mentioned before. It is giving an error. One of the comments, narrows down why this is:
This is happening because the invoice.paid and invoice.payment_succeeded webhook events do not contain an payment_intent in the object
I was able to correct the issue by removing the trial period on a product price.
Ahhh I see - give me a minute to dig in
Thanks
Quick question - was this something that was previously working for you and suddenly started to break? Or has this never worked?
This has been recent. I believe this is after I have updated the firebase extension
I see an invoice.paid event on 17th Feb which had no issue
I am going through the previous errors
It seems only invoice.upcoming used to have an error
I started getting this error on 22nd Feb
Do you want event ids?
for successful and failed invoice.paid events?
Yeah that would help ๐
This one failed: we_1KDipjHo1LnNEW1whAl2FbUg
This one was successful: we_1KDipjHo1LnNEW1whAl2FbUg
Those are both webhook endpoint IDs - do you have the event ID (should start with evt_)
Thanks! Give me a few minutes to take a look
Sure thanks
You also mentioned you updated the extension as well - what version did you start with and what did you update to?
At the moment its 0.3.2
Difficult to say what it was before
It was 0.2.something
0.2.3 it was
Also I checked and I updated on 15th Feb
And I have seen succcessful events after date
I think I also changed trial period from 365 days to 30 days recently
Maybe that has something to do with it
I checked and I changed trial period also on 15th
The successful events may have been because you have other Invoices that DO have payment intents attached to them (those would the ones after the trial)
ok I only see one event for invoice.paid after 15th and this is: "evt_1MceoIHo1LnNEW1w1pVABPTv".
Yeah that one does have a payment intent since it's not for the trial
Yeah I think we have a bug that introduced with version 0.3.0 - try using 0.2.7 and see if that works
I dont think there is a way you can rollback in firebase extensions
Is there a way to escalate this?
I'm going to flag with some folks internally, but I don't have visibility into when they'd be able to fix it
Any ticket or git issue I can follow?
give me a minute to see what people say
none so far - if I don't hear anything soon I'll ask you to start up a new github issue (so that you can notified of any changes) and i'll push on the team internally to fix it
Thans
I haven't heard back yet so I'd suggest making the new github issue and then letting me know here so that I know where to flag
Here is the issue: https://github.com/stripe/stripe-firebase-extensions/issues/505
thank you! I'll keep flagging to the team to try and get this fixed
Thank you very much for all your help ๐