beyd-easypay
v1.0.9
Published
<div align="center" style="background: #000;padding: 25px 0"> <a href="https://beydgroup.com"><img src="https://beydgroup.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fbeyd_logo.7f46b367.png&w=640&q=75" /></a><br> </div>
Downloads
2
Readme
EasyPay is a payment service provider created by BeydGroup. It groups together several online payment methods, such as Orange Money, Wave, card payments, E-Money, etc. Contact us to receive your keys and take advantage of our services.
Browser Support
| | | | | | | | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
Getting Started
First, run the development server:
npm install beyd-easypay
# or
yarn add beyd-easypay
Example
import 'beyd-easy-pay/dist/easypay.css'; // IMPORTANT
import { EasyPay } from 'beyd-easy-pay';
function MyApp() {
return (
<EasyPay
author="7XXXXXXXX" // your author number gived by beyd
amount={2} // amount
env="dev" // dev or prod
API_KEY="" // your API key
ACCESS_KEY="" // your access key
manage_fees={true} // who support fees ? client or merchant ? true for merchant and false for client
merchant_name="BEYD GROUP" // your merchant name
callbackSuccessUrl="https://beydgroup.com" // your success url where you want to redirect your client after payment done
callbackCancelUrl="https://google.com" // your cancel url where you want to redirect your client after payment canceled
/>
);
}
export default MyApp;
Props
| Variables | Type | DefaultValue | Description | | ------------------ | ------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | author | string | "" | Your account number | | amount | number | 2 | amount of payment | | env | string | dev | Environment to make payments, on dev environment all amount is fixed to 2 XOF | | API_KEY | string | "" | Your API key given by easypay | | ACCESS_KEY | string | "" | Your ACCESS key given by easypay | | merchant_name | string | "" | Merchant Name that shown on Orange Money or Wave when client proceed to payment | | callbackSuccessUrl | string | "" | url where you want to redirect your client after payment done | | callbackCancelUrl | string | "" | url where you want to redirect your client after payment canceled | | manage_fees | boolean | true | who support fees ? client or merchant ? true for merchant and false for client if client support, he will amount and fees otherwise merchant support |