0.2.3 • Published 4 years ago

@vitawallet/vita-wallet-payment-gateway v0.2.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

vita-wallet-payment-gateway

Website | Instagram | Twitter | Telegram

The vita-wallet-payment-gateway is a library that allows integrating from external sites the possibility of receiving payments in our VitaWallet.

Installation

In a browser:

<script src="https://app.vitawallet.io/vita-wallet-payment-gateway.js"></script>

Using npm:

$ npm install --save @vitawallet/vita-wallet-payment-gateway

In Node.js:

var paymentGateway = require('@vitawallet/vita-wallet-payment-gateway');

In ReactJS:

import { paymentGateway } from '@vitawallet/vita-wallet-payment-gateway';

How to use?

Example in ReactJS:

<button
onClick={() => paymentGateway(email, amount, ENV, token)}>
    Pagar con VitaWallet
</button>

Arguments

These are the arguments available on the payment button.

  • email -> Your email address in VitaWallet. Ex: 'soporte@vitawallet.io'
  • amount -> Payment amount. Ex: 100.
  • env -> Enviroment 'qa' or 'prod'. (optional)
  • token -> Token identification of the transaction. (optional)
0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.2

5 years ago

0.0.1

5 years ago