#yuvi00001

1 messages ยท Page 1 of 1 (latest)

lyric idolBOT
hybrid rune
#

๐Ÿ‘‹ happy to help

#

is this for subscriptions?

sage rapids
#

like I want to send users two different mails

  1. if there payment was failed at the time of checkout.
  2. if they have made a few consecutive payments and their last payment fails

i'm trying to capture these scenarios.

#

yes, they are for subscriptions

hybrid rune
#

you can look at the billing_reason on the invoice

sage rapids
#

I just checked my webhook request body,
billing_reason says ""subscription_cycle" , that is the second case,
For the checkout case will it be different ?
if "subscription_create" comes for the first case then I think this will do it .

Ill just try it.
please don't close the thread for now

hybrid rune
#

sure let me know if you need any more help

lyric idolBOT
sage rapids
#

this works, sorry for the delay

#

and thank you