fixed for upi
This commit is contained in:
parent
87a3b5da83
commit
b5f174ff54
@ -410,7 +410,7 @@ public class EmvParamHelper {
|
||||
private AidEntity convertContactAIDNex(ContactAid contactAid) {
|
||||
AidEntity aidV2 = new AidEntity();
|
||||
|
||||
aidV2.setTransType("FF");
|
||||
aidV2.setTransType("00");
|
||||
aidV2.setOnlinePinCap(1);
|
||||
aidV2.setAsi(0); //1
|
||||
// aidV2.setThreshold(99);
|
||||
|
||||
@ -276,7 +276,7 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
LogUtil.d(TAG, "TransData :" + transData.getTransAmount());
|
||||
LogUtil.d(TAG, "start emv ");
|
||||
|
||||
emvHandler.emvDebugLog(true);
|
||||
// emvHandler.emvDebugLog(true);
|
||||
emvHandler.emvProcess(transData, emvProcessListener);
|
||||
|
||||
|
||||
@ -316,8 +316,8 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
LogUtil.d(TAG, "Selected :" + position);
|
||||
emvHandler.onSetSelAppResponse(position);
|
||||
LogUtil.d(TAG, "Selected :" + position + 1);
|
||||
emvHandler.onSetSelAppResponse(position + 1);
|
||||
} catch (Exception e) {
|
||||
LogUtil.e(TAG, "Exception during app selection: " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
@ -579,6 +579,21 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
private OnEmvProcessListener2 emvProcessListener = new OnEmvProcessListener2() {
|
||||
@Override
|
||||
public void onSelApp(List<String> list, List<CandidateAppInfoEntity> list1, boolean b) {
|
||||
LogUtil.d(TAG, "list" + list);
|
||||
LogUtil.d(TAG, "list2" + list1);
|
||||
for (String item: list){
|
||||
LogUtil.d(TAG, "list " + item);
|
||||
}
|
||||
for(CandidateAppInfoEntity item: list1) {
|
||||
LogUtil.d(TAG,"aid :"+ByteUtil.bytes2HexStr(item.getAid()));
|
||||
LogUtil.d(TAG,"app label :"+ByteUtil.bytes2HexStr(item.getAppLabel()));
|
||||
if(item.getPreferName() == null){
|
||||
LogUtil.d(TAG,"prefer name :"+ "is Null");
|
||||
}else{
|
||||
LogUtil.d(TAG,"prefer name :"+ByteUtil.bytes2HexStr(item.getPreferName()));
|
||||
}
|
||||
LogUtil.d(TAG,"priority :"+ByteUtil.byte2HexStr(item.getPriority()));
|
||||
}
|
||||
mProcessStep = EMV_APP_SELECT;
|
||||
LogUtil.d(TAG, "onWaitAppSelect :");
|
||||
String[] candidateNames = getCandidateNames(list);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user