#idruv-webhook

1 messages · Page 1 of 1 (latest)

random plank
#

Hi there, are you asking which webhook events you should listen to for subscription update?

proud lark
#

no no

#

for a given subscription

#

how to know via webhook that this is the last schedule?

#

e.g. if a subscription schedule was made for 3 months, how can we know via webhook event that this is the last and final 3rd month and after that there will be no charge taken

random plank
proud lark
#

ohh

#

okay i will read

#

so is it sure that it will be called always?

random plank
#

Yes it will be called if you register it in your webhook endpoint

proud lark
#

okk

#

by registration here means validating it right, like in my case I validate it by

let payload = req.body; if(payload.type === 'subscription_schedule.completed'){ // my code here when schedule // completes }