public class D1PayConfigParams extends D1Params
D1Params.Type
Modifier and Type | Method and Description |
---|---|
void |
disableBiometricAuthentication(boolean disabled)
Disable the biometric authentication.
|
ContactlessTransactionListener |
getContactlessTransactionListener()
Retrieve the default contactless transaction listener
|
int |
getDomesticCurrencyCode()
Retrieve the domestic currency code
|
static D1PayConfigParams |
getInstance()
Retrieve the instance of this D1PayConfigParams
|
int |
getKeyValidityPeriod()
Retrieve the key validity period
|
int |
getMaxConsecutivePaymentsForLVT()
Retrieve the maximum consecutive payment for LVT
|
int |
getMaxCumulativeAmountForLVT()
Retrieve the maximum cumulative amount for LVT
|
Notification |
getNotification()
Retrieve the registered notification
|
int |
getPollingEndTime()
Retrieve the polling end time settings
|
int |
getPollingInterval()
Retrieve the polling time interval for
D1PayWallet.addDigitalCard(String, D1Task.Callback) . |
String |
getReplenishAuthCancel()
For VISA only.
|
String |
getReplenishAuthDescription()
For VISA only.
|
String |
getReplenishAuthSubtitle()
For VISA only.
|
String |
getReplenishAuthTitle()
For VISA only.
|
int |
getSingleTransactionAmountLimitForLVT()
Retrieve the single transaction amount limit for LVT
|
boolean |
isBiometricEnabled()
Check if biometric authentication is allowed.
|
boolean |
isOnlinePinPriority()
Check if the Online PIN is priority
|
boolean |
isTransitExperienceAllowed()
Check if the transit experience is allowed
|
void |
setContactlessTransactionListener(ContactlessTransactionListener contactlessListener)
Set the default contactless transaction listener to handle the payment transaction
|
void |
setDomesticCurrencyCode(int currencyCode)
Set the domestic currency code
|
void |
setKeyValidityPeriod(int validityPeriod)
Set the key validity period
|
void |
setMaxConsecutivePaymentsForLVT(int maxConsecutiveLVT)
Set the max consecutive payments for LVT (Low Value Transaction)
|
void |
setMaxCumulativeAmountForLVT(int maxCumulativeLVTAmount)
Set the max cumulative amount for LVT (Low Value Transaction)
|
void |
setNotification(Notification notification)
Set the notification to be shown when receiving status update from D1 Pay.
|
void |
setOnlinePinPriority(boolean priority)
For VISA only.
|
void |
setPollingEndTimeForDigitization(int pollingEndTime)
Set the polling end time which is used when there is issue on Push Notification.
|
void |
setPollingIntervalForDigitization(int pollingInterval)
Set the polling interval.
|
void |
setReplenishAuthenticationUIStrings(String title,
String subtitle,
String description,
String negativeButton)
For VISA only.
|
void |
setSingleTransactionAmountLimitForLVT(int singleLVTAmount)
Set the single transaction amount limit for LVT (Low Value Transaction)
|
void |
setTransitExperienceAllowed(boolean allowed)
In D1 Pay "Transit experience" is the transit transaction without consumer authentication.
|
@NonNull public static D1PayConfigParams getInstance()
public void setKeyValidityPeriod(int validityPeriod)
validityPeriod
- The wait period (in seconds) between user authentication and tap to POS during a transaction.
Must be from 0 to 300.
Default value is 45.public void setDomesticCurrencyCode(int currencyCode)
currencyCode
- The domestic currency code (ISO-4217 Standard) used for local transaction.
Default code is 978
(EUR).public void setTransitExperienceAllowed(boolean allowed)
A transaction is identified as transit transaction:
allowed
- true, Transit will not have CDCVM; false, Transit will have CDCVMpublic void setMaxConsecutivePaymentsForLVT(int maxConsecutiveLVT)
maxConsecutiveLVT
- maximum allowed consecutive low value transactions before device authentication will be asked.
Maximum allowed value is 50.
Default value is 0 so LVT behavior is disabled.public void setSingleTransactionAmountLimitForLVT(int singleLVTAmount)
singleLVTAmount
- The threshold amount value for LVT.
Even if the terminal decides it is a LVT, if the transaction amount exceeds this limit,
it will be treated as a High Value Transaction (HVT) and device authentication will be asked.
Default value is 0 so LVT behavior is disabled.public void setMaxCumulativeAmountForLVT(int maxCumulativeLVTAmount)
maxCumulativeLVTAmount
- If the accumulated amount of all low value consecutive transactions is more than this config,
SDK will trigger device authentication.
If set to 0 all transactions will require device authentication from user.
Default value is 0 so LVT behavior is disabled.public void setOnlinePinPriority(boolean priority)
In case of profile supporting several CVM (Online PIN, CDCVM), D1 Pay is supporting by default "CDCVM Priority" as defined in VCPCS. Using this API, the mobile banking application could select "Online PIN" priority as defined in VCPCS.
priority
- Flag to set online pin as prioritypublic void setPollingIntervalForDigitization(int pollingInterval)
Polling time interval for D1PayWallet.addDigitalCard(String, D1Task.Callback)
.
Polling time is only used if there is issue on Push Notification.
Default value is 15s.
pollingInterval
- The polling interval (in seconds).public void setPollingEndTimeForDigitization(int pollingEndTime)
D1 Pay digitization may take quite some time, which may be more than 1 minute but must be less than 5 minutes. Default value is 300s.
pollingEndTime
- The polling end time (in seconds)public void disableBiometricAuthentication(boolean disabled)
disabled
- Flag to enable/disable the biometric authentication.
Default value is false
(biometric is enabled).public void setNotification(@NonNull Notification notification)
This notification usually happens during the card digitization for D1 Pay,
D1PayWallet.addDigitalCard(String, D1Task.Callback)
.
notification
- The notification to be shownD1PayWallet.addDigitalCard(String, D1Task.Callback)
public void setContactlessTransactionListener(@NonNull ContactlessTransactionListener contactlessListener)
contactlessListener
- The default listenerContactlessTransactionListener
public void setReplenishAuthenticationUIStrings(@NonNull String title, @NonNull String subtitle, @NonNull String description, @NonNull String negativeButton)
Set UI strings to be shown on the device authentication screen (if needed) while doing the replenishment.
title
- The title textsubtitle
- The sub-title textdescription
- The description textnegativeButton
- The negative button textD1PayWallet.replenish(String, boolean, DeviceAuthenticationCallback, D1Task.Callback)
public int getKeyValidityPeriod()
public int getDomesticCurrencyCode()
public boolean isTransitExperienceAllowed()
true
if transit transaction without consumer authentication is allowed,
otherwise false
.public int getMaxConsecutivePaymentsForLVT()
public int getSingleTransactionAmountLimitForLVT()
public int getMaxCumulativeAmountForLVT()
public int getPollingInterval()
D1PayWallet.addDigitalCard(String, D1Task.Callback)
.
Polling time is only used if there is issue on Push Notification.
public int getPollingEndTime()
public boolean isBiometricEnabled()
public boolean isOnlinePinPriority()
true
if the Online PIN is prioritized.@NonNull public String getReplenishAuthTitle()
Retrieve the authentication title shown while processing the replenishment
@NonNull public String getReplenishAuthSubtitle()
Retrieve the authentication subtitle shown while processing the replenishment
@NonNull public String getReplenishAuthDescription()
Retrieve the authentication description shown while processing the replenishment
@NonNull public String getReplenishAuthCancel()
Retrieve the authentication cancel button's text shown while processing the replenishment
@NonNull public ContactlessTransactionListener getContactlessTransactionListener()
@NonNull public Notification getNotification()