Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/treer00t/shepa
A very simple tool to send and verify shepa payment gateway
https://github.com/treer00t/shepa
Last synced: 21 days ago
JSON representation
A very simple tool to send and verify shepa payment gateway
- Host: GitHub
- URL: https://github.com/treer00t/shepa
- Owner: TREER00T
- License: mit
- Created: 2022-09-17T11:03:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T11:12:02.000Z (about 2 years ago)
- Last Synced: 2024-10-11T17:16:28.402Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Shepa
## Table of Contents
- [Install](#install)
- [Introduction](#introduction)
- [HowToUse](#howtouse)
- [ChangeLog](#changelog)## Install
This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](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
```## Introduction
A very simple tool to send and verify shepa payment gateway.
## HowToUse
### Merchant
Write this code in js file:
#### Send
```js
import Shepa from "shepa";let shepa = new Shepa('Merchant');
shepa.send(apiKey, amount);
```#### Verify
```js
import Shepa from "shepa";let shepa = new Shepa('Merchant');
shepa.send(apiKey, token, amount);```
### SandboxWrite this code in js file:
#### Send
```js
import Shepa from "shepa";let shepa = new Shepa('Sandbox');
shepa.send(apiKey, amount);
```#### Verify
```js
import Shepa from "shepa";let shepa = new Shepa('Sandbox');
shepa.send(apiKey, token, amount);
```## ChangeLog
[Change Log](https://github.com/treegex/shepa/blob/master/CHANGELOG.md)