Stripe

Image of Author
May 13, 2024 (last updated September 16, 2024)

Stripe is financial infrastructure as a service.

Webhooks best practices

Important things to remember about Stripe Webhooks best practices include handling duplicate events and handling events asynchronously.

Local webhook pass through

Stripe has a cli you can install via Homebrew. You can call stripe login and then forward test webhooks from your test payments to your locally running machine. This will allow you to make test payments and have the webhook responses pass to your local device.

  • --skip-verify below will disable TLS allowing local http.
stripe listen --skip-verify --forward-to localhost:4000/payments/stripe/webhooks