#Vish

1 messages ยท Page 1 of 1 (latest)

stark lynxBOT
lean sky
#

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

azure swallow
#

Hi ๐Ÿ‘‹

That is what we recommend

lean sky
#

But how can you recommend to do this for all customers individually?

#

Free trial should be price specific right?

azure swallow
#

Not necessarily.

#

Most free trials are related to specific subscriptions, not applied to Prices

lean sky
#

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

azure swallow
#

Which is what this forum is for. We help developers coding integrations with the Stripe APIs. How are you creating the Subscriptions?

lean sky
#

We are using the firebase extension for Stripe

azure swallow
#

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.

lean sky
#

The problem is that I am getting errors in the above extension due to this

azure swallow
#

So when the trial period is set on the Price object then that is when you see the documentPath error?

lean sky
#

Yes

unreal cypress
#

๐Ÿ‘‹ 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

lean sky
#

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.
unreal cypress
#

Ahhh I see - give me a minute to dig in

lean sky
#

Thanks

unreal cypress
#

Quick question - was this something that was previously working for you and suddenly started to break? Or has this never worked?

lean sky
#

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?

unreal cypress
#

Yeah that would help ๐Ÿ‘

lean sky
#

This one failed: we_1KDipjHo1LnNEW1whAl2FbUg

#

This one was successful: we_1KDipjHo1LnNEW1whAl2FbUg

unreal cypress
#

Those are both webhook endpoint IDs - do you have the event ID (should start with evt_)

lean sky
#

Successful: "evt_1MbUJ2Ho1LnNEW1wODZfpqx6"

#

Failed: "evt_1MgALEHo1LnNEW1w8I2xCaNj"

unreal cypress
#

Thanks! Give me a few minutes to take a look

lean sky
#

Sure thanks

unreal cypress
#

You also mentioned you updated the extension as well - what version did you start with and what did you update to?

lean sky
#

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

unreal cypress
#

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)

lean sky
#

ok I only see one event for invoice.paid after 15th and this is: "evt_1MceoIHo1LnNEW1w1pVABPTv".

unreal cypress
#

Yeah that one does have a payment intent since it's not for the trial

lean sky
#

Understood. Makes sense

#

So it must have something to do with the extension

unreal cypress
#

Yeah I think we have a bug that introduced with version 0.3.0 - try using 0.2.7 and see if that works

lean sky
#

I dont think there is a way you can rollback in firebase extensions

#

Is there a way to escalate this?

unreal cypress
#

I'm going to flag with some folks internally, but I don't have visibility into when they'd be able to fix it

lean sky
#

Any ticket or git issue I can follow?

unreal cypress
#

give me a minute to see what people say

lean sky
#

Thanks

#

Any update?

unreal cypress
#

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

lean sky
#

Thans

unreal cypress
#

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

lean sky
unreal cypress
#

thank you! I'll keep flagging to the team to try and get this fixed

lean sky
#

Thank you very much for all your help ๐Ÿ˜„