Documentation overview
The Vue Stripe documentation has four sections. Each one serves a different need, so start with the one that matches what you are doing right now.
Tutorials
Lessons that take you from an empty folder to a working result, one step at a time. Start here if you have not used Vue Stripe before: Take your first test payment. Then, to bill customers every month, Start your first test subscription.
How-to guides
Steps for a specific goal, such as accepting SEPA Direct Debit or embedding Stripe Checkout. They assume Vue Stripe is installed and you know what you want to build. The index below lists them by goal.
The samples read the publishable key with Vite's import.meta.env.VITE_STRIPE_PUBLISHABLE_KEY. On Vue CLI, read process.env.VUE_APP_STRIPE_PUBLISHABLE_KEY instead, and in Quasar import.meta.env.QCLI_STRIPE_PUBLISHABLE_KEY (key table).
Reference
The props, events, slots, exposed members and return values of every component, composable and type. Open the reference overview, or look up a Stripe.js method in Stripe.js coverage to find the export that wraps it.
Explanation
Background on how Vue Stripe and Stripe fit together, and why. Read these when you want to understand a choice rather than make it work:
- About Vue Stripe
- How Vue Stripe works
- Choosing an integration
- Payment objects: Intents, Sessions, tokens
- How confirming works
- How Stripe.js is loaded
- Stripe.js versions and what v6 changed
- What runs where: keys and PCI
I want to...
Set up
- Install and set up Vue Stripe in a Vite, Vue CLI, Quasar or Laravel app
- Use Vue Stripe on Vue 2.7
- Use Vue Stripe with Nuxt and SSR, including VitePress
- Use Vue Stripe with Quasar, in SPA and SSR mode
- Use Vue Stripe with Laravel and Inertia, with stripe-php routes and webhooks
- Provide Stripe app-wide with the
createVueStripeplugin - Upgrade from v5 to v6
Accept payments with Elements
- Accept a payment with the Payment Element, which offers cards, wallets, bank debits and local methods
- Collect payment details before creating an Intent
- Add Apple Pay, Google Pay and Link buttons
- Add Link to checkout so returning customers pay with saved details
- Collect a shipping or billing address
- Accept card payments with the Card Element
- Show buy-now-pay-later messaging next to a price
- Confirm payments on your server with a ConfirmationToken, or create a PaymentMethod or Token
- Handle errors and declines
Accept bank debits
- Accept SEPA Direct Debit with an IBAN
- Accept BECS Direct Debit from Australian bank accounts
- Accept ACH Direct Debit from US bank accounts
Use Stripe Checkout
- Redirect to Stripe Checkout, the page Stripe hosts
- Embed Stripe Checkout in your own page
- Build your own page on a Checkout Session with Elements
- Add the Checkout Form (beta), Stripe's whole checkout form as one element
Save cards and bill repeatedly
Customize, test and run
- Style elements
- Test your integration with test cards, IBANs and bank accounts
- Fulfil orders with webhooks
- Troubleshoot common problems
Beyond payments
- Display issued card details to Stripe Issuing cardholders
- Verify a customer's identity
Live demos
The live demos run each integration in test mode, so you can see how it behaves before you build it. Report problems on GitHub.
