directus-endpoint-stripe
Proxies, webhook, endpoints
Endpoints
/stripe/pricing: Fomated products[plans] for pricing page
/stripe/create-checkout-session: Create sessions checkout stripe
/stripe/check-session: Check session informations
Proxies
Proxy informations from stripe
- plans
/stripe/plans - products
/stripe/products
Webhook
Events
checkout.session.completed
Occurs when a Checkout Session has been successfully completed. Because a checkout session completed could potentially result in a failed payment, we can update the user's payment details here, but confirm credits or a subscription if the payment succeeds in other, more specific, webhooks.
invoice.paid
Occurs whenever an invoice payment attempt succeeds or an invoice is marked as paid out-of-band. This is called when a subscription is purchased or renewed and payment succeeds.
customer.subscription.updated
Occurs whenever a subscription changes (e.g., switching from one plan to another, or changing the status from trial to active)
customer.subscription.deleted
Occurs whenever a customer’s subscription ends.