react-epaygames-button v1.2.15
react-epaygames-button
Epaygames Payment Gateway Button
How to use?
- Install the package using
npm install react-epaygames-buttonoryarn add react-epaygames-button. - Import the
EpaygamesButtoncomponent from the package in your React component file using import EpaygamesButton from 'react-epaygames-button'; - Use the
EpaygamesButtoncomponent in your JSX code to render aEpaygamesButtonwith the specified props. For example:
import React from 'react';
import EpaygamesButton from 'react-epaygames-button';
function MyComponent() {
return (
<EpaygamesButton
payment_link="yourpaymentlink"
disabled={false}
callBackFunc: () => {
setIsSuccess(true)
}
/>
);
}The EpaygamesButton component accepts the following props:
window_width: optional type number the window width of Epaygames Browser.window_height: optional type number the window height of Epaygames Browser.payment_link: required type string the window url of Epaygames Browser.btn_title: optional type string the button title url the default isMAKE PAYMENT.btn_classname: optional type string the button className.disabled: required type boolean the disabled attribute of button.overlay_classname: optional type string the overlay className.modal_classname: optional type string the modal className.modal_btn_classname: optional type string the modal button className.success_url: optional type string If provided, the payment window will redirect to the URL specified by this parameter after a successful payment.failed_url: optional type string If provided, the payment window will redirect to the URL specified by this parameter after a failure payment.onSuccess: optional type function function will be executed before closing the payment gateway.onStart: optional type function If provided, this function will be called when the window is started.onClose: optional type function If provided, this function will be called when the window is closed.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago