@radzor/stripe-checkout
Simplified Stripe Checkout integration. Creates checkout sessions, handles payment webhooks, and manages subscription lifecycle.
Install
View source on GitHub →Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| priceId* | string | — | Stripe Price ID for the product or subscription. |
| quantity | number | 1 | Quantity of the item to purchase. |
| successUrl* | string | — | URL to redirect to after successful payment. |
| cancelUrl* | string | — | URL to redirect to if the user cancels checkout. |
| mode | 'payment' | 'subscription' | payment | Checkout mode: one-time payment or recurring subscription. |
| secretKey* | string | — | Stripe secret API key (sk_live_... or sk_test_...). Server-side only. |