@paystack/checkout-js 1.19.0-dev.17 → 1.19.0-dev.19

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 CHANGED
@@ -2,17 +2,15 @@
2
2
 
3
3
  This is the client-side JS library for billing customers with Paystack. It makes it easy to create custom, secure payment experiences for merchant apps and websites. Checkout JS handles payment data encryption and transmission, this allows merchants to collect sensitive information such as credit card information without violating compliance.
4
4
 
5
- It is used in Checkout, Paystack's proprietary checkout form.
6
-
5
+ It is used in Checkout, Paystack's proprietary checkout form .
7
6
 
8
7
  # Documentation
9
8
 
10
9
  See the [Checkout JS public docs](./PUBLIC_DOCS.md) and [development docs](./DEV_DOCS.md)
11
10
 
12
-
13
11
  # Installation
14
12
 
15
- Clone this repository
13
+ Clone this repository
16
14
 
17
15
  git clone git@github.com:PaystackHQ/checkout-js.git
18
16
 
@@ -20,11 +18,9 @@ Install dependencies with:
20
18
 
21
19
  npm install
22
20
 
23
-
24
21
  # Development
25
22
 
26
- The source code can be found in the `src/` folder.
27
-
23
+ The source code can be found in the `src/` folder.
28
24
 
29
25
  # Testing
30
26
 
@@ -32,15 +28,13 @@ Testing is done with Jest. To test your changes, run
32
28
 
33
29
  npm test
34
30
 
35
-
36
31
  # Build
37
32
 
38
33
  Checkout JS is built with Rollup. To build, run the command
39
34
 
40
35
  npm run build
41
36
 
42
- You can also specify an environment to build for: `dev`, `staging`, or `production`. Configuration variables are set in `src/config.js`.
43
-
37
+ You can also specify an environment to build for: `dev`, `staging`, or `production`. Configuration variables are set in `src/config.js`.
44
38
 
45
39
  # Deployment
46
40
 
@@ -50,12 +44,10 @@ Checkout JS is deployed to three environments:
50
44
  - Production: [https://js.paystack.co/v1/checkout.js](https://js.paystack.co/v1/checkout.js)
51
45
  - npm: [@paystack/checkout-js](https://npmjs.com/package/@paystack/checkout-js)
52
46
 
53
-
54
-
55
47
  # Releases
56
48
 
57
49
  Checkout JS is automatically packaged and published to the NPM registry on every push to the `master` and `dev` branches.
58
50
 
59
- The `master` branch is publised under the `latest` tag so it can be installed by running `npm i @paystack/checkout-js@latest` while the `dev` branch is published under the `dev` tag so it can be installed using `npm i @paystack/checkout-js@dev`
51
+ The `master` branch is publised under the `latest` tag so it can be installed by running `npm i @paystack/checkout-js@latest` while the `dev` branch is published under the `dev` tag so it can be installed using `npm i @paystack/checkout-js@dev`
60
52
 
61
53
  All published versions are listed here on NPM https://www.npmjs.com/package/@paystack/checkout-js
package/dist/checkout.js CHANGED
@@ -6607,7 +6607,6 @@ var Paystack = (function (exports) {
6607
6607
  };
6608
6608
 
6609
6609
  /* eslint-env browser */
6610
- // We use this function to load pusher.
6611
6610
 
6612
6611
  var loadPusher = function loadPusher() {
6613
6612
  if (!window) {
@@ -20752,14 +20751,12 @@ var Paystack = (function (exports) {
20752
20751
  });
20753
20752
 
20754
20753
  var url = "".concat(configToUse.paystackApiUrl, "preauthorization/verify_access_code/").concat(accessCode);
20755
- return axiosInstance.post(url, {
20754
+ return axiosInstance.get(url, {
20756
20755
  headers: headers
20757
20756
  }).then(function (response) {
20758
20757
  return response.data;
20759
20758
  });
20760
20759
  },
20761
- verify: function verify() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20762
- },
20763
20760
  requery: function requery() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20764
20761
  },
20765
20762
  reserveFunds: function reserveFunds() {// TODO: https://paystack.atlassian.net/browse/RAILS-2887
package/es/checkout.js CHANGED
@@ -6604,7 +6604,6 @@ var ChargeResponses = {
6604
6604
  };
6605
6605
 
6606
6606
  /* eslint-env browser */
6607
- // We use this function to load pusher.
6608
6607
 
6609
6608
  var loadPusher = function loadPusher() {
6610
6609
  if (!window) {
@@ -20749,14 +20748,12 @@ var PreauthorisationAPI = {
20749
20748
  });
20750
20749
 
20751
20750
  var url = "".concat(configToUse.paystackApiUrl, "preauthorization/verify_access_code/").concat(accessCode);
20752
- return axiosInstance.post(url, {
20751
+ return axiosInstance.get(url, {
20753
20752
  headers: headers
20754
20753
  }).then(function (response) {
20755
20754
  return response.data;
20756
20755
  });
20757
20756
  },
20758
- verify: function verify() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20759
- },
20760
20757
  requery: function requery() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20761
20758
  },
20762
20759
  reserveFunds: function reserveFunds() {// TODO: https://paystack.atlassian.net/browse/RAILS-2887
package/lib/checkout.js CHANGED
@@ -6608,7 +6608,6 @@ var ChargeResponses = {
6608
6608
  };
6609
6609
 
6610
6610
  /* eslint-env browser */
6611
- // We use this function to load pusher.
6612
6611
 
6613
6612
  var loadPusher = function loadPusher() {
6614
6613
  if (!window) {
@@ -20753,14 +20752,12 @@ var PreauthorisationAPI = {
20753
20752
  });
20754
20753
 
20755
20754
  var url = "".concat(configToUse.paystackApiUrl, "preauthorization/verify_access_code/").concat(accessCode);
20756
- return axiosInstance.post(url, {
20755
+ return axiosInstance.get(url, {
20757
20756
  headers: headers
20758
20757
  }).then(function (response) {
20759
20758
  return response.data;
20760
20759
  });
20761
20760
  },
20762
- verify: function verify() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20763
- },
20764
20761
  requery: function requery() {// TODO: https://paystack.atlassian.net/browse/RAILS-2890
20765
20762
  },
20766
20763
  reserveFunds: function reserveFunds() {// TODO: https://paystack.atlassian.net/browse/RAILS-2887
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paystack/checkout-js",
3
- "version": "1.19.0-dev.17",
3
+ "version": "1.19.0-dev.19",
4
4
  "description": "Client-side JS library for billing on Paystack",
5
5
  "main": "lib/checkout.js",
6
6
  "module": "es/checkout.js",