Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WebhookSignature::computeSignature( string $payload, string $secret )
Computes the signature for a given payload and secret.
Description Description
The current scheme used by Stripe ("v1") is HMAC/SHA-256.
Parameters Parameters
- $payload
-
(Required) the payload to sign
- $secret
-
(Required) the secret used to generate the signature
Return Return
(string) the signature as a string
Source Source
File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/WebhookSignature.php