cashfree-pg 5.0.3 → 5.0.8-node

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.
@@ -8,20 +8,21 @@ on:
8
8
 
9
9
  jobs:
10
10
  build:
11
-
12
11
  runs-on: ubuntu-latest
12
+ env:
13
+ XCLIENTIDSANDBOX: ${{ secrets.XCLIENTIDSANDBOX }}
14
+ XCLIENTSECRETSANDBOX: ${{ secrets.XCLIENTSECRETSANDBOX }}
13
15
 
14
16
  steps:
15
17
  - uses: actions/checkout@v4
18
+
16
19
  - name: Use Node.js
17
20
  uses: actions/setup-node@v3
18
21
  with:
19
22
  node-version: '21.x'
23
+
20
24
  - name: Install dependencies
21
- run: npm install && npm install coveralls --save-dev
25
+ run: npm install
26
+
22
27
  - name: Run Tests
23
- run: CLIENT_ID=$PG_CLIENT_ID SECRET_KEY=$PG_CLIENT_SECRET npm test && cd coverage && ls && cd .. && cat coverage/lcov.info | npx coveralls
24
- env:
25
- PG_CLIENT_ID: ${{ secrets.XCLIENTIDSANDBOX }}
26
- PG_CLIENT_SECRET: ${{ secrets.XCLIENTSECRETSANDBOX }}
27
- COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
28
+ run: npm test
package/README.md CHANGED
@@ -109,7 +109,7 @@ Validate Webhook
109
109
  ```javascript
110
110
  app.post('/webhook', function (req, res) {
111
111
  try {
112
- Cashfree.PGVerifyWebhookSignature(req.headers["x-webhook-signature"], req.rawBody, req.headers["x-webhook-timestamp"]))
112
+ Cashfree.PGVerifyWebhookSignature(req.headers["x-webhook-signature"], req.rawBody, req.headers["x-webhook-timestamp"]);
113
113
  } catch (err) {
114
114
  console.log(err.message)
115
115
  }