BankIDResponseFactoryInterface
interface BankIDResponseFactoryInterface
Interface for BankID response factories.
Methods
Creates a BankIDResponse from a successful HTTP start response.
Creates a BankIDResponse from a successful HTTP collect response.
Creates a BankIDResponse from a successful HTTP cancel response.
Throws a BankIDRequestException from a caught throwable or API error.
Throws a BankIDRequestException when the client cannot be configured.
Details
at line 27
BankIDResponse
fromStartResponse(ResponseInterface $response)
Creates a BankIDResponse from a successful HTTP start response.
at line 41
BankIDResponse
fromCollectResponse(ResponseInterface $response)
Creates a BankIDResponse from a successful HTTP collect response.
at line 54
BankIDResponse
fromCancelResponse(ResponseInterface $response, string $orderRef)
Creates a BankIDResponse from a successful HTTP cancel response.
at line 69
never
fromThrowable(Throwable $e, string|null $orderRef = NULL)
Throws a BankIDRequestException from a caught throwable or API error.
at line 82
never
fromClientConfigurationError(string $message = 'BankID client could not be configured. Please verify key settings.')
Throws a BankIDRequestException when the client cannot be configured.