Create Card
note
This component is not a part of the latest release yet. To use it, please contact your Unit representative.
Implementation
Web Components
Add the Create Card element to your app where you'd like it to be presented.
<unit-elements-create-card
customer-token=""
theme=""
language=""
card-types="physical,virtual"
hide-sidebar="false"
virtual-card-fee="1.5"
physical-card-fee="1.5"
></unit-elements-create-card>
Inputs:
Name | Type | Required | Description | |
---|---|---|---|---|
customer-token | string | Yes | A Unit Customer token. Required Scopes: accounts cards customer-token-write customers Required Upgradable Scopes: cards-write | |
account-id | string | No | Unit account id. The card will be created under this account. If no account is specified, a list of the customer’s accounts will be displayed. | |
theme | string | No | A URL that specifies the UI configuration. | |
language | string | No | A URL that specifies the language configuration. | |
hide-sidebar | boolean string ("true" / "false") | No | Hide the component sidebar in case value is 'true'. | |
card-types | string | No | A list of comma separated card types, will limit the creation to specific card types physical,virtual , physical or virtual . | |
virtual-card-fee | string ("1.5") | No | Fee charged for issuing a virtual card. Will be added to the deposit product card issuing fee and will be presented to the user. Requires bank approval. | |
physical-card-fee | string ("1.5") | No | Fee charged for issuing a physical card. Will be added to the deposit product card issuing fee and will be presented to the user. Requires bank approval. |
Events:
Event Name | Description | Detail |
---|---|---|
unitCardCreated | Occurs when the card is created | [Promise] Card |
unitOnLoad | Occurs when a component is loaded | CreateCardComponentResources |