Compare commits
No commits in common. "05a91782b5625b0b1adace02663c1ba2692722a7" and "5ee9745762af8b6f679df60040e9a9824dfb28c1" have entirely different histories.
05a91782b5
...
5ee9745762
@ -13,6 +13,7 @@
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
<option value="$PROJECT_DIR$/baselib" />
|
||||
<option value="$PROJECT_DIR$/ecr" />
|
||||
<option value="$PROJECT_DIR$/ecr-service" />
|
||||
<option value="$PROJECT_DIR$/ecr-service-lib" />
|
||||
<option value="$PROJECT_DIR$/link-service-lib" />
|
||||
<option value="$PROJECT_DIR$/mpulib" />
|
||||
|
||||
@ -204,7 +204,7 @@ dependencies {
|
||||
|
||||
// ECR Dependencies - Modern ECR Client Library
|
||||
// implementation project(path: ':ecr-client-lib')
|
||||
// implementation project(path: ':ecr-service-lib')
|
||||
implementation project(path: ':ecr-service-lib')
|
||||
|
||||
// Core Libraries
|
||||
implementation project(path: ':paylibs')
|
||||
|
||||
@ -22,11 +22,9 @@ import com.denzcoskun.imageslider.constants.ScaleTypes;
|
||||
import com.denzcoskun.imageslider.models.SlideModel;
|
||||
import com.nexgo.oaf.apiv3.emv.AidEntity;
|
||||
import com.nexgo.oaf.apiv3.emv.CapkEntity;
|
||||
//import com.pos.connection.bridge.binder.ECRConstant;
|
||||
import com.pos.connection.bridge.binder.ECRConstant;
|
||||
|
||||
import com.utsmm.kbz.util.MockData;
|
||||
//import com.utsmm.kbz.util.ecr.ModernECRFactory;
|
||||
//import com.utsmm.kbz.util.ecr.ModernECRManager;
|
||||
import com.utsmyanmar.baselib.BaseApplication;
|
||||
import com.utsmyanmar.baselib.emv.EmvParamOperation;
|
||||
import com.utsmyanmar.baselib.fragment.DataBindingFragment;
|
||||
@ -303,8 +301,8 @@ public class MainFragment extends DataBindingFragment {
|
||||
if (checkECRServiceAppExistOrNot()) {
|
||||
// Initialize Modern ECR Manager
|
||||
// modernECRManager.init();
|
||||
////
|
||||
//// // Observe navigation requests
|
||||
//
|
||||
// // Observe navigation requests
|
||||
// modernECRManager.getNavigationRequest().observe(getViewLifecycleOwner(), destinationId -> {
|
||||
// if (destinationId != null) {
|
||||
// delayFunctionCall(() -> isRouteValidAndNavigateToRoute(destinationId));
|
||||
|
||||
@ -2,10 +2,7 @@ package com.utsmyanmar.paylibs.utils.core_utils;
|
||||
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.nexgo.oaf.apiv3.emv.EmvDataSourceEnum;
|
||||
import com.nexgo.oaf.apiv3.emv.EmvHandler2;
|
||||
import com.utsmyanmar.paylibs.Constant;
|
||||
import com.utsmyanmar.paylibs.PayLibNex;
|
||||
import com.utsmyanmar.paylibs.model.BaseCardInfo;
|
||||
import com.utsmyanmar.paylibs.model.CardInfo;
|
||||
import com.utsmyanmar.paylibs.model.ICCardInfo;
|
||||
@ -673,42 +670,43 @@ public class KernelDataProcessUtil {
|
||||
}
|
||||
|
||||
LogUtil.d(TAG,"9F6E data :"+hexStr);
|
||||
byte[] dataOut = new byte[1024];
|
||||
EmvHandler2 emvHandler = PayLibNex.getInstance().deviceEngine.getEmvHandler2("app2");
|
||||
try {
|
||||
|
||||
byte[] dateValue = emvHandler.getTlv(ByteUtil.hexStr2Bytes("9F6E"), EmvDataSourceEnum.FROM_CARD);
|
||||
if (dateValue != null) {
|
||||
|
||||
hexStr = ByteUtil.bytes2HexStr(dateValue);
|
||||
LogUtil.d(TAG, "get 9F6E Data :" + hexStr);
|
||||
|
||||
|
||||
} else {
|
||||
LogUtil.e(TAG, "Get the data length of payWave is null = " );
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
// if (hexStr.equals("9F6E00")) {
|
||||
// byte[] dataOut = new byte[1024];
|
||||
//
|
||||
// try {
|
||||
// byte[] dateValue = emvHandler.getTlv(ByteUtil.hexStr2Bytes("9F6E"), EmvDataSourceEnum.FROM_CARD);
|
||||
// if (dateValue != null) {
|
||||
// hexStr = ByteUtil.bytes2HexStr(dateValue);
|
||||
// int len = PayLibsUtils.getInstance().emvOptV2.getTlvList(AidlConstantsV2.EMV.TLVOpCode.OP_PAYWAVE, tagList, dataOut);
|
||||
// if (len > 0) {
|
||||
// byte[] dataOutBytes = Arrays.copyOf(dataOut, len);
|
||||
// hexStr = ByteUtil.bytes2HexStr(dataOutBytes);
|
||||
// LogUtil.d(TAG, "get 9F6E Data :" + hexStr);
|
||||
// Map<String, TLV> map = TLVUtil.buildTLVMap(hexStr);
|
||||
// LogUtil.d(TAG, "get 9F6E Data :" + map);
|
||||
//
|
||||
// } else {
|
||||
// LogUtil.e(TAG, "Get the data length of payPass is null = ");
|
||||
// LogUtil.e(TAG, "Get the data length of payWave is negative = " + len);
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
//
|
||||
// if (hexStr.equals("9F6E00")) {
|
||||
// try {
|
||||
// int len = PayLibsUtils.getInstance().emvOptV2.getTlvList(AidlConstantsV2.EMV.TLVOpCode.OP_PAYPASS, tagList, dataOut);
|
||||
// if (len > 0) {
|
||||
// byte[] dataOutBytes = Arrays.copyOf(dataOut, len);
|
||||
// hexStr = ByteUtil.bytes2HexStr(dataOutBytes);
|
||||
// LogUtil.d(TAG, "get 9F6E Data :" + hexStr);
|
||||
// Map<String, TLV> map = TLVUtil.buildTLVMap(hexStr);
|
||||
// LogUtil.d(TAG, "get 9F6E Data :" + map);
|
||||
//
|
||||
// } else {
|
||||
// LogUtil.e(TAG, "Get the data length of payPass is negative = " + len);
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// }
|
||||
// if (!hexStr.isEmpty()) {
|
||||
// f55WaveDataStr += "9F6E04"+hexStr;
|
||||
// if (!hexStr.equals("9F6E00")) {
|
||||
// f55WaveDataStr += hexStr;
|
||||
// }
|
||||
icCardInfo.setICC55(f55WaveDataStr);
|
||||
payDetail.setICC55(f55WaveDataStr);
|
||||
|
||||
@ -32,7 +32,7 @@ include ':baselib'
|
||||
include ':mpulib'
|
||||
|
||||
//include ':ecr-client-lib'
|
||||
//include ':ecr-service'
|
||||
include ':ecr-service'
|
||||
include ':xpay'
|
||||
include ':ecr'
|
||||
include ':ecr-service-lib'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user