BankIDRequestData
class BankIDRequestData implements BankIDRequestDataInterface
Upstream API request value object.
Encapsulates the request payload sent to the BankID API (such as /auth or /sign), including user visible and non-visible data, end-user IP, and requirement parameters.
Traits
BankID request data trait.
Methods
Encode a string for a BankID payload.
Decode a string for a BankID payload.
Constructs a BankIDRequestData object.
Get the requirements for the order.
Get formatted requirements for api call.
Get the visible data for the order.
Get formatted visible data for api call.
Get the visible data format for the order.
Get the non-visible data for the order.
Get return risk flag.
Get the return url.
Get the end user IP.
Get the payload array for an authentication request.
Get the payload array for a sign request.
Get the payload array for a phone authentication request.
Get the payload array for a phone sign request.
Details
in
BankIDRequestDataTrait at line 23
protected string
encodePayloadData(array $data)
Encode payload data.
in
BankIDRequestDataTrait at line 37
protected array
decodePayloadData(string $str)
Decode payload data.
in
BankIDRequestDataTrait at line 53
protected string
encodePayloadString(string $str, bool $ensure_utf8 = TRUE)
Encode a string for a BankID payload.
in
BankIDRequestDataTrait at line 70
protected string
decodePayloadString(string $str)
Decode a string for a BankID payload.
at line 41
__construct(string|null $userVisibleData, array|string|null $userNonVisibleData = NULL, bool|null $returnRisk = NULL, string|null $returnUrl = NULL, BankIDRequestRequirements $requirements = new BankIDRequestRequirements(), string $userVisibleDataFormat = BankIDRequestDataInterface::USER_VISIBLE_DATA_FORMAT_PLAINTEXT, string|null $endUserIp = NULL)
Constructs a BankIDRequestData object.
at line 57
BankIDRequestRequirements
getRequirements()
Get the requirements for the order.
at line 67
array|null
getFormattedRequirements()
Get formatted requirements for api call.
at line 77
string|null
getUserVisibleData()
Get the visible data for the order.
at line 87
string|null
getFormattedUserVisibleData()
Get formatted visible data for api call.
at line 101
string|null
getUserVisibleDataFormat()
Get the visible data format for the order.
at line 114
string|null
getUserNonVisibleData()
Get the non-visible data for the order.
at line 132
bool|null
getReturnRisk()
Get return risk flag.
at line 142
string|null
getReturnUrl()
Get the return url.
at line 152
string
getEndUserIp()
Get the end user IP.
at line 170
array
getAuthenticatePayload()
Get the payload array for an authentication request.
at line 181
array
getSignPayload()
Get the payload array for a sign request.
at line 208
array
getPhoneAuthenticationPayload(string $call_initiator)
Get the payload array for a phone authentication request.
at line 222
array
getPhoneSignPayload(string $call_initiator)
Get the payload array for a phone sign request.