@paystack/inline-js 2.13.0-dev.1 → 2.13.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/inline.js +2186 -1649
- package/es/inline.js +2397 -0
- package/lib/inline.js +2399 -0
- package/package.json +34 -43
package/README.md
CHANGED
|
@@ -2,22 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
This is the client-side JS library for loading the Paystack checkout form. It makes it easy to accept payments from a web application and to create custom, secure payment experiences for merchant apps and websites.
|
|
4
4
|
|
|
5
|
+
# Quick start
|
|
6
|
+
### Requirements
|
|
5
7
|
|
|
6
|
-
|
|
8
|
+
```
|
|
9
|
+
node >= 12.0.0
|
|
10
|
+
npm >= 6.0.0
|
|
11
|
+
```
|
|
12
|
+
### Setup
|
|
7
13
|
|
|
8
14
|
Clone this repository
|
|
9
15
|
|
|
10
|
-
git clone
|
|
16
|
+
git clone https://github.com/PaystackHQ/inline-js.git
|
|
11
17
|
|
|
12
18
|
Install dependencies with:
|
|
13
19
|
|
|
14
20
|
npm install
|
|
15
21
|
|
|
16
|
-
#
|
|
22
|
+
# Local development
|
|
17
23
|
|
|
18
|
-
To test
|
|
24
|
+
To test Inline JS locally, run the command;
|
|
25
|
+
```
|
|
26
|
+
npm run dev
|
|
27
|
+
```
|
|
28
|
+
This spins up a `http-server` serving the `dev` folder and you can then visit the different `HTML` files in that folder to test various APIs and payment flows.
|
|
19
29
|
|
|
20
|
-
|
|
30
|
+
|
|
31
|
+
### Testing
|
|
32
|
+
|
|
33
|
+
This project uses [Jest](https://jestjs.io/) for unit testing. To run all tests, use the command;
|
|
34
|
+
```
|
|
35
|
+
npm test
|
|
36
|
+
```
|
|
21
37
|
|
|
22
38
|
# Deployment
|
|
23
39
|
|