fixed for mag stripe
This commit is contained in:
parent
05a91782b5
commit
ffc3908446
@ -262,6 +262,7 @@ public class CardWaitingFragment extends DataBindingFragment implements DataBind
|
||||
} else {
|
||||
allType.add(CardSlotTypeEnum.ICC1);
|
||||
allType.add(CardSlotTypeEnum.RF);
|
||||
allType.add(CardSlotTypeEnum.SWIPE);
|
||||
}
|
||||
|
||||
// int allType = AidlConstants.CardType.IC.getValue() | AidlConstants.CardType.MAGNETIC.getValue();
|
||||
|
||||
@ -6,6 +6,7 @@ import android.os.Looper;
|
||||
import android.os.RemoteException;
|
||||
import android.util.Log;
|
||||
|
||||
import com.nexgo.common.LogUtils;
|
||||
import com.nexgo.oaf.apiv3.SdkResult;
|
||||
import com.nexgo.oaf.apiv3.device.reader.CardInfoEntity;
|
||||
import com.nexgo.oaf.apiv3.device.reader.CardSlotTypeEnum;
|
||||
@ -106,6 +107,14 @@ public class CheckCardX {
|
||||
Log.d(TAG, "Find IC");
|
||||
} else if(cardInfoEntity.getCardExistslot() == CardSlotTypeEnum.RF) {
|
||||
checkCardResultX.onSuccess(CardTypeX.NFC,false);
|
||||
} else if(cardInfoEntity.getCardExistslot() == CardSlotTypeEnum.SWIPE) {
|
||||
LogUtils.debug(TAG,"Found Swipe");
|
||||
Bundle info = new Bundle();
|
||||
info.putString("TRACK1",cardInfoEntity.getTk1());
|
||||
info.putString("TRACK2",cardInfoEntity.getTk2());
|
||||
info.putString("TRACK3",cardInfoEntity.getTk3());
|
||||
MAGXReadCard.getInstance().setBundle(info);
|
||||
checkCardResultX.onSuccess(CardTypeX.MAG,false);
|
||||
}
|
||||
} else if( i == SdkResult.Fail) {
|
||||
checkCardResultX.onError(i,"Failure");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user