Package com.creditcall.chipdnamobile
Interface ISurchargeListener
public interface ISurchargeListener
This interface is used to receive notification when a surcharge decision is required during a transaction.
Before calling
ChipDnaMobile.startTransaction(Parameters) register this listener using ChipDnaMobile.addSurchargeListener(ISurchargeListener).- Author:
- Creditcall Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonSurcharge(Parameters parameters) Invoked when a surcharge decision is required.
-
Method Details
-
onSurcharge
Invoked when a surcharge decision is required.- Parameters:
parameters-Parameterscollection which can contain:ParameterKeys.ResponseRequiredindicating whether the integrating application needs to respond. When the value isParameterValues.TRUEa call toChipDnaMobile.continueSurcharge(Parameters)is required for the transaction to continue.ParameterKeys.SurchargeMaximumAmountthe maximum surcharge amount in minor units ("0" when a surcharge is not possible for the card).ParameterKeys.SurchargeMaximumPercentagethe maximum surcharge as a percentage ("0" when a surcharge is not possible for the card).ParameterKeys.SurchargeCurrencythe currency code for the surcharge maxima; present only when a surcharge is possible (omitted otherwise).ParameterKeys.OperatorPinRequiredcontains valueParameterValues.TRUEif the Operator PIN is required.
-