Adds support for Stripe.js v3 to Nuxt.
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.
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],
],