Card Service
Integration
public abstract class BaseActivity extends AppCompatActivity implements CardServiceListener {
protected CardServiceBinding cardServiceBinding;
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
cardServiceBinding = new CardServiceBinding(this, this);
}
@Override
protected void onDestroy() {
//Make sure to call unBind() method when activity is finishing
cardServiceBinding.unBind();
super.onDestroy();
}
/**
* Callback for Card Service connected method. You will not need to check whether card service is connected or not in most cases.
* When you make an asynchronous method call on CardServiceBinding,it will be executed automatically as soon as CardService is connected.
*/
@Override
public void onCardServiceConnected() {
}
/**
* Callback for TCardService getCard method.
* As getCard is an asynchronous service operation, you will get the response after operation is done in this callback.
* @apiNote Override this method in your activity in order to get card data after calling #getData() method of Card Service.
* @param cardData: Card data json string
*/
public void onCardDataReceived(String cardData) { }
/**
* Callback for TCardService getOnlinePin method.
* As getOnlinePin is an asynchronous real time operation, you will get the response after operation is done in this callback.
* @apiNote Override this method in your activity in order to get pin data after calling #getOnlinePin() method of Card Service.
* @param pin: Pin string
*/
public void onPinReceived(String pin) {}
/**
* Callback for TCardService iccTakeOut method.
* This callback will be triggered when user takes out card from pos device after you inform the user with takeOutICC() method.
* @apiNote Override this method in your activity in order to get icc take out callback after calling #iccTakeOut() method of Card Service.
*/
public void onICCTakeOut() {}
}getCard(...) API Details
Inputs
completeEMVTxn(...) API Details
getOnlinePIN(...) API Details
getOnlinePINEx(String config) API Details
void takeOutICC(int timeout) API Details
String getEMVCompletionData();
Settings
setEMVConfiguration(...) API Details
30KB
PDF · 485KB
setEMVCLConfiguration(...) API Details
28KB
PDF · 334KB
PDF · 977KB
Compatible Version Info
APK Ver.
Detail
Date
OTA Version
BSP Ver.
APK Ver.
Detail
Date
OTA Version
BSP Ver.
APK Ver.
Detail
Date
OTA Version
BSP Ver.
Last updated

