BankIDMockClient
class BankIDMockClient implements BankIDClientInterface
Provides mock BankID responses for testing and development.
Properties
| protected PrivateTempStore | $mockStore | Store for storing mock responses. |
Methods
Constructor for BankIDMockService.
Authenticate a user using animated QR code.
Collect an ongoing user request.
Cancel an ongoing order per the users request.
Sets the user to be returned when the mock order completes.
Gets the mock completion user from the store.
Deletes the mock completion user from the store.
Sets the outcome for the next collect call.
Gets the outcome for the collect call.
Deletes the collect outcome from the store.
Authenticate a user over phone.
Request a signing order for a user over the phone.
Details
at line 30
__construct(PrivateTempStoreFactory $tempStoreFactory)
Constructor for BankIDMockService.
at line 39
BankIDResponse
start(OrderOperation $operation, BankIDRequestDataInterface $requestData)
Authenticate a user using animated QR code.
at line 62
BankIDResponse
collect(OrderOperation $operation, string $order_reference)
Collect an ongoing user request.
at line 132
BankIDResponse
cancel(OrderOperation $operation, string $order_reference)
Cancel an ongoing order per the users request.
at line 153
void
setMockCompletionUser(string $personalNumber, string $givenName, string $surname)
Sets the user to be returned when the mock order completes.
at line 169
protected array|null
getMockCompletionUser()
Gets the mock completion user from the store.
at line 178
protected void
deleteMockCompletionUser()
Deletes the mock completion user from the store.
at line 190
void
setCollectOutcome(string $outcome)
Sets the outcome for the next collect call.
at line 200
protected string
getCollectOutcome()
Gets the outcome for the collect call.
at line 207
protected void
deleteCollectOutcome()
Deletes the collect outcome from the store.
at line 214
BankIDResponse
phoneAuth(string $call_initiator, BankIDRequestDataInterface $requestData)
Authenticate a user over phone.
at line 225
BankIDResponse
phoneSign(string $call_initiator, BankIDRequestDataInterface $requestData)
Request a signing order for a user over the phone.