fixed for magstripe not allowed and 12 digit pin
This commit is contained in:
parent
e0906ab434
commit
80a1229d0f
@ -164,7 +164,7 @@ public class EmvTransactionProcessViewModel extends EmvBaseViewModel implements
|
||||
case EMV_TRY_AGAIN:
|
||||
emvResultStatus.postValue(EmvResultStatus.READ_CARD_RETRY);
|
||||
break;
|
||||
case EMV_CARD_BLOCK:
|
||||
case EMV_CARD_APP_BLOCK:
|
||||
emvResultStatus.postValue(EmvResultStatus.CARD_APP_BLOCKED);
|
||||
break;
|
||||
case EMV_CONFIRM_CODE_VERIFY:
|
||||
|
||||
@ -153,6 +153,8 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
protected static final int EMV_ONLINE_PROCESS = 11;
|
||||
protected static final int EMV_ERROR = 12;
|
||||
protected static final int EMV_TRY_AGAIN = 13;
|
||||
|
||||
protected static final int EMV_CARD_APP_BLOCK = 23;
|
||||
protected static final int EMV_CTLS_TRY_AGAIN = 13;
|
||||
|
||||
protected static final int EMV_CONFIRM_CODE_VERIFY = 14;
|
||||
@ -599,7 +601,7 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
// customPinPadKeyboard.setKeyBoard(ByteUtil.bytes2HexStr(number));
|
||||
|
||||
LogUtil.d(TAG, "PinPad: " + ByteUtil.bytes2HexStr(number));
|
||||
int[] supperLen = new int[]{0x00, 0x04, 0x06};
|
||||
int[] supperLen = new int[]{0x00, 0x04, 0x06,0x12};
|
||||
|
||||
|
||||
pinPad.setPinKeyboardViewMode(PinKeyboardViewModeEnum.DEFAULT);
|
||||
@ -826,6 +828,11 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
//union pay online contactless--application should go online
|
||||
break;
|
||||
|
||||
case SdkResult.Emv_App_Block:
|
||||
case SdkResult.Emv_Card_Block:
|
||||
mHandler.sendEmptyMessage(EMV_CARD_APP_BLOCK);
|
||||
break;
|
||||
|
||||
case SdkResult.Emv_Candidatelist_Empty:// Application have no aid list
|
||||
case SdkResult.Emv_FallBack:// FallBack ,chip card reset failed
|
||||
//fallback process
|
||||
|
||||
Loading…
Reference in New Issue
Block a user