1.2.15 • Published 2 years ago

react-epaygames-button v1.2.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-epaygames-button

Epaygames Payment Gateway Button

How to use?

  1. Install the package using npm install react-epaygames-button or yarn add react-epaygames-button.
  2. Import the EpaygamesButton component from the package in your React component file using import EpaygamesButton from 'react-epaygames-button';
  3. Use the EpaygamesButton component in your JSX code to render a EpaygamesButton with 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 is MAKE 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.
1.2.15

2 years ago

1.2.12

2 years ago

1.2.13

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.14

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.44

2 years ago

1.1.43

2 years ago

1.1.42

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.39

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.30

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago