Payment
Last updated: November 12, 2026 | Guide version: 1.0.9
Used to make a payment transaction. Supported transaction types are Sale, Void and Refund. If a payment request also consists of RegisterParameters, the registration process will be executed using the given values in case the current registered terminal does not match the provided one. The merchant (sales) app does not need to add register parameters if registration has already been completed with those credentials (MID, TID, Activation Code).
Amounts are in minor units. The amount field is always expressed in the currency's minor unit (cents) in every request and response. E.g. to charge 1,000.00 COP, send 100000, not 1000. Sending the amount in whole currency units will cause the processed amount to be 100x smaller than intended.
Transaction types
| Code | Meaning |
|---|---|
200 |
Sales |
300 |
Refund |
400 |
Void |
604 |
Tokenization |
700 |
End of Day |
0985 |
Blik Sale |
0997 |
Blik Void |
0110 |
Init Pre Auth |
0120 |
Supplementary Pre Auth |
0130 |
Capture Pre Auth |
0210 |
Void Pre Auth |
Payment parameters
| Parameter | Description | Example |
|---|---|---|
amount |
Amount for payment, expressed in the currency's minor unit (cents) | 100000 (= 1,000.00) |
orderId |
Client reference id for transaction | 9bda71c6-a4b1-414b-97ec-5d36873216f2 |
transactionId |
txnID for original transaction (use it when transactionType is 300,400,0997,0120,0130,0210) | 300001231240 |
transactionType |
Transaction type indicator, see Transaction types | 200 |
maskedPan |
Presents last 4 digits of payment card (use only this parameter when the transaction type is 0120) | 0011 |
Config parameters
| Field | Description | Value |
|---|---|---|
setDrawerMenuEnabled |
Controls the visibility and accessibility of the navigation drawer menu within the SoftPOS interface. | true or false |
setSalesButtonEnabled |
Controls the visibility of the Sales button within the SoftPOS main menu. | true or false |
setVoidButtonEnabled |
Controls the visibility of the Void button within the SoftPOS main menu. | true or false |
setRefundButtonEnabled |
Controls the visibility of the Refund button within the SoftPOS main menu. | true or false |
setHistoryButtonEnabled |
Controls the visibility of the Transaction History button within the SoftPOS main menu. | true or false |
setSettingsButtonEnabled |
Controls the visibility of the Settings button within the SoftPOS main menu. | true or false |
setSettlementButtonEnabled |
Controls the visibility of the Settlement (End of Day) button within the SoftPOS main menu. | true or false |
setTipScreenEnabled |
Enables or disables the tip entry screen during payment transactions. | true or false |
setUserPhotoEnabled |
Enables or disables the display of the user profile photo within the SoftPOS interface. | true or false |
setInfoQuaryEnabled |
Enables or disables the Custom Page feature within the SoftPOS application. This is special development on SoftPOS side; if a business related page needs to be opened, it should be developed and displayed with this parameter. | true or false |
setWorkingMode |
Controls whether the SoftPOS application remains active in the background.0: Stops the application from running in the background.1: Keeps the application running in the background. |
0 |
setTimeout |
Configures the screen inactivity timeout duration (typically in seconds; -1 indicates no timeout). Defines the timeout in seconds before the SoftPOS app automatically closes the transaction result screen and returns focus to the merchant app (e.g., 3 = 3 seconds). |
3 |
Call example
PaymentParameters paymentParameters = new PaymentParameters();
paymentParameters.setAmount(150000); // amount is in cents: 150000 = 1,500.00 in local currency
paymentParameters.setTransactionId(12312312314); // For Void and Refund Transactions Only!!
paymentParameters.setOrderId("9bda71c6-a4b1-414b-97ec-5d36873216f2");
paymentParameters.setTransactionType(200);
paymentParameters.setMaskedPan("0011");
app2AppRequest.setPaymentParameters(paymentParameters);
ConfigParameters configParameters = new ConfigParameters();
configParameters.setDrawerMenuEnabled(true);
configParameters.setSalesButtonEnabled(true);
configParameters.setVoidButtonEnabled(true);
configParameters.setRefundButtonEnabled(true);
configParameters.setHistoryButtonEnabled(true);
configParameters.setSettingsButtonEnabled(false);
configParameters.setSettlementButtonEnabled(false);
configParameters.setTipScreenEnabled(false);
configParameters.setUserPhotoEnabled(false);
configParameters.setInfoQuaryEnabled(false);
configParameters.setWorkingMode(0);
configParameters.setTimeout(-1);
// if timeout is set lower than zero, there is no timeout
// if timeout is set greater than zero, softPOS will wait for that second value
app2AppRequest.setConfigParameters(configParameters);
app2AppService.getPayment(app2AppRequest, eventListener);
Request and response
Request
// Note: amount is in minor units (cents). 140000 below corresponds to 1,400.00 in local currency.
{
"amount": "140000",
"transactionType": "200",
"maskedPan": "0011",
"configParameters": {
"drawerMenu": "1",
"salesButton": "1",
"voidButton": "1",
"refundButton": "1",
"historyButton": "1",
"settingsButton": "1",
"tipScreen": "0",
"userPhoto": "1",
"workingMode": "0"
},
"registerParameters": {
"terminalId": "16010129",
"merchantId": "000000009041042",
"activationCode": "testCode"
},
"customMessage": "{\"blikCode\":\"777777\"}"
}
Success response
// Note: amount is in minor units (cents). 500000 below corresponds to 5,000.00 in local currency.
{
"transactionType": "200",
"appVersion": "1.2.10",
"amount": "500000",
"maskedPan": "**** **** **** 0516",
"transactionStatus": "success",
"customMessage": "{\"isoStan\":\"001017\"}",
"refusalCode": "00",
"transactionDate": "29-11-2022 15:47:24",
"transactionId": "233394301141"
}
Declined response
{
"transactionType": "200",
"transactionStatus": "decline",
"refusalCode": "96"
}
Refusal code 96
A system-level error that occurs when the terminal or host cannot complete the transaction. May be returned by the Host or the Payment Application (including kernel-related errors). When this happens, the Payment Application displays a detailed error message on the terminal screen. The Sales Application only receives the standardized refusal code 96, while the detailed description can be retrieved using the provided method.
Possible causes
- System Error
- Kernel-level error
- EMV kernel failure
- Card processing error
- Payment Application internal error
- Unexpected exception
- Misconfigured or corrupted data
- Host communication error
- Host returned an unexpected or invalid response
- Parameter or configuration issue
- Terminal parameter mismatch
Reporting a 96 error. If you get a 96 error please provide the on-screen error message so the root cause can be analyzed more accurately.
See also
- Tap on Mobile Android App2App SDK Integration Guide
- About App2App SDK
- Initialization
- Register
- Last Transaction Query
- Transaction List
- Manual Settlement
- Custom Tags
- Unregister