vue-braintree
10,059
| Install | |
|---|---|
npm install vue-braintree |
|
| Latest Version: | 2.1.0 |
| Vue: | 2 |
| Last Updated: | Sep 10, 2021 |
| Links: | npm |
Maintainer: francoislevesque
Vue Braintree

- Works with: Credit Cards, Paypal, Apple Pay, Google Pay, etc.
- Choose your own language. Available in English, French, Spanish, etc.
- Fully customizable
Documentation
Complete documentation and examples available at https://francoislevesque.github.io/vue-braintree/.
Quick start
Import the plugin in your Vue Application.
import Vue from 'vue'
import vue-braintree from 'vue-braintree'
Vue.use(vue-braintree)
In order to use the Drop-in UI, you'll first need to get a tokenization key from the Control Panel or generate a client token on your server. This will be your authorization used when creating Drop-in.
<v-braintree
authorization="xxxxxxxxxxxxxxxxxxxxxx"
@success="onSuccess"
@error="onError"
></v-braintree>
export default {
methods: {
onSuccess (payload) {
let nonce = payload.nonce;
// Do something great with the nonce...
},
onError (error) {
let message = error.message;
// Whoops, an error has occured while trying to get the nonce
}
}
}
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.1.0 | ^2.6.11 | ||
| 2.0.3 | ^2.6.11 | ||
| 2.0.2 | ^2.6.11 | ||
| 2.0.1 | ^2.6.10 | ||
| 2.0.0 | ^2.6.10 | ||
| 1.0.2 | ^2.4.4 | ISC | |
| 1.0.1 | ^2.4.4 | ISC | |
| 1.0.0 | ^2.4.4 | ISC | |
| 0.1.0 | ^2.6.10 | ||
| 0.0.5 | ^2.4.4 | ISC | |
| 0.0.4 | 2.* | ISC | |
| 0.0.3 | 2.* | ISC | |
| 0.0.2 | 2.* | ISC | |
| 0.0.1 | 2.* | ISC |