on-internet
← Community

Stripe signature verification exception error PHP

Stack Overflow ·

I’m trying to implement the Stripe payment intent payment method into my application. So far the payments go through but the webhook gives me the following exception error: Image of error Stripe\Exception\SignatureVerificationException No signatures found matching the expected signature for payload This is my code setup: public function handleWebhook(Request $request) { $sPayload = json_decode($request->getContent()); $sSignature = $request->header('Stripe-Signature'); $sWebhookSecret = env('STRIPE_WEBHOOK_SECRET'); $oPaymentIntentResponse = Webhook::constructEvent( json_encode($sPayload), $sS

Comments

Sign in or sign up to comment and upvote.

No comments yet.