# csc-pay

> Crypto CSC payment gateway

Latest version **1.0.1** (published 2022-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install csc-pay
pnpm add csc-pay
yarn add csc-pay
bun add csc-pay
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-10-11 |
| First published | 2022-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 5 |
| Unpacked size | 100.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jurjees23 |
| Maintainers | jurjees23 |
| Keywords | payment gateway, CSC, crypto gateway |

## Links

- npm: https://www.npmjs.com/package/csc-pay
- Repository: https://github.com/jurjees23/csc-pay
- Issues: https://github.com/jurjees23/csc-pay/issues
- npm.io page: https://npm.io/package/csc-pay

## Dependencies (5)

- [ethers](https://npm.io/package/ethers.md) ^5.7.1
- [web3modal](https://npm.io/package/web3modal.md) ^1.9.9
- [xdcpay-web3modal](https://npm.io/package/xdcpay-web3modal.md) ^1.0.3
- [@metamask/detect-provider](https://npm.io/package/@metamask/detect-provider.md) ^2.0.0
- [@walletconnect/web3-provider](https://npm.io/package/@walletconnect/web3-provider.md) ^1.8.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-10-11
- 1.0.0 — 2022-10-11

## README

# CSC Crypto Payment Gateway

A package to accept CET token as Payment in your website or web application

 

## Installation

Install my-project with npm

```bash
  npm install --save csc-pay
```
    
## Usage/Examples

```javascript
import CSCPAY from 'csc-pay'
import 'csc-pay/dist/index.css'

function App() {
  return <CSCPAY
    chainId={53}
    paymethod={"TCET"}
    receiverAddress={"0xe79518Db2d9F605d3432cd48B44bc808c94694C6"}
    amount={"10"}
    onSuccess={(data) => console.log("onSuccess", data)}
    onFailure={(data) => console.log("onFailure", data)}
    onError={(data) => console.log("onError", data)}
  />
}
```


## Required Parameter

| Parameter | Type     | Description                | Values                      |
| :-------- | :------- | :------------------------- |:----------------------------
| `chainId` | `string` | **Specify network**.                     |  53(TESTNET)  or 52 (Mainnet)
| `paymethod` | `string` | **Specify payment method**.                   |  TCET  (or) CET
| `receiverAddress` | `string` | **Valid Wallet Address**. |   Wallet Address
| `amount` | `string` | **Amount to received**.                      |  eg:10
| `onSuccess` | `function` |                |  Capture Success Response
| `onFailure` | `function` |                    |  Capture Failure Response
| `onError` | `function` |                    |  Capture Error Response





## Run Locally

Clone the project

```bash
  git clone https://github.com/jurjees23/csc-pay
```

Go to the project directory

```bash
  cd example
```

Install dependencies

```bash
  npm install
```

Start the server

```bash
  npm run start
```


## License

MIT © [Jurjees23](https://github.com/Jurjees23/)

---
_Source: https://npm.io/package/csc-pay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
