如何使Laravel处理正确处理的Customer Subscription Deleted事件??

时间:2019-05-07 11:47:16

标签: laravel laravel-cashier

namespace App\Http\Controllers;

use Laravel\Cashier\Http\Controllers\WebhookController as CashierController;

class WebhookController extends CashierController
{
    /**
     * Handle invoice payment succeeded.
     *
     * @param  array  $payload
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function handleCustomerSubscriptionDeleted(array $payload)
    {
        echo "hello";exit;
        // Handle The Event
    }
}

//路线-也跳过了验证csrf

Route::post('stripe/webhook', '\Laravel\Cashier\Http\Controllers\WebhookController@handleWebhook');

测试Webhook已成功触发,但响应为空。laravel-cash

0 个答案:

没有答案