#Niroda-subscription

1 messages · Page 1 of 1 (latest)

weak egret
#

Hi! You could listen to the invoice.payment_succeeded event to know when the invoice os a subscription is paid.

hard glacier
#

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?

weak egret
#

You are correct, invoice.paid will work!

#

From the Stipe dashboard, int eh webhook page, you can send test events.

hard glacier
#

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!

weak egret
#

Yes test clock are perfect for that, but currently in beta.