Skip to content

Commit

Permalink
Merge pull request #37 from cashfree/feature/documentation-3.1.3
Browse files Browse the repository at this point in the history
Feature/documentation 3.1.3
  • Loading branch information
suhas-cashfree authored Jan 12, 2024
2 parents 6e5e198 + c13d483 commit fa7a1a7
Show file tree
Hide file tree
Showing 7 changed files with 1,738 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,31 @@ Cashfree.PGFetchOrder("2022-09-01", "<order_id>").then((response) => {
});
```

Validate Webhook
```javascript
app.post('/webhook', function (req, res) {
try {
Cashfree.PGVerifyWebhookSignature(req.headers["x-webhook-signature"], req.rawBody, req.headers["x-webhook-timestamp"]))
} catch (err) {
console.log(err.message)
}
})
```

## Supported Resources

- [Order](docs/Orders.md)

- [Payment](docs/Payments.md)

- [Refund](docs/Refunds.md)

- [Token Vault](docs/TokenVault.md)

- [Eligiblity](docs/Eligibility.md)

- [PaymentLink](docs/PaymentLink.md)

## Licence

Apache Licensed. See [LICENSE.md](LICENSE.md) for more details
Loading

0 comments on commit fa7a1a7

Please sign in to comment.