Skip to content

Instantly share code, notes, and snippets.

@exocode
Created November 8, 2022 11:02
Show Gist options
  • Save exocode/8ede07b2c840e124d34693b70f2c2376 to your computer and use it in GitHub Desktop.
Save exocode/8ede07b2c840e124d34693b70f2c2376 to your computer and use it in GitHub Desktop.
Recurring Payments
- invoice.paid
- invoice.payment_failed
- customer.subscription.updated (subscription changes)
- invoice.payment_action_required (3DS)
One-Time Payments
- checkout.session.completed
# if you’re using the Payment Intent API, listen to
- payment_intent.succeeded
- payment_intent.payment_failed
- payment_intent.requires_action
# Keep in mind if you’re listening to both payment_intent.* and invoice.* events, the Payment Intent events might also fire for recurring payments. If the invoice field is not null in the Payment Intent received in that event then ignore this event since it will be handled in the invoice.* events instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment