express-pay 1.0.3 → 1.0.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 CHANGED
@@ -10,10 +10,6 @@ To set up the package, you simply need to run "npm i paynow_integration" and con
10
10
 
11
11
  - USAGE EXAMPLE
12
12
 
13
- .env VARIABLE NAMES
14
- PAYNOW_INTEGRATION_KEY=
15
- PAYNOW_INTEGRATION_ID=
16
-
17
13
  const pay = require("paynow_integration");
18
14
 
19
15
  REQUIRED ARGUMENTS
package/express_pay.js CHANGED
@@ -18,8 +18,6 @@ module.exports = function Pay(Payee_Contact, Transaction_Reference,Transaction_A
18
18
  let initStatus = "Sent";
19
19
  const startTime = Date.now();
20
20
 
21
- console.log("url",response.pollUrl);
22
-
23
21
  return new Promise((resolve, reject) => {
24
22
 
25
23
  const intervalId = setInterval(async () => {
@@ -52,27 +50,6 @@ module.exports = function Pay(Payee_Contact, Transaction_Reference,Transaction_A
52
50
  });
53
51
  }
54
52
 
55
- //Deprecated Method
56
- // async function getTransactionStatus(response){
57
- // let requestOptions = {
58
- // method: 'GET',
59
- // redirect: 'follow'
60
- // };
61
- // try {
62
- // const response_1 = await fetch(`${response.pollUrl}`, requestOptions);
63
- // const result_1 = await response_1.text();
64
- // const resbody = `${result_1}`;
65
- // const start = resbody.indexOf('status=') + 'status='.length;
66
- // const end = resbody.indexOf('&', start);
67
- // const status = resbody.substring(start, end);
68
- // return status;
69
-
70
- // } catch (error) {
71
- // return console.log('error', error);
72
- // }
73
-
74
- // }
75
-
76
53
  async function getTransactionStatus(response){
77
54
 
78
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-pay",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Node Package To Simplify Express Payments Via Ecocash",
5
5
  "main": "express_pay.js",
6
6
  "bin": "express_pay.js",