This element allows signing and identification using BankID services.
In ‘BankID.json’ file located in XT /bin/config folder you can:
Here is the list of BankID element attributes
Attribute | Description | Default | Example |
---|---|---|---|
id | The elements id. It will be used to access internal fields of the component | "id":"mybankid" | |
type | Element’s type must be “bankid” | "type":"bankid" | |
action | The action to run when signing/identification is succesfull. Response fields (completionData) from BankID service may be used as parameters inside the action. | <action> | |
mode | Authorization or signing: auth / sign | “sign” | "sign":"auth" |
Set ‘userData’ field with text that will be shown to the user, example:
"mybankid.userData": "'Your transaction\\nDocument: ' + document + '\\nInvoice: ' + invoice + '\\nCustomer: ' + customer"
The fields from succesful signing are accessed using the ‘completionData’ field: "mybankid.completionData.<field-name>"
The completion data field has the following fields (see BankID documentation for more info and latest list) :
Example
{ "id": "mybankid", "type": "bankid", "action": {
"method": "onSignMethod.sign",
"params": {
"customer": "mybankid.completionData.user"
}
}}