class BankIDRfaResolver

Resolves BankID Relying Party (RFA) short codes from response state.

Methods

string|null
resolve(BankIDResponse $response)

Resolves the RFA short code from a BankID response.

string|null
resolveFromStatus(string $status, string|null $hint_code = NULL, string|null $error_code = NULL)

Resolves the RFA short code from status, hint code, and error code.

Details

at line 23
string|null resolve(BankIDResponse $response)

Resolves the RFA short code from a BankID response.

Parameters

BankIDResponse $response

The BankID response.

Return Value

string|null

The RFA code, or NULL if none matched.

at line 44
string|null resolveFromStatus(string $status, string|null $hint_code = NULL, string|null $error_code = NULL)

Resolves the RFA short code from status, hint code, and error code.

Parameters

string $status

The response status (e.g. pending, failed, complete).

string|null $hint_code

The BankID hint code if present.

string|null $error_code

The BankID error code if present.

Return Value

string|null

The RFA code, or NULL if none matched.