-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[POSUI-309] Support Follow-Up Transaction FRD V1.00
- Loading branch information
1 parent
b3bbe89
commit 80ffc0d
Showing
7 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
app/src/main/java/com/paxus/pay/poslinkui/demo/entry/text/text/EnterGlobalUIDFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.paxus.pay.poslinkui.demo.entry.text.text; | ||
|
||
import android.os.Bundle; | ||
import android.text.TextUtils; | ||
|
||
import androidx.annotation.NonNull; | ||
|
||
import com.pax.us.pay.ui.constant.entry.EntryExtraData; | ||
import com.pax.us.pay.ui.constant.entry.EntryRequest; | ||
import com.pax.us.pay.ui.constant.entry.TextEntry; | ||
import com.paxus.pay.poslinkui.demo.R; | ||
import com.paxus.pay.poslinkui.demo.utils.ValuePatternUtils; | ||
|
||
/** | ||
* Implements {@value TextEntry#ACTION_ENTER_GLOBAL_UID}<br> | ||
*/ | ||
|
||
public class EnterGlobalUIDFragment extends ATextFragment { | ||
protected long timeOut; | ||
protected int minLength; | ||
protected int maxLength; | ||
|
||
@Override | ||
public int getMaxLength() { | ||
return maxLength; | ||
} | ||
|
||
@Override | ||
protected void loadArgument(@NonNull Bundle bundle) { | ||
timeOut = bundle.getLong(EntryExtraData.PARAM_TIMEOUT, 30000); | ||
|
||
String valuePatten = bundle.getString(EntryExtraData.PARAM_VALUE_PATTERN, "64"); | ||
|
||
if(!TextUtils.isEmpty(valuePatten)){ | ||
minLength = ValuePatternUtils.getMinLength(valuePatten); | ||
maxLength = ValuePatternUtils.getMaxLength(valuePatten); | ||
} | ||
} | ||
|
||
@Override | ||
protected String formatMessage() { | ||
return getString(R.string.enter_global_uid); | ||
} | ||
|
||
@Override | ||
protected String getRequestedParamName() { | ||
return EntryRequest.PARAM_GLOBAL_UID; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters