Card Widget

The Card Widget provides embeddable html that shows Payment Card Industry Data Security Standard (PCI DSS) data in end user applications.

Overview

The card widget allows you to embed a widget using a URL hosted by Nium. The widget enables you to securely embed and display sensitive card data in your mobile application or web page. To support this feature, a new API has been introduced called Get Card Details Widget API. Customers who don't follow the Payment Card Industry Data Security Standard (PCI DSS) need to integrate with this API to get the PCI DSS card details. This API is secured by JWT token authentication which is encrypted by AES RSA encryption algorithm.

Summary

  • This widget can be used by invoking Show Card Details API by passing the Customer Hash Id, Client Hash Id, Wallet Hash Id and Card Hash Id
  • Nium will respond with a widget URL, along with a JWT token
  • The URL plus token should only be valid for 10 minutes and then expire.
  • The widget will be shown on a URL hosted by Nium
  • The card details are written dynamically on the image, are not editable nor can be copied.
  • The widget URL is secured and NIUM wraps the data in a JWT token which is encrypted by AES RSA encryption algorithm
  • For each plastic ID only one artwork is applicable for the widget display

Steps to integrate a card widget:

1. Get a card widget URL.

The Get Card Details Widget API lets you get a card widget URL.

📌

IMPORTANT

The widget URL along with the token are only valid for 10 minutes before expiry.

{ 
  "widgetURL":"https://ipppreprod.partners.instarem.com/preprod/cards/widget/cardDetails?token=eyJhbGciOiJIUzI1NiJ9$eyJlbmNyeXB0ZWRQYXlsb2FkIjoic2JQRmk2UDk5Q3FraS8vRERianFaWCtub3pnNUZsaUs3NTZJQ3MzMnlMRld2S1lkTFhSZTF1dVJHMnBuWVMrd1NIM3VUTmR3RmNTaDdxRTlzS21LRG5HQkpUWmFBQVpud1gwNVN3b1VNakFGeXNMUjkvQ0h6blN0NCtuUVJzbVJJem5qZTJOaDVkTmFGRzZqeEVlVEtFbmRkTDRpeWI3MU1NZC9lRGt6cGlFRm9vNVN5SGZxdjgyQ2hQQm52UEtqVkhKOHB6cWViNTM1WHMwY1dJRGxsbDZPRWNwODBkNkNBbVV1Q3cwTit3Vzl6RWdORnA1Wm1ad0dXWDVhelNGTlVDaEhDRnhFS1Z2bWxWb09hL3dhc3c1YnNXcjg3OThYYzVuTmNXUEZOdzhRe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IsImVuY3J5cHRlZEFlc0l2UnNhIjoiUW9RV1FTT3B5Z0xBK2V2WWNvK1hocGVFVW5iUmtJaGo1YWJJM0x1WXpTZkhhNU9SNWR4R0dUN2J3WXhhU0ltSU4vWkpaeEQ2cmZucy9rMHRmWkJGR1lXSU5ib0lwczdGUGxoSTZvWmNiSHFxWTFoOTJJcWxCa3lvUVRKd25wM3ZmWjRNZ3NIVDNsYUQ3bkV3aTNwNCtnWGs3UXJpU2R6cUZudHh0b00vN3BrRmlZckZDUXQzQUhJNHpzU3VsL251S2RXM0J5b0k4bmp2RXdBb1JxSHpYVlB3Sm03VkVoRXc0ZWpxR2lya1JycXU3NVhWZnlCUjJSb0ZVcXlsVzVoTERQNUFqYXRCYmtHY1BSRkdmTUM0bmM2cGtjUVZ2OXRlM3ZYZ1FOMHZ4Wi9FS1Vxb1RHdkRoR0xVdUFYWUh2eFRuNEdRdWpPQnNJZEM5QnVHUTA2RFNON2NtLzdUYXpTN2t3ZHJPK3pMdlExZkhuN3hGKzBGNG1jRk1TOVZkNnpIWGF1WXNBay9MRFJoNC9GNW1ZdzNtNlhveFQyZW50UWNORmcwMmZhT0g5aHcwZnVNU2pSSVA1YXowV2R2V0VYKzVFazNlbERzS0FrcVgreS9pSFkwVUZYTE52ejcyenAvemJ3cy9RWUVTV1BqOHhIbnVtc1JFcndabTlReUdMZnFhVXFiT0dBV2s1VERzVFdKZzdNV2JTWkVqazZWN09PQUZMeUtWN2pOTHZBTktnLytxYkc4dmlhZE9qckRNblNUN3R3NFlXMW8zRDh2bHYxbWppeTBqMCtSQy9JcXV0Nk9XWjROMHFKeHNLSEJjeTlISURKRzZtd2VpeGQzaVlSUGM5UkpYand5bm81aHM1TWRXMkg4M0ZISEpabGdveFhQT2dwR2QreDJHUGM9In0$pEqF4g6d_UlPE0tRFQAIVBsLDxwBgxn9_vLb4UaC2Z8"
}

2. Add your widget URL to the client’s page.

Use the retrieved card widget URL from Step 1 and use it as input for src=widgetUrl. You can use an HTML iFrame tag on your page to add your image details. You can set the height and width of the iFrame tag depending on your page view.

<iframe   
  src="<Use the response data from Step 1.>"  
  style="width: 550px; height: 300px;">
</iframe>

If you don't have Cascade Style Sheets set up in Step 1, then your default widget looks like the below image.

Default Display with no Artwork

Default Display with no Artwork

3. Upload the background image

To provide your own artwork to display as background of this widget please contact your NIUM representative.

Specification for artwork template to be provided to NIUM

  1. Max file size should not be greater than 1 MB.
  2. The pixel size of the image should be 999px width and 630px height at 144dpi.
  3. Allowed image extensions are png, jpg and jpeg
  4. Font Color - Only White Color font supported
  5. You can use the top 210px and bottom 210px space to provide your custom design background images
Template for Artwork (Image Format only)

Template for Artwork (Image Format only)

Sample widget display with Nium branding

Sample widget Display

Sample widget Display