The \SumUp\Services\Authorization service is responsible for getting a valid access token.
$authService = new \SumUp\Services\Authorization(
\SumUp\HttpClients\SumUpHttpClientInterface $client,
\SumUp\Application\ApplicationConfiguration $configuration
);
public function getToken(): \SumUp\Authentication\AccessToken
Returns a \SumUp\Authentication\AccessToken according to the initial configuration or throws an exception.
public function getTokenByCode(): \SumUp\Authentication\AccessToken
Returns a \SumUp\Authentication\AccessToken according to the initial configuration or throws an exception.
public function getTokenByClientCredentials(): \SumUp\Authentication\AccessToken
Returns a \SumUp\Authentication\AccessToken according to the initial configuration or throws an exception.
public function getTokenByPassword(): \SumUp\Authentication\AccessToken
Returns a \SumUp\Authentication\AccessToken according to the initial configuration or throws an exception.
public function refreshToken($refreshToken): \SumUp\Authentication\AccessToken
Returns a \SumUp\Authentication\AccessToken using the provided the refresh token or throws an exception.
How can I help you explore Laravel packages today?