Skip to content

Cancel Subscription - Webhook event handleCustomerSubscriptionUpdated log errorΒ #1751

@MilanUnjiya4149

Description

@MilanUnjiya4149

Cashier Stripe Version

15.6.3

Laravel Version

10.17.1

PHP Version

8.2.4

Database Driver & Version

No response

Description

Hi,

I noticed that Stripe logs an Error when canceling a Subscription.

would be great if Cashier cancel() method could handle this case.

API versions 2025-03-31.basil

Steps To Reproduce

$tenant = Tenant::findOrFail($tenantId);
$tenant->subscription('default')->cancel();

log:
local.ERROR: Undefined array key "current_period_end" {"exception":"[object] (ErrorException(code: 0): Undefined array key "current_period_end" at root\vendor\laravel\cashier\src\Http\Controllers\WebhookController.php:171)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions