2.0.23 • Published 1 year ago

kkiapay v2.0.23

Weekly downloads
21
License
ISC
Repository
-
Last release
1 year ago

Kkiapay (Js-sdk)

Installation

Please run the following command:

  npm install kkiapay-js-sdk

Import

You can now import the kkiapay dependency into your page

import {
  openKkiapayWidget,
  addKkiapayListener,
  removeKkiapayListener,
} from "kkiapay-js-sdk";

Usage

Define a function that will display the kkiapay widget

openKkiapayWidget({
 amount: 4000,
 api_key: "xxxxxxxxxxxxxxxxxxxxx",
 sandbox: true,
 phone: "97000000",
});

the addKkiapayListener function allows you to listen to kkiapay events. For the success event you can proceed as follows

  function successHandler(data) {
      console.log(data)
  }
 

  addKkiapayListener('success',successHandler)
  

the function removeKkiapayListener offers you the possibility to remove a callback that you have previously defined for an event

removeKkiapayListener('success',successHandler)
2.0.26

1 year ago

2.0.25

1 year ago

2.0.19

2 years ago

2.0.24

2 years ago

2.0.22

2 years ago

2.0.23

2 years ago

2.0.20

2 years ago

2.0.21

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

2.0.15

3 years ago

2.0.16

3 years ago

2.0.13

3 years ago

2.0.14

3 years ago

2.0.12

3 years ago

1.0.8

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.11

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.9

3 years ago

2.0.10

3 years ago

2.0.8

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

4 years ago

1.0.7

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

0.0.9

6 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.4

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago