@vitawallet/vita-wallet-payment-gateway

0.2.3 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @vitawallet/vita-wallet-payment-gateway

Weekly Downloads

0

Version

0.2.3

License

ISC

Unpacked Size

2.61 kB

Total Files

3

Last publish

Collaborators

  • ghabrielv