Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 464 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 464 Bytes

stripe-nuxt

Adds support for Stripe.js v3 to Nuxt.

Installation

First run npm i --save stripe-nuxt and then add stripe-nuxt to the modules of your nuxt config. For Typescript support, also add it to the types of your tsconfig.json.

Usage

This library will expose a $stripe property on the Vue instance

Supply your publishableKey value in nuxt.config.js 'modules' section:

modules: [
    ['stripe-nuxt', YOUR_STRIPE_PUBLISHABLE_KEY],
  ],