#Niroda-subscription
1 messages · Page 1 of 1 (latest)
Hi! You could listen to the invoice.payment_succeeded event to know when the invoice os a subscription is paid.
Stripe .Net library is giving a warning that invoice.payment_succeeded is obsolete and I have to use invoice.paid instead
Is that a correct one to use? Is there any way to test this event?
You are correct, invoice.paid will work!
From the Stipe dashboard, int eh webhook page, you can send test events.
You can also use the Stripe CLI to trigger events: https://stripe.com/docs/stripe-cli/webhooks
And we have a page explaining how to test subscriptions: https://stripe.com/docs/billing/testing
Yep I saw that! but I would like to test my logic and get a valid test for the next payment. The CLI and the test event from webhook will geneerate a dummy data and I'm looking for a way to trigger an existing subscription due payment.
Let's say I created a subscription today. The next payment will be on 10th of Feb, isn't there a way to modify the due date to check whether my logic/events are working?
Oh, I see. Test clock is the way, I missed that. Thanks!
Yes test clock are perfect for that, but currently in beta.