2.0.23 • Published 27 days ago

kkiapay v2.0.23

Weekly downloads
21
License
ISC
Repository
-
Last release
27 days 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

27 days ago

2.0.25

27 days ago

2.0.19

8 months ago

2.0.24

7 months ago

2.0.22

7 months ago

2.0.23

7 months ago

2.0.20

8 months ago

2.0.21

7 months ago

2.0.17

1 year ago

2.0.18

1 year ago

2.0.15

1 year ago

2.0.16

1 year ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.12

2 years ago

1.0.8

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.9

5 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago