Skip to content

Commit 23dba7f

Browse files
committed
Update README
1 parent 827b777 commit 23dba7f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

tools/hmac/README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
## HMAC Tools
22

3-
Use HMACValidator to calculate the HMAC signature of a payload (i.e. troubleshooting of the HMAC signature calculation)
3+
This folder contains PHP scripts to calculate the HMAC signature of the webhook payload.
4+
They can be used to troubleshoot the HMAC signature calculation.
45

6+
### Payments webhooks
57

6-
Run with: `php tools/hmac/HMACValidator.php {hmacKey} {path to JSON file}
8+
Copy the content of the webhook in the payload.json (or provide a different file), then run with:
9+
`php tools/hmac/HMACValidatorPayments.php {hmacKey} {path to JSON file}
710
```
8-
php tools/hmac/HMACValidator.php 11223344D785FBAE710E7F943F307971BB61B21281C98C9129B3D4018A57B2EB tools/hmac/payload.json
11+
php tools/hmac/HMACValidatorPayments.php 11223344D785FBAE710E7F943F307971BB61B21281C98C9129B3D4018A57B2EB tools/hmac/payload.json
12+
```
13+
14+
### Banking webhooks
15+
16+
Copy the content of the webhook in the payload2.json (or provide a different file), then run with:
17+
`php tools/hmac/HMACValidatorBanking.php {hmacKey} {path to JSON file}
18+
```
19+
php tools/hmac/HMACValidatorBanking.php 11223344D785FBAE710E7F943F307971BB61B21281C98C9129B3D4018A57B2EB tools/hmac/payload2.json
920
```

0 commit comments

Comments
 (0)