Socket
Socket
Sign inDemoInstall

@playmoweb/vue-payline-wrapper

Package Overview
Dependencies
0
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @playmoweb/vue-payline-wrapper

VueJS Payline Widget Wrapper.


Version published
Weekly downloads
28
increased by460%
Maintainers
3
Install size
18.5 kB
Created
Weekly downloads
 

Readme

Source

Vue 2.X Payline Widget Wrapper

npm version npm vue2

VueJS wrapper component for the web Payline Widget SDK.

This is an unofficial repository.

Installation

npm i --save @playmoweb/vue-payline-wrapper

Usage

import VuePaylineWrapper from '@playmoweb/vue-payline-wrapper';
import Vue from 'vue';
Vue.use(VuePaylineWrapper);
<template>
    <VuePaylineWrapper :noClose="noClose" :token="token" widgetType="lightbox" :isHomologation="isHomologation"
                       @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,
                isHomologation: false
            }
        },
        methods: {
            logState(state){
                console.log(state);
            }
        }
    }
</script>

Keywords

FAQs

Last updated on 19 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc