BankIDOrderManager
class BankIDOrderManager
Manages BankID orders.
Traits
Methods
Constructor for BankIDOrderManager.
Get registered order case data by configuration hash.
Start a sign order.
Process the start of an order.
Get the status of an order.
Build the QR code data for the JS client.
Build the app link for the JS client.
Fetch and parse collect data from BankID.
Persists completion data in session and returns client data.
Cancel an order.
Get the user id from the order.
Get the order done temp data from the order.
Get configuration hash for an order.
Details
at line 28
__construct(BankIDClientInterface $bankID, BankIDSession $bankIDSession, RequestStack $requestStack, TimeInterface $time, TranslationInterface $translation, BankIDMessageResolverInterface $messageResolver)
Constructor for BankIDOrderManager.
at line 54
string
registerOrderCaseData(BankIDCaseData $case)
Register a potential new bankid case.
If the configuration hash returned from this method is provided when calling startOrder(), an order will be started with the provided case data.
at line 69
BankIDCaseData|null
getOrderCaseData(string $configuration_hash)
Get registered order case data by configuration hash.
at line 87
BankIDOrderStatus
startOrder(string|null $configuration_hash = NULL)
Start a sign order.
at line 125
protected BankIDOrderStatus
processOrderStart(BankIDResponse $result, string $configuration_hash, OrderOperation $operation)
Process the start of an order.
at line 161
BankIDOrderStatus
getOrderStatus(string $order_ref)
Get the status of an order.
at line 208
protected string
buildQRData(string $order_ref, int $time)
Build the QR code data for the JS client.
at line 228
protected string
buildAppLink(string $order_ref)
Build the app link for the JS client.
at line 246
protected BankIDOrderStatus
fetchCollect(string $order_ref)
Fetch and parse collect data from BankID.
at line 324
protected array|null
persistOrderDoneData(string $order_ref, BankIDOrderDoneData|null $order_done_data)
Persists completion data in session and returns client data.
at line 356
BankIDOrderStatus
cancelOrder(string $order_ref)
Cancel an order.
at line 388
string|null
getOrderUserId(string $order_ref)
Get the user id from the order.
at line 402
array|null
getOrderDoneTempData(string $order_ref)
Get the order done temp data from the order.
at line 416
string|null
getOrderConfigurationHash(string $order_ref)
Get configuration hash for an order.
at line 429
string|null
getMessage(BankIDResponse $response)
Get a message from bankid response.