@playmoweb/vue-payline-wrapper
Advanced tools
Comparing version 1.0.0 to 1.0.1
/*! | ||
* @playmoweb/vue-payline-wrapper v1.0.0 | ||
* @playmoweb/vue-payline-wrapper v1.0.1 | ||
* (c) Playmoweb SAS | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* @playmoweb/vue-payline-wrapper v1.0.0 | ||
* @playmoweb/vue-payline-wrapper v1.0.1 | ||
* (c) Playmoweb SAS | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
{ | ||
"name": "@playmoweb/vue-payline-wrapper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "VueJS Payline Widget Wrapper.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -16,4 +16,33 @@ # Vue 2.X Payline Widget Wrapper | ||
```js | ||
import VuePaylineWrapper from '@playmoweb/vue-payline-wrapper'; | ||
import Vue from 'vue'; | ||
Vue.use(VuePaylineWrapper); | ||
``` | ||
```vue | ||
<template> | ||
<VuePaylineWrapper :noClose="noClose" :token="token" widgetType="lightbox" | ||
@success="(state) => this.logState(state)" | ||
@error="(state) => this.logState(state)" | ||
@didshowstate="(state) => this.logState(state)" | ||
@handleFinalStateReached="(state) => this.logState(state)" | ||
@readyToPay="(state) => this.logState(state)"/> | ||
</template> | ||
<script> | ||
export default { | ||
name: "samplePayline", | ||
data(){ | ||
return { | ||
token: "YOUR-PAYMENT-TOKEN-FROM-DO-WEB-PAYMENT", | ||
noClose: false | ||
} | ||
}, | ||
methods: { | ||
logState(state){ | ||
console.log(state); | ||
} | ||
} | ||
} | ||
</script> | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28482
47