#DaganChen

1 messages · Page 1 of 1 (latest)

open copperBOT
wheat niche
#

hello! yes, each endpoint you setup has a different webhook secret

#

if you setup two different Stripe webhook endpoints, they will each have their own unique webhook secret

primal hornet
#

yeah well aware

#

one is working

#

one is getting this error

wheat niche
#

are you using the correct secret for each webhook endpoint's application?

primal hornet
#

Route::post('/onStripePaymentIntent','WebHooks\WebHooksCTRL@stripeHook')->name('webhooks.stripeHook');
Route::post('/onStripePaymentIntentProdTest','WebHooks\WebHooksCTRL@stripeHookProdTest')->name('webhooks.stripeHookProdTest');

#

onStripePaymentIntent

#

that one is working

#

other one is on test

#

because I'm using test cards there

wheat niche
#

did you try logging the webhook secret during runtime to make sure the webhook secret is correct?

primal hornet
#

yep

#

I also see him on logs

#

#1 /var/www/html/vendor/stripe/stripe-php/lib/Webhook.php(29): Stripe\WebhookSignature::verifyHeader('{
"id": "evt_...', 't=1680519221,v1...', 'we_1MqXtHFrv2nk...', 300)

#

any ideas?

wheat niche
#

sorry, i don't understand what you mean by

#1 /var/www/html/vendor/stripe/stripe-php/lib/Webhook.php(29): Stripe\WebhookSignature::verifyHeader('{\
"id": "evt_...', 't=1680519221,v1...', 'we_1MqXtHFrv2nk...', 300)```
#

could you try rephrasing?

primal hornet
#

we_1MqXtHFrv2nk is correct

#

and another key with different we_ works

open copperBOT
livid swift
#

Hi @primal hornet I'm taking over

#

I've checked we_1MqXtHFrv2nk and it doesn't exist

primal hornet
#

we_1MqXtHFrv2nk53suZoYvtVDY

#

my bad

#

leave it

#

sorry

#

wrong secret