#anndonnelly

1 messages · Page 1 of 1 (latest)

pearl ledgeBOT
craggy maple
vernal gull
#

I have

#

my current error message

#

Stripe\Exception\SignatureVerificationException: No signatures found matching the expected signature for payload in file /var/app/current/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php on line 28

craggy maple
#

And this is getting thrown by which function?

vernal gull
craggy maple
#

Why would you think the signature header is in your environment? It's a value we pass in the HTTP headers array

#

For instance, our PHP webhook quickstart uses the following approach:

if ($endpoint_secret) {
  // Only verify the event if there is an endpoint secret defined
  // Otherwise use the basic decoded event
  $sig_header = $_SERVER['HTTP_STRIPE_SIGNATURE'];
vernal gull
#

Current error

#

Stripe\Exception\SignatureVerificationException: Unable to extract timestamp and signatures from header in file /var/app/current/vendor/stripe/stripe-php/lib/Exception/SignatureVerificationException.php on line 28

vernal gull
#
        $sig = $request->header('HTTP_STRIPE_SIGNATURE');
        return response()->json($this->webhook($request->all(), $sig));
    }```
craggy maple
#

Okay I can't really just debug these line by line.

vernal gull
#

Do you have an example signature

craggy maple
vernal gull
#

This is where I did start but $_SERVER will not work with laravel

#

Is there a laravel example?

craggy maple