enable/disable beep, not yet bind with tms
This commit is contained in:
parent
20be06c7db
commit
fb21ca1a51
@ -160,12 +160,18 @@ public class MainFragment extends DataBindingFragment {
|
||||
NexGoSDK.getInstance().cancelCheckCard();
|
||||
NexGoSDK.getInstance().closeReader();
|
||||
enableHomeButton();
|
||||
enablePinPadSound(false);
|
||||
// disableTaskButton();
|
||||
// BaseApplication.getInstance().deviceEngine.getPlatform().hideNavigationBar();
|
||||
// BaseApplication.getInstance().deviceEngine.getPlatform().showNavigationBar();
|
||||
});
|
||||
}
|
||||
|
||||
private void enablePinPadSound(boolean flag) {
|
||||
int result = BaseApplication.getInstance().deviceEngine.getPlatform().enablePinpadBeep(flag);
|
||||
LogUtil.d(TAG, "Pin Pad Beep Result:" + result);
|
||||
}
|
||||
|
||||
private void disableHomeButton() {
|
||||
int result = BaseApplication.getInstance().deviceEngine.getPlatform().disableHomeButton();
|
||||
LogUtil.d(TAG, "Disable Home Button Result:" + result);
|
||||
|
||||
@ -256,14 +256,6 @@ public class CardWaitingFragment extends DataBindingFragment implements DataBind
|
||||
|
||||
HashSet<CardSlotTypeEnum> allType = new HashSet<>();
|
||||
allType.clear();
|
||||
// if(sharedViewModel.getIsSeePhone().getValue() != null && sharedViewModel.getIsSeePhone().getValue()) {
|
||||
// allType.add(CardSlotTypeEnum.RF);
|
||||
// waitTimeout = 20;
|
||||
// } else {
|
||||
// allType.add(CardSlotTypeEnum.ICC1);
|
||||
// allType.add(CardSlotTypeEnum.RF);
|
||||
// allType.add(CardSlotTypeEnum.SWIPE);
|
||||
// }
|
||||
if(sharedViewModel.getIsSeePhone().getValue() != null && sharedViewModel.getIsSeePhone().getValue()) {
|
||||
allType.add(CardSlotTypeEnum.RF);
|
||||
waitTimeout = 20;
|
||||
@ -273,7 +265,11 @@ public class CardWaitingFragment extends DataBindingFragment implements DataBind
|
||||
} else {
|
||||
allType.add(CardSlotTypeEnum.ICC1);
|
||||
allType.add(CardSlotTypeEnum.RF);
|
||||
allType.add(CardSlotTypeEnum.SWIPE);
|
||||
|
||||
if(SystemParamsOperation.getInstance().isMagStripeEnabled()) {
|
||||
allType.add(CardSlotTypeEnum.SWIPE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// int allType = AidlConstants.CardType.IC.getValue() | AidlConstants.CardType.MAGNETIC.getValue();
|
||||
|
||||
@ -558,6 +558,7 @@ public abstract class EmvBaseViewModel extends BaseViewModel {
|
||||
byte[] panBytes = cardNo.substring( length- 13).getBytes(StandardCharsets.US_ASCII);
|
||||
LogUtil.d(TAG,"card num :"+cardNo);
|
||||
LogUtil.d(TAG,"Is Online Pin:"+isOnlinePin);
|
||||
|
||||
// pinPad.inputOnlinePin(supperLen, 60, pan, 0, PinAlgorithmModeEnum.ISO9564FMT0, pinPadInputListener);
|
||||
if (isOnlinePin) {
|
||||
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
configurations.maybeCreate("default")
|
||||
artifacts.add("default", file('nexgo-smartpos-sdk-v3.08.006_20241216.aar'))
|
||||
artifacts.add("default", file('nexgo-smartpos-sdk-v3.08.013_20260416.aar'))
|
||||
BIN
nexsdk-lib/nexgo-smartpos-sdk-v3.08.013_20260416.aar
Normal file
BIN
nexsdk-lib/nexgo-smartpos-sdk-v3.08.013_20260416.aar
Normal file
Binary file not shown.
@ -402,7 +402,11 @@ public class FieldUtils {
|
||||
field.setDataStr("61"); // BPC
|
||||
// field.setDataStr("00");// MPU
|
||||
} else {
|
||||
field.setDataStr("00");
|
||||
if (FALLBACK == cardType){ // Fallback
|
||||
field.setDataStr("02");
|
||||
} else {
|
||||
field.setDataStr("00");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user