getStripeAccountById($stripeAccountId); if ($stripeStatementDescriptorText === $stripeAccount->statementDescriptor) { return true; } $newStripeAccount = AccountDetail::fromArray( array_merge( $stripeAccount->toArray(), ['statement_descriptor' => $stripeStatementDescriptorText] ) ); return $settingRepository->updateStripeAccount($newStripeAccount); } }