Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csc-pay

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csc-pay

Crypto CSC payment gateway

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 11 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc