Skip to main content

Carousel

The carousel screen is a general purpose starting screen. The function of the carousel is to display supported brands and as a call to action for the cardholder to start interacting with the terminal.

It has the option to display up to two buttons of which the second button can be selected to display a globe icon as a language selection button.

note

It is the responsibility of the application to respond to the language button press and to display a selection screen type with the language options.

Screen Type Id : carousel

Properties

KeyTypeDescription
titleutf-8 stringThe primary title field on the screen. The field wraps when text overflows the width.
subtitleutf-8 stringThe subtitle field on the screen. The field wraps when text overflows the width.
backgroundascii stringThe name of an asset that should be displayed as a background. The asset must be a 320 x 480 px png file.
cards.<name>emptyAdding a property with prefix cards results in a card being added
cards.<name>.logoenumThe logo to be displayed on the card:
mastercard, visa, maestro, vpay, amex, or discover
cards.<name>.cardholder utf-8 stringThe card holder name to be displayed on the card
buttons.<name>emptyAdding a property with prefix buttons results in a button being added. The first button in the dictionary is the left button and the second the right.
buttons.<name>.labelutf-8 stringThe label text on the button.
buttons.<name>.transpbooleanSet to true to make the button transparent.
buttons.<name>.languagebooleanIf set to true the button will be formatted with a globe icon that can be used as a language selection button.

Examples

curl -X 'POST' ${CPS_UI_URL} \
-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "test",
"type": "carousel",
"properties": {
"title": "Welcome",
"subtitle": "Press start",
"cards.0": "",
"cards.0.logo": "mastercard",
"cards.0.cardholder": "Mastercard",
"cards.1": "",
"cards.1.logo": "visa",
"cards.1.cardholder": "Visa",
"cards.3": "",
"cards.3.logo": "amex",
"cards.3.cardholder": "AMEX",
"buttons.start": "",
"buttons.start.label": "Start",
"buttons.lang": "",
"buttons.lang.language": "true"
}
}'
Example