我正在使用Laravel 5.4
和Laravel Cashier
。我希望能够Stripe
在我的localhost:8888
为此,我安装ultrahook
并像这样启动它
超钩
http://stripe.leococo.ultrahook.com -> http://localhost:8888/stripe/webhook
Laravel 路线
Route::post('stripe/webhook', '\Laravel\Cashier\Http\Controllers\WebhookController@handleWebhook');
条纹 Webhook 配置
http://stripe.leococo.ultrahook.com
问题
当我发送webhook
来自Stripe
我得到Test webhook sent successfully
在终端ultrahook
我得到这个
[2017-05-31 19:26:04] POST http://localhost:8888/stripe/webhook - 200
但似乎该handleWebhook
功能没有被触发。它也不会停在断点上die('test')
我试过了php artisan route:clear
php artisan config:clear
。我不知道这是否正常,但我network
在 Chrome Inspector 的部分中看不到任何内容