DocsStripe
Stripe
Integrate Stripe payments with PayKit.
PayKit provides seamless Stripe integration with a unified API that works across all payment providers.
Quick Start
Install the configure Stripe provider:
Setup
Method 1: Environment Variables
Method 2: Direct Configuration
Basic Usage
Next.js catch‑all route. This forwards calls to the generated handlers.
Webhook Setup
Enable Events
In your Stripe dashboard, enable the following webhook events:
checkout.session.completedcustomer.createdcustomer.updatedcustomer.deletedcustomer.subscription.updatedcustomer.subscription.deletedinvoice.paid
Next.js API Route
Webhook route. This validates and dispatches events.
Vite.js
Environment Variables
Provider Metadata
Stripe supports additional configuration through provider_metadata: