class BankIDController extends ControllerBase

BankID controller.

Methods

__construct(BankIDOrderManager $orderManager, RequestStack $requestStack, BankIDManager $bankIDManager)

No description

static 
create(ContainerInterface $container)

{@inheritdoc}

JsonResponse
start()

Initiates an order.

JsonResponse
status(string $orderRef)

Collects the result of a sign or auth order using orderRef as reference.

JsonResponse
cancel(string $orderRef)

Cancels an ongoing order per the users request.

AjaxResponse|array
openDialog(string|null $configuration_hash = NULL, string $nojs = 'nojs')

Opens a dialog for Mobile BankID.

Details

at line 19
__construct(BankIDOrderManager $orderManager, RequestStack $requestStack, BankIDManager $bankIDManager)

No description

Parameters

BankIDOrderManager $orderManager
RequestStack $requestStack
BankIDManager $bankIDManager

at line 28
static create(ContainerInterface $container)

{@inheritdoc}

Parameters

ContainerInterface $container

at line 42
JsonResponse start()

Initiates an order.

Return Value

JsonResponse

The JSON response.

at line 57
JsonResponse status(string $orderRef)

Collects the result of a sign or auth order using orderRef as reference.

Parameters

string $orderRef

The order reference.

Return Value

JsonResponse

The JSON response.

at line 71
JsonResponse cancel(string $orderRef)

Cancels an ongoing order per the users request.

Parameters

string $orderRef

The order reference.

Return Value

JsonResponse

The JSON response.

at line 88
AjaxResponse|array openDialog(string|null $configuration_hash = NULL, string $nojs = 'nojs')

Opens a dialog for Mobile BankID.

Parameters

string|null $configuration_hash

The configuration hash is used to build the dialog. Defaults to NULL.

string $nojs

A flag to indicate if JavaScript is disabled. Defaults to 'nojs'.

Return Value

AjaxResponse|array

An Ajax response to open the modal dialog or an array with a markup message if JavaScript is disabled.