diff --git a/backend/app/Services/Domain/Payment/Stripe/StripeAccountSyncService.php b/backend/app/Services/Domain/Payment/Stripe/StripeAccountSyncService.php index 651f9f679..a8fbcb6c6 100644 --- a/backend/app/Services/Domain/Payment/Stripe/StripeAccountSyncService.php +++ b/backend/app/Services/Domain/Payment/Stripe/StripeAccountSyncService.php @@ -112,7 +112,11 @@ private function buildAccountDetails(Account $stripeAccount): string 'charges_enabled' => $stripeAccount->charges_enabled, 'payouts_enabled' => $stripeAccount->payouts_enabled, 'country' => $stripeAccount->country, - 'capabilities' => $stripeAccount->capabilities?->toArray(), + 'capabilities' => is_array($stripeAccount->capabilities) + ? $stripeAccount->capabilities + : ($stripeAccount->capabilities && method_exists($stripeAccount->capabilities, 'toArray') + ? $stripeAccount->capabilities->toArray() + : null), 'type' => $stripeAccount->type, 'business_type' => $stripeAccount->business_type, 'requirements' => [