File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 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```
You can’t perform that action at this time.
0 commit comments