cashfree-pg 3.1.3 → 3.2.0

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
@@ -62,6 +62,37 @@ Cashfree.PGFetchOrder("2022-09-01", "<order_id>").then((response) => {
62
62
  });
63
63
  ```
64
64
 
65
+ Validate Webhook
66
+ ```javascript
67
+ app.post('/webhook', function (req, res) {
68
+ try {
69
+ Cashfree.PGVerifyWebhookSignature(req.headers["x-webhook-signature"], req.rawBody, req.headers["x-webhook-timestamp"]))
70
+ } catch (err) {
71
+ console.log(err.message)
72
+ }
73
+ })
74
+ ```
75
+
76
+ ## Supported Resources
77
+
78
+ - [Order](docs/Orders.md)
79
+
80
+ - [Payment](docs/Payments.md)
81
+
82
+ - [Refund](docs/Refunds.md)
83
+
84
+ - [Token Vault](docs/TokenVault.md)
85
+
86
+ - [Eligiblity](docs/Eligibility.md)
87
+
88
+ - [PaymentLink](docs/PaymentLink.md)
89
+
90
+ - [Settlements](docs/Settlements.md)
91
+
92
+ - [Offers](docs/Offers.md)
93
+
94
+ - [Reconciliation](docs/Reconciliation.md)
95
+
65
96
  ## Licence
66
97
 
67
98
  Apache Licensed. See [LICENSE.md](LICENSE.md) for more details