shepa
Version:
Shepa is a online payment gateway
78 lines (48 loc) • 1.34 kB
Markdown
- [Install](
- [Introduction](
- [HowToUse](
- [ChangeLog](
This is a [Node.js](https://nodejs.org/en/) module available through the
[](https://www.npmjs.com/).
Before installing, [download and install Node.js](https://nodejs.org/en/download/). Node.js 0.6 or higher is required.
Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):
```sh
$ npm i shepa
```
A very simple tool to send and verify shepa payment gateway.
Write this code in js file:
```js
import Shepa from "shepa";
let shepa = new Shepa('Merchant');
shepa.send(apiKey, amount);
```
```js
import Shepa from "shepa";
let shepa = new Shepa('Merchant');
shepa.send(apiKey, token, amount);
```
Write this code in js file:
```js
import Shepa from "shepa";
let shepa = new Shepa('Sandbox');
shepa.send(apiKey, amount);
```
```js
import Shepa from "shepa";
let shepa = new Shepa('Sandbox');
shepa.send(apiKey, token, amount);
```
[](https://github.com/treegex/shepa/blob/main/CHANGELOG.md)