```shell npm install --save transbank-vue ``` _or_ ```shell yarn add transbank-vue ```
npm install transbank-vueshell
npm install --save transbank-vue
`
_or_
`shell
yarn add transbank-vue
`Usage
`js
import Vue from "vue"import TransbankForm from 'transbank-vue'
Vue.use(TransbankForm)
`_vue template html WebpayNormal, OneClick, PatPass_
`html
`_vue template html WebpayPlus_
`html
`_vue template js_
`javascript
export default {
props: {},
data() {
return {
url: '',
token: '',
transactionReady: false,
}
},
methods: {
whenReady() {
// API CALL PROMISE
this.url = apiUrl
this.token = apiToken
/*
* When the "ready" boolean is set to true,
* it starts to send the form after 500ms in case of any problem
*/
this.transactionReady = true
}
}
};
``