Add basic code to receive Stripe events (webhook) by willdurand · Pull Request #15901 · mozilla/addons-server (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My idea would be to submit a Celery task, which we would have to create for each event we want to listen to and handle. This only receives and validates notifications and once we have an event object, we can do whatever we want (which is the complicated part, heh).
We'll see shortly with payment failures, which we should handle by sending an email to amo admins.