New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pli-pay

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pli-pay

Crypto PLI payment gateway

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Weekly downloads
 
Created
Source

PLI Crypto Payment Gateway

A package to accept XDC or XRC20 token as Payment method in your website or web application in few lines of code.

Currently supports XDC and PLI token.

Installation

Install my-project with npm

  npm install --save pli-pay

Usage/Examples

import Paypli from 'pli-pay'
import 'pli-pay/dist/index.css'

function App() {
  return <Paypli
    chainId={50}
    paymethod={"XDC"}
    fiatcurrency={"usd"}
    style={`apple_pay_button apple_pay_button_black`}
    receiverAddress={"0x117c691d76c1d9c68e3709a87f7d496097f2b56f"}
    amount={"1"}
    onSuccess={(data) => console.log("onSuccess", data)}
    onFailure={(data) => console.log("onFailure", data)}
    onError={(data) => console.log("onError", data)}
  />
}

API Reference

Checkout below Api for supported fiat currency
  curl -X 'GET' \ 'https://api.coingecko.com/api/v3/simple/supported_vs_currencies' \ -H 'accept: application/json'

Required Parameter

ParameterTypeDescriptionValues
chainIdstringSpecify network.50(Mainnet) (or) 51(Apothem)
paymethodstringSpecify payment method.XDC (or) PLI
fiatcurrencystringSpecify fiat currency specify in lowercase."usd","aed","inr","ars","aud","eur" ..etc
stylestringAdd your own style class
receiverAddressstringValid Wallet Address.XDC 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/GoPlugin/pli-pay

Go to the project directory

  cd example

Install dependencies

  npm install

Start the server

  npm run start

Developed By

  • Jurjees

License

MIT © GoPlugin

Acknowledgements

Keywords

FAQs

Package last updated on 08 Nov 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