
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
bani-react
Advanced tools
The Bani react Widget provides a simple and convenient payment flow for the web. It can be integrated with five easy steps, making it the easiest way to start accepting mobile money, crypto, bank transfer and third-party wallet services from your customer
The Bani react Payment Widget is a convenient and user-friendly payment solution for web applications. It enables businesses to easily accept payments through various channels such as mobile money, cryptocurrency, bank transfers, and third-party wallets. With just a few simple steps, you can integrate this widget into your application and start accepting payments securely.
Please refer to the documentation or code comments for more information on available options and customization.

Demo link: https://play-pay.bani.africa/link?donate-vera-wangg
To use the Bani react Payment Widget, you need the following:
You can install the Bani react Payment Widget using npm or yarn. Use the following command to install the package:
npm install bani-react
or
yarn add bani-react
To integrate the Bani react Payment Widget into your application, you can use the following code snippet as an example:
For Javascript
import useCheckout from 'bani-react'
const ReactComponent = () => {
const { BaniPopUp } = useCheckout();
const handleOnClose = (response) => {
console.log('On close: ', response)
}
const handleOnSuccess = (response) => {
console.log('On Success: ', response)
}
const handleSubmit = () => {
BaniPopUp({
amount: "3000",
phoneNumber: "0802 123 4567",
email: "kickass@startlord3000.com",
firstName: "Star",
lastName: "Lord",
merchantKey: "pub_test_EGB9QD8TQPV0ZD", //The merchant Bani public key
metadata: { custom_ref: 'custom_ref' },
onClose: handleOnClose,
callback: handleOnSuccess,
});
};
return (
<div>
{
// Your JSX here.
}
</div>
)
}
export default ReactComponent;
For Typescript
import useCheckout, { BaniPopUpType, EventResponse} from 'bani-react'
const ReactComponent = () => {
const { BaniPopUp } = useCheckout();
const App = () => {
const handleOnClose = (response: EventResponse) => {
console.log('On close: ', response)
}
const handleOnSuccess = (response: EventResponse) => {
console.log('On Success: ', response)
}
const handleSubmit = () => {
const data:BaniPopUpType = {
amount: "3000",
phoneNumber: "0802 123 4567",
email: "kickass@startlord3000.com",
firstName: "Star",
lastName: "Lord",
merchantKey: "pub_test_EGB9QD8TQPV0ZD", //The merchant Bani public key
metadata: { custom_ref: 'custom_ref' },
onClose: handleOnClose,
callback: handleOnSuccess,
}
BaniPopUp(data);
};
return (
<div>
{
// Your TSX here.
}
</div>
)
}
export default ReactComponent;
Make sure to replace the placeholder variables with the actual values from your application.
This project is licensed under the MIT License.
FAQs
The Bani react Widget provides a simple and convenient payment flow for the web. It can be integrated with five easy steps, making it the easiest way to start accepting mobile money, crypto, bank transfer and third-party wallet services from your customer
We found that bani-react demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.