#samiya_webhooks

1 messages · Page 1 of 1 (latest)

fallow elmBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1440585494709928009

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

tight hamlet
junior tendon
#

Hi! Do you have an example subscription ID where I can see what you are doing? Thanks!

tight hamlet
#

sub_1STb3xED5xkfDv2cZWoYlOLJ
pi_3SV2zDED5xkfDv2c1vXP7xbV

junior tendon
#

Looking into this!

tight hamlet
#

sure

junior tendon
#

Can I also know what is the issue that you are facing with this process? You mentioned event earlier. What kind of event are you looking for?

tight hamlet
#

This is working fine but now I want to increase trial from 7 to 14 days and add preauthorization on the 7th day but I dont find any relevant event for that like we have trial_will_end

junior tendon
#

If I understand correctly, you want to create a subscription with a 14 days trial and then create a payment intent on the 7th day with manual capture?

tight hamlet
#

Yes

junior tendon
#

I see that you are using collection_method: "charge_automatically". Do you plan to charge the invoice created with the subscription automatically or you only want to charge the separate payment intent? Additionally, can I check why do you wish to do a manual capture? This will help me see if there are better solutions.

tight hamlet
#

The code I shared above is the same thing that I want to achieve. Just want to change the time from hold on 4th day to something else like on the 7th day but I dont know if there is any event like trial_will_end that can be used

junior tendon
#

Is this what you are looking for?

tight hamlet
#

But I am already using it. I mean do we have any other event that I can use to trigger it on the 7th day for 17 day trial?

junior tendon
#

We don't have a settings that triggers it on a specific day / time.

tight hamlet
#

Is there any other way that I can use to trigger?

#

Not particularly 7th day, but somewhere 7-12th day

junior tendon
#

That event only triggers 3 days before the subscription’s trial period is scheduled to end. You will likely need to use your own scheduling system to trigger a reminder at your desired interval.

tight hamlet
#

Do we need to create a cron job for that?

fallow elmBOT
astral kraken
#

hi! I'm taking over this thread.

#

if you want an action to happen in the future (like creating a PaymentIntent), then yes a cron job would work.

tight hamlet
#

So there is no direct way in Stripe that we can use to trigger on some particular day. Right?