# @huma-shan/payment-processor

> Payment processing using ethers.

Latest version **0.42.0** (published 2023-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @huma-shan/payment-processor
pnpm add @huma-shan/payment-processor
yarn add @huma-shan/payment-processor
bun add @huma-shan/payment-processor
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.42.0 |
| Published | 2023-02-12 |
| First published | 2022-11-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=16.0.0 |
| Dependencies | 11 |
| Unpacked size | 509.4 KB |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 385 |
| Maintainers | huma-shan |
| Keywords | requestnetwork |

## Links

- npm: https://www.npmjs.com/package/@huma-shan/payment-processor
- Repository: https://github.com/RequestNetwork/requestNetwork
- Homepage: https://github.com/RequestNetwork/requestNetwork/tree/master/packages/payment-processor#readme
- Issues: https://github.com/RequestNetwork/requestNetwork/issues
- npm.io page: https://npm.io/package/@huma-shan/payment-processor

## Dependencies (11)

- [tslib](https://npm.io/package/tslib.md) 2.5.0
- [ethers](https://npm.io/package/ethers.md) 5.5.1
- [near-api-js](https://npm.io/package/near-api-js.md) 1.1.0
- [@huma-shan/types](https://npm.io/package/@huma-shan/types.md) 0.40.0
- [@huma-shan/utils](https://npm.io/package/@huma-shan/utils.md) 0.40.0
- [@huma-shan/currency](https://npm.io/package/@huma-shan/currency.md) 0.13.0
- [@openzeppelin/contracts](https://npm.io/package/@openzeppelin/contracts.md) 4.7.3
- [@huma-shan/multi-formatt](https://npm.io/package/@huma-shan/multi-formatt.md) 0.19.0
- [@huma-shan/smart-contracts](https://npm.io/package/@huma-shan/smart-contracts.md) 0.33.0
- [@huma-shan/payment-detection](https://npm.io/package/@huma-shan/payment-detection.md) 0.40.0
- [@superfluid-finance/sdk-core](https://npm.io/package/@superfluid-finance/sdk-core.md) 0.3.2

## Recent versions

- 0.42.0 (latest) — 2023-02-12
- 0.41.0 — 2023-02-09
- 0.40.0 — 2023-02-07
- 0.39.8 — 2023-02-07
- 0.39.7 — 2023-02-07
- 0.39.6 — 2023-02-06
- 0.39.5 — 2023-02-03
- 0.39.4 — 2022-12-14
- 0.39.3 — 2022-12-08
- 0.39.2 — 2022-11-18
- 0.39.1 — 2022-11-18
- 0.39.0 — 2022-11-18

## README

# @huma-shan/payment-processor

`@huma-shan/payment-processor` is a typescript library part of the [Request Network protocol](https://github.com/RequestNetwork/requestNetwork).
It contains client-side payment methods for:

- ERC20 proxy contract
- ETH input data

### Test

To run the payment-processor tests we need a local running ganache with all our smart contracts deployed.
Do not define "NETWORK" variable in the smart-contracts .env file.
You can open two terminals and do:

```
# Terminal 1
cd ../smart-contracts/
yarn ganache

# Terminal 2
cd ../smart-contracts/
yarn deploy
cd ../payment-processor
yarn test
```

### Basic Usage

see [ERC20](/packages/usage-examples/src/pay-erc20-request.ts) and [ETH](/packages/usage-examples/src/pay-eth-request.ts) usage examples.

---
_Source: https://npm.io/package/@huma-shan/payment-processor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
