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


Top ↑

Return Return

(string) the signature as a string


Top ↑

Source Source

File: includes/gateways/stripe/vendor/stripe/stripe-php/lib/WebhookSignature.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.