Requests to the SumUp's API need to have an access token sent with them to identify the application and the user. The \SumUp\Authentication\AccessToken entity represents an access token.
Every time you create an instance of \SumUp\SumUp you get an AccessToken that can be used to request other resources.
public function getValue(): string
Returns the actual value of the access token as a string.
public function getType(): string
Returns the type of authentication that the access token should be used for.
public function getExpiresIn(): int
Returns the total number of seconds the access token is valid for.
public function getScopes(): array
Returns the scopes for which the access token is valid.
public function getRefreshToken(): ?string
Returns the value of a refresh token if there is one provided.
How can I help you explore Laravel packages today?