1.0.9 • Published 2 months ago

beyd-easypay v1.0.9

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

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

ChromeFirefoxSafariOperaEdgeIE
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔11 ✔

Browser Matrix

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

VariablesTypeDefaultValueDescription
authorstring""Your account number
amountnumber2amount of payment
envstringdevEnvironment to make payments, on dev environment all amount is fixed to 2 XOF
API_KEYstring""Your API key given by easypay
ACCESS_KEYstring""Your ACCESS key given by easypay
merchant_namestring""Merchant Name that shown on Orange Money or Wave when client proceed to payment
callbackSuccessUrlstring""url where you want to redirect your client after payment done
callbackCancelUrlstring""url where you want to redirect your client after payment canceled
manage_feesbooleantruewho support fees ? client or merchant ? true for merchant and false for client if client support, he will amount and fees otherwise merchant support