abstract class BankIDCasePluginBase extends PluginBase implements BankIDCaseInterface

Base class for bank_id_case plugins.

Properties

protected array $private

The private data.

Methods

string
label()

Returns the translated plugin label.

void
setPrivateData(array $private_data)

Set the private data.

array
getRequirements()

Get the requirements for the order.

string
getHiddenData()

Get the hidden data for the order.

string
getVisibleData()

Get the visible data for the order.

string
getVisibleDataFormat()

Get the visible data format for the order.

orderCompleted(array $response)

Called when the authentication is complete.

orderCancelled(array $response, string $order_ref)

Called when the order is cancelled.

orderFailed(array $response)

Called when the order fails.

Details

at line 23
string label()

Returns the translated plugin label.

Return Value

string

at line 31
void setPrivateData(array $private_data)

Set the private data.

Parameters

array $private_data

The private data.

Return Value

void

at line 38
array getRequirements()

Get the requirements for the order.

Return Value

array

An array of requirements for the order.

at line 45
string getHiddenData()

Get the hidden data for the order.

Return Value

string

The hidden data for the order.

at line 52
string getVisibleData()

Get the visible data for the order.

Return Value

string

The visible data for the order.

at line 59
string getVisibleDataFormat()

Get the visible data format for the order.

Return Value

string

The visible data format for the order, 'plaintext' or 'simpleMarkdown'.

at line 66
abstract BankIDOrderDoneData orderCompleted(array $response)

Called when the authentication is complete.

This method can be responsible, for example, for creating a user account or logging in an existing user based on the response from the BankID service.

Parameters

array $response

The authentication complete response from BankID.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.

at line 71
BankIDOrderDoneData orderCancelled(array $response, string $order_ref)

Called when the order is cancelled.

Parameters

array $response

The response from the BankID service.

string $order_ref

The order reference.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.

at line 78
BankIDOrderDoneData orderFailed(array $response)

Called when the order fails.

Parameters

array $response

The response from the BankID service.

Return Value

BankIDOrderDoneData

Data that will be sent to the client for further steps, such as userid of authenticated user, or any other relevant information.