#ibrahim - subscriptions webhooks

1 messages · Page 1 of 1 (latest)

spare flicker
#

Hi! Happy to help

weary delta
#

many thanks! some questions about that:

  1. we are using payment_intent.payment_failed to detect failure to pay the first time after checkout session is that correct or we should use invoice.payment_failed as well?
  2. just to confirm I understand well , if we don't handle invoice.created and send finalize action what will happen is that the charge will delay for 72 hours right?
proper swift
#

you should use invoice.payment_failed
2. you don't have to manually finalize it, but if you listen to invoice.created you do need to respond to that event with a 200

weary delta
#

cool thanks! I think I need to replace:

  • payment_intent.succeeded by invoice.paid to activate the subscription on our side.
  • payment_intent.payment_failed by invoice.payment_failed to stop giving the service or notify customer etc

does that sound good? (not handling payment_intent)

proper swift
#

yep