For the complete documentation index, see llms.txt. This page is also available as Markdown.

TTS App Integration

1. App Definition

For your app to be recognized properly by the device, you should add the following meta-data to your AndroidManifest.xml file.

<meta-data android:name="app_name" android:value="TTS_1234_APPNAME" />
<meta-data
    android:name="app_model_type"
    android:value="1000TR" />
<meta-data
    android:name="app_version"
    android:value="100000001" />

2. Protocol

The information required for communication between the banking application and the platform is provided below.

2.1. Sale

Following code snippet is used by PaymentGateway in order to open payment application:

Amount : Integer: Ex: 1.25 TL is written 125

UUID: Transactions are kept with this value on Payment Gate Way and your application in case of a power cut. Payment Gate Way sends this value and waits for the return of the transaction result.

Plate: String: Ex: "34AA111"

Fuel Type:

Yakıt Tipi

id

KURSUNSUZ95

1

KURSUNSUZ95-2

2

KURSUNSUZ98

3

MOTORIN

4

MOTORIN2

5

OTOGAZLPG

6

GAZYAGI

7

YAKITNAFTA

8

LNG

9

ELEKTRIK

10

CNG

11

ADBLUE

12

SaleType

Satış Tipi

id

TASIT_TANIMA

1

PLAKA_GIRISI

2

TEST

3

TRANSFER

4

PLAKASIZ

5

TANKERLE_SATIS

6

UTTS

7

UTTS_TASIT_TANIMA

8

foodCardTaxes: (JSON Array): A list of objects containing the amount (int) and the taxPercent (int,e.g., 1800 = 18.00%).

After the payment process, the payment application should return the result.

responseCode : Result of the payment process

amount : Integer. Amount that is charged by the payment application. If amount is less than the Broadcasted Amount by Payment Gateway, it means Partial Limit is applied.

batchNo : The current Batch No which includes current sale.

txnNo : The current Txn No of the sale in current Batch.

IsSlip: Indicates that if a payment slip will be printed or not. (true to print slip)

customerSlipData: Formatted String for card holder slip.

merchantSlipData: Formatted String for merchant slip.

Sample Code to Generate Formatted Slip String

You can receive the Z No and the Receipt No as;

2.1.1 Manifest Modifications

To be able to get data from payment gateway, there should be intent filter like below in related class.

2.2. Pos Transactions

Following code snippet is used by PaymentGateway in order to open payment application:

After the pos transaction process, the payment application should send the result.

responseCode : Return of the pos transaction request.

2.2 .1 Manifest Modifications

To be able to get data from payment gateway, there should be intent filter like below in related class.

2.3. Pos Settings

Following code snippet is used by PaymentGateway in order to open payment application:

responseCode : Return of the pos settings request.

2.3.1 Manifest Modifications

To be able to get data from payment gateway, there should be intent filter like below in related class.

After the pos settings process, the payment application should send the result.

2.4. Batch Close

Following code snippet is used by PaymentGateway in order to open payment application:

responseCode : Return of the pos settings request.

2.4.1 Manifest Modifications

To be able to get data from payment gateway, there should be intent filter like below in related class.

After the batch close process, the payment application should send the result.

2.5. Parameter

Following code snippet is used by PaymentGateway in order to open payment application:

responseCode : Return of the pos settings request.

2.5.1 Manifest Modifications

To be able to get data from payment gateway, there should be intent filter like below in related class.

After the parameter update process, the payment application should send the result.

2.6. Power Cut Inquiry

If there has been a power cut during a sale transaction, transaction is inquired after device reboot. In order to receive inquiry and return transaction information, a broadcast receiver must be registered in the Android manifest file with action "check_sale" like below:

When inquiry broadcast is received, in the broadcast receiver's onReceive() method, if transaction is successful, transaction info must be returned in a bundle like below.

If you are using SQLite database to store transactions, you should configure your database to insert record instantly when a transaction completed in case of a power cut scenario. https://www.sqlite.org/pragma.html#pragma_synchronous

To do this, in your SQLiteOpenHelper class, override onConfigure() method and add the following code:

Following code snippet is used by PaymentGateway in order to check the payment, if there is a power cut PaymentGateway checks for the last sale result then returns UUID to ask for the result of the last sale status.

2.7. Manual App Activation

Let's say some operator needs to install your application manually and doesn't have a chance to send remote activation process. For that kind of situations, please use function setBankParams at

archive · 19KB
Open
DeviceInfo.zip

Important Note: If you don't implement this function, your application can't be activated and it can't seen in ATMS. Therefore you couldn't see your applications on POS transactions and sale menu! You can read Pos Settings on the Template Banking app for more information.

Our UIComponents library provides components such as ListMenuFragment, InfoDialog, InputListFragment and NumPadDialog which are explained here.

3. Contactless Card Read

Import CTOS Lib

archive · 37KB
Open

The implementation dependency should be added to the app/build.gradle file.

Read Card API's

Contactless Contactless APIs are available in the attached document.

Last updated