Table of Contents | ||
---|---|---|
|
...
Version | Date | Changes | Author |
---|---|---|---|
1.0 | 11 April 2024 | Initial Documentation for V4 | Anne-Claire Femia |
1.1 | 16 August 14 Oct 2024 | Added Json Ticket Example | David Guignard |
...
Here is an example for an Intent starting a transaction:
Code Block | ||
---|---|---|
| ||
val intent = Intent() intent.component = ComponentName("com.payxpert.merchant", "com.payxpert.merchant.ui.transaction.TransactionActivity ") intent.putExtra("transaction_bundle_key_action", "PERFORM") //TODO add more extras to specify your needs. See next sections |
...
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.
Code Block | ||
---|---|---|
| ||
intent.putExtra("transaction_bundle_key_amount", 1500) intent.putExtra("transaction_bundle_key_transaction_type", 1) intent.putExtra("transaction_bundle_key_print_ticket", false) intent.putExtra("transaction_bundle_key_reference", "test") |
...
You can print merchant or client tickets directly in the POS of the last performed transaction.
Code Block | ||
---|---|---|
| ||
intent.putExtra("transaction_bundle_key_type_print_ticket", 0) |
...
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.
...