O'Reilly logo

Take My Money by Noel Rappin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Supporting the Stripe Subscription Life Cycle

Now that we have a mechanism in place to capture Stripe events, we need to decide what events we should actually handle. And in order to decide that, we need to look at what events Stripe will send.

There is a set of events that Stripe sends to initialize a new subscription and a set of events that are sent around each new subscription payment. Most of these events we don’t really care about, but Stripe sends them anyway (if we want, the Stripe administrative dashboard has a setting to limit the events being sent).

When we initially create our subscription via our workflow, Stripe should trigger two events:

  • customer.created
  • customer.subscription.created

At the end of the trial period, or immediately ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required