Table of Contents | ||
---|---|---|
|
Version History
Version | Date | Changes | Author |
---|---|---|---|
1.0 | 11 April 2024 | Initial Documentation for V4 | Anne-Claire Femia |
1.1 | 14 Oct 2024 | Added Json Ticket Example | David Guignard |
Introduction
...
...
This document lists all the PayXpress v4V4 features available from an Android Intent call.
...
The PayXpress v4 app must be installed in the terminal.
It is possible to call PayXpress with our parameters only via Intent calls.
Process Flow
Your mobile application can call the PayXpress mobile application in order to handle the payment on the same device. This is done via Android Intent API.
The diagram bellow outlines the relationship and process flow between the systems involved in the Intent communication.
...
Calling PayXpress from another Android application
To call PayXpress, you should use an Intent with a Component.
...
You should go to the next section to know which extras you should add depending on the action.
Transactions
To trigger a transaction in PayXpress, you should pass to the Intent some extra parameters with the description of the transaction you want to do.
...
Parameter | Description | Format | Type | Mandatory |
| Amount of the transaction. |
| Integer | Yes |
| Type of the transaction. |
| Integer | No |
| Decide if the ticket should be printed or not |
| Boolean | No |
| Your id for the transaction | String | Yes |
Ticket printing
You can print merchant or client tickets directly in the POS of the last performed transaction.
...
Parameter | Description | Format | Type | Mandatory |
| Defines which ticket you want to print |
| Integer | Yes |
Retrieve intent’s result
For a transaction
When a transaction is triggered via Intent, it is possible to wait for the transaction result to know the outcome of it.
...
Parameter | Description | Format | Type | Mandatory |
| Id of the transaction | / | String | Yes |
| Type of the transaction |
| Integer | Yes |
| Reference of the transaction | / | String | No |
| Amount of the transaction |
| Integer | Yes |
| Currency of the transaction | / | String | Yes |
| Type of transaction |
| Integer | Yes |
| Client & merchant tickets | Json description. See bellow | String | No |
| Outcome of the transaction |
| Yes | |
| Selected AID during the transaction | / | String | No |
| Transaction without network / offline ? |
| Boolean | No |
| Masked PAN of the card | / | String | No |
| Type of card | / | String | No |
| Date’s timestamp |
| Long | Yes |
| Amount of the tips |
| Integer | Yes |
| Expiration date of the card |
| Integer | Yes |
| Type of PAN |
| Integer | Yes |
| Authorization number | / | String | No |
Client & Merchant Tickets
Client and Merchant Tickets are restitued in a JSON Structure.
...
Code Block | ||
---|---|---|
| ||
{ "tickets": [ { "type": "CLIENT", "ticket": "Q0FSVEUgQkFOQ0FJUkUKU0FOUyBDT05UQUNUCkJvbmpvdXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCkEwMDAwMDAwNDIxMDEwCkNCCkxFIDI5LzEwLzI0IEEgMTI6Mzk6MzAKRzcgVEVTVCAgICAgICAgICAyMSAKRElKT04gICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAKMDg5OTAxMwoyMDA0MQozMjQzNzk4NjYwMDAxOQpYWFhYWFhYWFhYWFgyODU2CjZDM0U1NEE5N0ZCOENFNzAKODk2IDAwMSAwMDAwMDEgIDAxICBDICAKTrAgQVVUTyA6IApSRUYuIDogCk1PTlRBTlQKNCwwMKBFVVIKREVCSVQKQ0FSVEUgREUgVEVTVApUSUNLRVQgQ0xJRU5UCkEgQ09OU0VSVkVSCk1lcmNpLCBhdSByZXZvaXIuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCg==" }, { "type": "MERCHANT", "ticket": "Q0FSVEUgQkFOQ0FJUkUKU0FOUyBDT05UQUNUCkJvbmpvdXIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCkEwMDAwMDAwNDIxMDEwCkNCCkxFIDI5LzEwLzI0IEEgMTI6Mzk6MzAKRzcgVEVTVCAgICAgICAgICAyMSAKRElKT04gICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAKMDg5OTAxMwoyMDA0MQozMjQzNzk4NjYwMDAxOQoyMDEwCjUwNzEwMDQxNTAxMjI4NTYKNkMzRTU0QTk3RkI4Q0U3MApmaW4gMzAvMDYvMjUKODk2IDAwMSAwMDAwMDEgIDAxICBDICAKTrAgQVVUTyA6IApSRUYuIDogCk1PTlRBTlQKNCwwMKBFVVIKREVCSVQKQ0FSVEUgREUgVEVTVApUSUNLRVQgQ09NTUVSQ0FOVApBIENPTlNFUlZFUgpNZXJjaSwgYXUgcmV2b2lyLiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo=" } ] } |
For a ticket print in the POS
When the instruction to print a ticket is triggered via Intent, it is possible to wait for the result to know the outcome of it.
...