
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
react-ravepayment
Advanced tools
This is a reactJS library for implementing rave payment gateway
A React library wrapper for implementing ReavePay Payment Gateway
npm install react-ravepayment --save
or
yarn add react-ravepayment --save
import React, { Component } from "react";
import { useRavePayment } from "react-ravepayment";
const config = {
txref: "rave-123456",
customer_email: "user@example.com",
customer_phone: "234099940409",
amount: 2000,
PBFPubKey: "FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXX-X",
production: false,
};
const App = () => {
const { initializePayment } = useRavePayment(config);
return (
<div>
<button onClick={() => initializePayment()}>Pay 2000</button>
</div>
);
};
export default App;
import React, { Component } from "react";
import { RaveProvider, RavePaymentButton } from "react-ravepayment";
const config = {
txref: "rave-123456",
customer_email: "user@example.com",
customer_phone: "234099940409",
amount: 2000,
PBFPubKey: "FLWPUBK-XXXXXXXXXXXXXXXXXXXXXXXXXX-X",
production: false,
onSuccess: () => {},
onClose: () => {}
};
const App = () => {
return (
<div>
<RaveProvider {...config}>
<RavePaymentButton>Pay 2000</RavePaymentButton>
</RaveProvider>
</div>
);
};
export default App;
For more usage example check
See the API reference.
WHEN DEPLOYING TO PRODUCTION/LIVE SYSTEM, take note of the following;
git checkout -b feature-name
git commit -am 'Some commit message'
git push origin feature-name
This project follows the all-contributors specification. Contributions of any kind welcome!
Looking to contribute? Look for the Good First Issue label.
Please file an issue for bugs, missing documentation, or unexpected behavior.
MIT
FAQs
This is a reactJS library for implementing rave payment gateway
The npm package react-ravepayment receives a total of 8 weekly downloads. As such, react-ravepayment popularity was classified as not popular.
We found that react-ravepayment 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.