PHP code example of cboxdk / laravel-webhook-signature
1. Go to this page and download the library: Download cboxdk/laravel-webhook-signature library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cboxdk / laravel-webhook-signature example snippets
$webhook = VerifiedWebhook::fromRequestOrFail($request);
$webhook->json(); // the payload that was actually signed
$webhook->idempotencyKey(); // the provider's event id
$webhook->secretId; // which secret verified — watch this during a rotation