Integrations
This part contains the changes required to adapt the application written for 400TR and 1000TR to x30 in the most accurate and minimum effort way.
Libs
For 330TR add the libs below.
Manifest
330TR:
Build Gradle
Ui Components
Note: Add to app/build.gradle for x30 ui components
KMS
400TR: new CtKMS2System().checkKey(VersionParams.keyset, 0);
330TR: kms.checkKeyExist(VersionParams.tpk);
Service Binding:
Enc/Dec
400TR:
330TR:
Write Key
400TR:
330TR
Printer
v19.6 is deprecated. v20.0 contains major changes that will lock the main thread while printing long content. Please test it with long print content before using it.
400TR:
330TR:
Card Service
getCard
String config:
Note: The following fields are mandatory to be added for x30 integration.
getOnlinePIN: Must sent during the getCard Operation for ICC transactions.
kmsVersion :
1 : Deprecated: Compatible with 400TR and 1000TR Castles-based systems.
2 : new KMS library, compatible with all devices.
keyIndex : keyIndex value of the PIN key
keySet : allocated keySet value of the bank. Only set for kmsVersion 1. Not needed for kmsVersion 2.
keyIndex : keyIndex value of the PIN key.
getOnlinePINEx
Note: getOnlinePINEx API use to get Encrypted PIN with kmsVersion 2, and As kmsVersion 1 has been deprecated, please use getOnlinePINEx.
getOnlinePINEx(String config) API Details
kmsVersion : Send 2 for new KMS
keyIndex : keyIndex value of the PIN key.
completeEMVTxn
All ICC transactions must be completed in 330TR. The card read process is not completed until completeEmvTxn is called. Other than requested actions by API, ICC transactions can be completed as follows:
setEMVConfiguration
Note: 5F2A field mandatory to be added for x30 integration.
Note: The setEMVConfiguration should be called first and followed by the setEMVCLConfiguration.
Android Studio Configuration:
You need to edit your configurations in 330TR unlike 400/1000TR because its version is more than Android 11. Therefore you need to open Edit Configurations and then select "Always install with package manager". If you don't select that configuration, your latest changes won't work on your 330TR device.
Last updated