diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index e50a6f36..3df370ba 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -274,7 +274,7 @@ protected function handleInvoicePaymentActionRequired(array $payload) if ($user = $this->getUserByStripeId($payload['data']['object']['customer'])) { if (in_array(Notifiable::class, class_uses_recursive($user))) { - $payment = new Payment(Cashier::stripe()->paymentIntents->retrieve( + $payment = new Payment($user->stripe()->paymentIntents->retrieve( $payload['data']['object']['payment_intent'] ));