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

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.44

3 years ago

1.1.43

3 years ago

1.1.42

3 years ago

1.1.41

3 years ago

1.1.40

3 years ago

1.1.39

3 years ago

1.1.38

3 years ago

1.1.37

3 years ago

1.1.36

3 years ago

1.1.35

3 years ago

1.1.34

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.30

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.27

3 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago