GPI provides a wide set of primitives. Some of them have to be integrated from the payment application.
Primitives
Miscellaneous
Primitives | Module | Comments |
---|---|---|
User Interface | UI primitives are limited to a few set of functions. EMV processing doesn’t require sophisticated displays. However, a minimum set of functions is required to provide a feedback to the cardholder and the merchants. Most of them are not used during transaction flow excepted:
Depending on the platform, these two primitives should be managed specifically if they alter the performance. | |
gpiDisplayMessage | SPED | Display any string |
gpiDisplayMessageByID | SPED | Display a string from the string table indexed by ID |
gpiBeep | SPED | Beep |
gpiSound | SPED | Generate a sound from a specific physical address |
gpiSleep | SPED | Sleep. This function shall by implemented with care (no thread) |
gpiSwitchLED | SPED | Switch ON/OFF a LED |
gpiClearScreen | SPED | Clear display |
gpiGetString | SPED | Get string from the string table indexed by ID |
Platform | ||
gpiMemSet | Platform | Equivalent to stdlib’s memset |
gpiStrLen | Platform | Equivalent to string’s memset |
gpiMemCpy | Platform | Equivalent to stdlib’s memcpy |
gpiGetDate | Platform | Get system’s date. Careful with time format |
gpiGetTimer | Platform | Get system’s time. Careful with time format |
gpiSetDateTime | Platform | Set system’s time. Careful with time format |
gpiStartTimer | Platform | |
gpiGetTimerTime | Platform | |
gpiGetTimerState | Platform | |
gpiFreeTimer | Platform |
Initialization
Primitives | Module | Comment |
---|---|---|
Initialization | ||
gpiMain | Platform | |
gpiInitialize | Platform |
Card Processing
Primitives | Module | Comment |
---|---|---|
Card Interfaces | ||
gpiSetTechnoToDetect | CAD | |
gpiTechnoPolling | CAD | |
gpiSetPollingMessage | CAD | |
gpiPower | CAD | |
gpiPolling | CAD | |
gpiCardSwiped | CAD | |
gpiCardInsterted | CAD | |
gpiReadMagstripe | CAD | |
gpiPowerOff | CAD | |
gpiPowerOffAllDevices | CAD | |
gpiResetContactless | CAD |
PIN Management
Primitives | Module | Comment |
---|---|---|
gpiPINEnter | SPED |