0.1.0 • Published 7 years ago

vue-squarepay v0.1.0

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

vue-squarepay

A Vue component that wraps the Web API functionality of Square to accept payments.

Install:

$ npm install --save vue-squarepay

Usage:

This component takes the query parameters to initiate a payment with the Squarepay WebAPI. The main settings are easily configurable with props : client, currency, amount, callbackUrl - see table below for full usage breakdown.

Params/Props:

Example:

Here is an example application containing the squarepay component:

JavaScript:

import Vue from 'vue';
import Squarepay from 'vue-squarepay';

new Vue({
	el: '#app',
	store,
	components: { Squarepay },
});

Markup:

<squarepay :callbackUrl="callbackUrl" :client="client" :currency="currency" :amount="amount"></squarepay>
more updates planned to come shortly..