2.0.0 • Published 2 years ago
nuxt-adyen-module v2.0.0
nuxt-adyen-module
Adyen Module for Nuxt.js
Setup
- Add
nuxt-adyen-module
dependency to your project
yarn add nuxt-adyen-module # or npm install nuxt-adyen-module
- Add
nuxt-adyen-module
to themodules
section ofnuxt.config.js
/// nuxt.config.js
{
modules: [
// Simple usage
'nuxt-adyen-module',
// With options
['nuxt-adyen-module', { /* module options */ }]
]
}
Or a separate section adyen
for module options:
// nuxt.config.js
{
modules: [
// Simple usage
'nuxt-adyen-module',
],
adyen: {
clientKey: '<your-adyen-client-key>',
/* all other options */
}
}
For all available module options, please refer to options
- Import
AdyenCheckout
component
import AdyenCheckout from 'nuxt-adyen-module/src/runtime/AdyenCheckout.vue';
- Provide all necessary data to the AdyenCheckout component like props and props functions described here
Testing
You can test the Adyen Checkout by using the following card:
- Card Number: 2222 4000 7000 0005
- Expiry Date: 03/2030
- CVC3: 737
Or any other listed here:
https://docs.adyen.com/development-resources/test-cards/test-card-numbers#mastercard
Documentation
Move to the docs
directory:
cd docs
Install dependencies and start the project in development mode:
yarn && yarn dev
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) Baroshem jakub.andrzejewski.dev@gmail.com