From 2ac07d243f10d45215681648c8d2bc9ad3b3e734 Mon Sep 17 00:00:00 2001 From: ROBERT MCDOWELL <2649072+ROBERT-MCDOWELL@users.noreply.github.com> Date: Sat, 14 May 2022 05:32:37 -0700 Subject: [PATCH 1/3] Create verify-signature.php --- verify-webhook-signature/verify-signature.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 verify-webhook-signature/verify-signature.php diff --git a/verify-webhook-signature/verify-signature.php b/verify-webhook-signature/verify-signature.php new file mode 100644 index 0000000..c803e9c --- /dev/null +++ b/verify-webhook-signature/verify-signature.php @@ -0,0 +1,28 @@ + From e15d688399b42349c177315d731e8cdf98c09a45 Mon Sep 17 00:00:00 2001 From: ROBERT MCDOWELL <2649072+ROBERT-MCDOWELL@users.noreply.github.com> Date: Sat, 14 May 2022 05:34:19 -0700 Subject: [PATCH 2/3] Update README.md Added PHP script example (compatible with php4/5/7/8) --- verify-webhook-signature/README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/verify-webhook-signature/README.md b/verify-webhook-signature/README.md index 3884af7..4232463 100644 --- a/verify-webhook-signature/README.md +++ b/verify-webhook-signature/README.md @@ -26,5 +26,13 @@ Source code: [verify-signature.js](https://github.com/transferwise/digital-signa $ node verify-signature.js ``` +### PHP implementation + +Source code: [verify-signature.js](https://github.com/transferwise/digital-signatures-examples/blob/main/verify-webhook-signature/verify-signature.php) + +```bash +$ php verify-signature.php +``` + ### API Documentation -- [Wise API: Webhooks](https://api-docs.wise.com/#webhook-events-event-http-requests) \ No newline at end of file +- [Wise API: Webhooks](https://api-docs.wise.com/#webhook-events-event-http-requests) From 2c4a29d643c1526b8178897596f78e4405e599ab Mon Sep 17 00:00:00 2001 From: ROBERT MCDOWELL <2649072+ROBERT-MCDOWELL@users.noreply.github.com> Date: Sun, 15 May 2022 06:01:33 -0700 Subject: [PATCH 3/3] fix link name --- verify-webhook-signature/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verify-webhook-signature/README.md b/verify-webhook-signature/README.md index 4232463..45c5ecc 100644 --- a/verify-webhook-signature/README.md +++ b/verify-webhook-signature/README.md @@ -28,7 +28,7 @@ $ node verify-signature.js ### PHP implementation -Source code: [verify-signature.js](https://github.com/transferwise/digital-signatures-examples/blob/main/verify-webhook-signature/verify-signature.php) +Source code: [verify-signature.php](https://github.com/transferwise/digital-signatures-examples/blob/main/verify-webhook-signature/verify-signature.php) ```bash $ php verify-signature.php