diff --git a/app/PaymentDrivers/MolliePaymentDriver.php b/app/PaymentDrivers/MolliePaymentDriver.php index 7215a65df07e..e05fe4972924 100644 --- a/app/PaymentDrivers/MolliePaymentDriver.php +++ b/app/PaymentDrivers/MolliePaymentDriver.php @@ -312,7 +312,7 @@ class MolliePaymentDriver extends BaseDriver $client = $record->client; } else{ - $client = Client::withTrashed()->find($this->decodePrimaryKey($payment['metadata']->client_id)); + $client = Client::withTrashed()->find($this->decodePrimaryKey($payment->metadata->client_id)); } $message = [ diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index a1984fb7a2a0..56a09555d900 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -718,7 +718,7 @@ class SubscriptionService public function convertInvoiceToRecurring($client_id) :RecurringInvoice { - $client = Client::find($client_id); + $client = Client::withTrashed()->find($client_id); $subscription_repo = new SubscriptionRepository();