
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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.
Install my-project with npm
npm install --save pli-pay
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)}
/>
}
curl -X 'GET' \ 'https://api.coingecko.com/api/v3/simple/supported_vs_currencies' \ -H 'accept: application/json'
Parameter | Type | Description | Values |
---|---|---|---|
chainId | string | Specify network. | 50(Mainnet) (or) 51(Apothem) |
paymethod | string | Specify payment method. | XDC (or) PLI |
fiatcurrency | string | Specify fiat currency specify in lowercase. | "usd","aed","inr","ars","aud","eur" ..etc |
style | string | Add your own style class | |
receiverAddress | string | Valid Wallet Address. | XDC Wallet Address |
amount | string | Amount to received. | eg:10 |
onSuccess | function | Capture Success Response | |
onFailure | function | Capture Failure Response | |
onError | function | Capture Error Response |
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
MIT © GoPlugin
FAQs
Crypto PLI payment gateway
We found that pli-pay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.