问题
I am attempting to set up stripes webhooks in my laravel application. I have pulled in spatie's webhook package to help out, link below.
https://github.com/spatie/laravel-stripe-webhooks
My endpoint on stripe looks like
https://myapp.ca/stripe/webhook
Dev
my routes
Route::stripeWebhooks('stripe/webhook');
I have included the key in webhook config,
and included in the verifyCsrfToken
'stripe/*',
When I send a test I get
<!DOCTYPE html> <html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="0;url=https://myapp.ca/login" />
<title>Redirecting to https://myapp.ca/login</title>
</head>
<body>
Redirecting to <a href="https://myapp.ca/login">https://myapp.ca/login</a>.
</body>
Thank you for your help.
来源:https://stackoverflow.com/questions/53213735/stripe-webhooks-return-302-on-laravel-application-using-spatie-webhook