#phant
1 messages · Page 1 of 1 (latest)
Hi
Could you please share details about what you want to achieve exactly ?
i wanted to achive a continous hit of subsription, so that i can check in the webhook events
it should be done with clock right?
Can you share a concrete sample steps of your test scenario ?
yeah sure:
- I want subscription to render every 5mins or something, so that i can track the event from webHook
for testing purpose obviously
You mean every 5 mins you create a new Subscription ?
not create a subscription
but call the created subscription every 5 mins
more like a 5min subscription (like monthly subsription)
there?
@halcyon sonnet you have already an open thread here
please let's keep using the active thread
we are monitoring all threads.
got it
You mean trigger the webhook event ?
yes every 5mins of the current subsriptio
You can create an sh script with a cron
And call stripe trigger: https://stripe.com/docs/cli/trigger
And trigger this event:
https://stripe.com/docs/cli/trigger#trigger-event-customer_subscription_created
got it thanks
also can you tell me which webhook event be better used to capture payment failures?
thanks and best event used for subscription cancelled ?
You can find all the Subscription related webhook in this table:
https://stripe.com/docs/billing/subscriptions/webhooks#events
you can filter by event type
this should be subscription_schedule.canceled
Don't hesitate to make tests and simulation
You can use Stripe test clock following this guide:
https://stripe.com/docs/billing/testing/test-clocks
yeah in this cant i set time for 5mins?
which webhook is better for cancelled subscription:
subscription_schedule.canceled or customer.subscription.deleted
no, the test clock is just for doing some similations... in order to to trigger a webhook each 5min, you need to set a cron