Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dusted's avatar

Stripe webhook

I'm using laravel 5.1 and Cashier 5.0. i'm trying to test stripe webhook but im getting the following error when i try to pass test payload.

        $this->post('stripe/webhook',[
            "id" => "evt_00000000000000",
            "type" => "customer.subscription.deleted",
            "data" => [
                "object" => [
                    "customer" => $user1->stripe_id
                ]
            ]
        ]);

[2017-06-02 10:50:27] testing.ERROR: Undefined index: id [2017-06-02 10:50:27] testing.ERROR: ErrorException: Undefined index: id in /home/vagrant/server/vendor/laravel/cashier/src/Laravel/Cashier/WebhookController.php:24

But when i hit url from postman i dont have any issues

0 likes
0 replies

Please or to participate in this conversation.