Stripe Webhooks return 302 on laravel application, using spatie webhook

强颜欢笑 提交于 2019-12-13 03:48:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!