#KRS-Subscription

1 messages · Page 1 of 1 (latest)

fallen oak
#

Hi there, what types of event are you interested in? the invoice is upcoming, the invoice is paid successfully or payment failure?

thorny ruin
#

i don't want to rely on the payment events as payment can be succesfull or failed. irrespective of the payment status, i want to update our system's subscritption with renewal information.

fallen oak
#

Usually a subscription renewal means the invoice is paid successful, can you tell me a bit more about the renewal in your use case?

thorny ruin
#

we have subscription which is renewed annually. for some reason when the payment failed on the renewal, then the subscritpion in stripe goes to due state, we also want to capture that and mark our subscription as due. so relying on payment failed or succesful is not correct, as we want to know the subscription changes.

fallen oak
#

Do you intent to recover the payment as the next course of action?

thorny ruin
#

yes, but there is no defined timeline to do that, it can be done later when customer visits in the next year..

fallen oak
thorny ruin
#

still my question of what is the recommended way to listen for subscription renewal is not answered?

fallen oak
#

You should listen to invoice.paid for successful subscription renewal and invoice.payment_failed for unsuccessful subscription renewal.

#

You can also listen to customer.subscription.updated when the subscription status changes (i.e., from active to past_due)