1.0.1 • Published 2 years ago

csc-pay v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

CSC Crypto Payment Gateway

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

Installation

Install my-project with npm

  npm install --save csc-pay

Usage/Examples

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

ParameterTypeDescriptionValues
chainIdstringSpecify network.53(TESTNET) or 52 (Mainnet)
paymethodstringSpecify payment method.TCET (or) CET
receiverAddressstringValid Wallet Address.Wallet Address
amountstringAmount to received.eg:10
onSuccessfunctionCapture Success Response
onFailurefunctionCapture Failure Response
onErrorfunctionCapture Error Response

Run Locally

Clone the project

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

Go to the project directory

  cd example

Install dependencies

  npm install

Start the server

  npm run start

License

MIT © Jurjees23