An API backend server for HyperAgency.
npm iConfigure environment variables in ./env using example of ./env.example.
You have to create a webhook in a Stripe Dashboard separately for each environment:
- Stripe Sandbox webhooks. The webhook should be pointing to local address. You can use the
listencommand in./package.jsonto setup local webhook. - Stripe live webhooks. The webhook should be pointing to
https://api.h9y.ai/v1/subscriptions/webhook.
Select API version: 2020-03-02.
Select webhook events to send:
invoice.payment_succeededcustomer.subscription.deleted
On local dev, you can get the webhook events with stripe CLI tool:
brew install stripe/stripe-cli/stripe
stripe login
npm run listenSee: stripe-cli.
npm start