Vue Stripe Playground
useStripe() Composable
A composable that provides access to the Stripe instance from any component inside a VueStripeProvider. Must be used within the StripeProvider hierarchy.
✅ Inside StripeProvider (Works)
The useStripe() composable is called inside a component wrapped by VueStripeProvider.
No Stripe key configured. Click "Add Key" in the header above.
❌ Outside StripeProvider (Throws Error)
Calling useStripe() outside a VueStripeProvider will throw an error. This is caught and displayed below.
Event Log
No events yet. Click the button above to see error handling.