@vitawallet/vita-wallet-payment-gateway
v0.2.3
Published
Payment gateway of VitaWallet
Downloads
4
Readme
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: '[email protected]'
- amount -> Payment amount. Ex: 100.
- env -> Enviroment 'qa' or 'prod'. (optional)
- token -> Token identification of the transaction. (optional)