The \SumUp\Services\Merchant service is responsible for managing data about merchants.
$merchantService = new \SumUp\Services\Merchant(
\SumUp\HttpClients\SumUpHttpClientInterface $client,
\SumUp\Authentication\AccessToken $accessToken
);
Returns information about the merchant's profile.
public function getProfile(): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Updates merchant's profile.
public function updateProfile(array $data): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Returns doing-business-as profile.
public function getDoingBusinessAs(): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
Updates doing-business-as profile.
public function updateDoingBusinessAs(array $data): \SumUp\HttpClients\Response
Returns a \SumUp\HttpClients\Response or throws an exception.
How can I help you explore Laravel packages today?