Class ChipDnaMobile
- java.lang.Object
-
- com.creditcall.chipdnamobile.ChipDnaMobile
-
public class ChipDnaMobile extends java.lang.ObjectThis class should be used for processing Card Present sale and refund transactions on a mobile device. It also provides the necessary functionality for refunding a sale transaction, and sending email and SMS receipts.connectAndConfigure(Parameters),startTransaction(Parameters),linkedRefundTransaction(Parameters),getCardDetails(Parameters),confirmTransaction(Parameters)andvoidTransaction(Parameters)cannot be executed simultaneously, the operation that they perform needs to be finished before any of the other methods is executed. The methoddispose(Parameters)cannot be used when the above operations are taking place. OtherwiseAnotherOperationBeingProcessederror is returned.- Author:
- Creditcall Ltd
-
-
Constructor Summary
Constructors Constructor Description ChipDnaMobile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddApplicationSelectionListener(IApplicationSelectionListener listener)Add a listener to know when card application selection is required after a call tostartTransaction(Parameters).voidaddAvailablePinPadsListener(IAvailablePinPadsListener listener)Add a listener to get events when calling methodgetAvailablePinPads(Parameters).voidaddCardDetailsListener(ICardDetailsListener listener)Add a listener to get results when calling methodgetAvailableCurrencies(Parameters).voidaddConfigurationUpdateListener(IConfigurationUpdateListener listener)Add a listener to get events about device configuration.voidaddConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener listener)Add a listener to get events when methodconnectAndConfigure(Parameters)has completed.voidaddDeferredAuthorizationListener(IDeferredAuthorizationListener listener)Add a listener to get the event for deferred authorization confirmation.voidaddDeviceUpdateListener(IDeviceUpdateListener listener)Add a listener to get events about device connectivity.voidaddFirmwareUpdateListener(IFirmwareUpdateListener listener)Add a listener to get the event for Firmware Updates.voidaddForceAcceptanceListener(IForceAcceptanceListener listener)Add a listener to get the event for forced acceptance confirmation.voidaddPartialApprovalListener(IPartialApprovalListener listener)Add a listener to get the event for partial approval confirmation.voidaddProcessReceiptFinishedListener(IProcessReceiptFinishedListener listener)Add a listener to get results when calling methodprocessReceipt(Parameters).voidaddSignatureCaptureListener(ISignatureCaptureListener listener)Add a listener to get the event for signature capture.voidaddSignatureVerificationListener(ISignatureVerificationListener listener)Add a listener to get the event for signature verification.voidaddTmsUpdateListener(ITmsUpdateListener listener)Add a listener to get results when calling methodrequestTmsUpdate(Parameters).voidaddTransactionFinishedListener(ITransactionFinishedListener listener)Add a listener to get the results of a transaction.voidaddTransactionUpdateListener(ITransactionUpdateListener listener)Add a listener to get events during a transaction.voidaddUserNotificationListener(IUserNotificationListener listener)Add a listener to receive updates on notifications which need to be shown to the customer after a call tostartTransaction(Parameters).voidaddVerifyIdListener(IVerifyIdListener listener)Add a listener to get the event for ID verification.voidaddVoiceReferralListener(IVoiceReferralListener listener)Add a listener to get the event for voice referral.voidclearAllApplicationSelectionListener()Remove all listeners that were added viaaddApplicationSelectionListener(IApplicationSelectionListener)voidclearAllAvailablePinPadsListeners()Remove all listeners that were added viaaddAvailablePinPadsListener(IAvailablePinPadsListener).voidclearAllCardDetailsListener()Remove all listeners that were added viaaddCardDetailsListener(ICardDetailsListener)voidclearAllConfigurationUpdateListeners()Remove all listeners that were added viaaddConfigurationUpdateListener(IConfigurationUpdateListener)voidclearAllConnectAndConfigureFinishedListeners()Remove all listeners that were added viaaddConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener).voidclearAllDeferredAuthorizationListener()Remove all listeners that were added viaaddDeferredAuthorizationListener(IDeferredAuthorizationListener)voidclearAllDeviceUpdateListeners()Remove all listeners that were added viaaddDeviceUpdateListener(IDeviceUpdateListener)voidclearAllFirmwareUpdateListeners()Remove all listeners that were added viaaddFirmwareUpdateListener(IFirmwareUpdateListener)voidclearAllForceAcceptanceListener()Remove all listeners that were added viaaddForceAcceptanceListener(IForceAcceptanceListener)voidclearAllPartialApprovalListener()Remove all listeners that were added viaaddPartialApprovalListener(IPartialApprovalListener)voidclearAllProcessReceiptFinishedListener()Remove all listeners that were added viaaddProcessReceiptFinishedListener(IProcessReceiptFinishedListener)voidclearAllSignatureCaptureListeners()Remove all listeners that were added viaaddSignatureCaptureListener(ISignatureCaptureListener)voidclearAllSignatureVerificationListener()Remove all listeners that were added viaaddSignatureVerificationListener(ISignatureVerificationListener)voidclearAllTmsUpdateListener()Remove all listeners that were added viaaddTmsUpdateListener(ITmsUpdateListener)voidclearAllTransactionFinishedListener()Remove all listeners that were added viaaddTransactionFinishedListener(ITransactionFinishedListener)voidclearAllTransactionUpdateListener()Remove all listeners that were added viaaddTransactionUpdateListener(ITransactionUpdateListener)voidclearAllUserNotificationListener()Remove all listeners that were added viaaddUserNotificationListener(IUserNotificationListener)voidclearAllVerifyIdListener()Remove all listeners that were added viaaddVerifyIdListener(IVerifyIdListener)voidclearAllVoiceReferralListeners()Remove all listeners that were added viaaddVoiceReferralListener(IVoiceReferralListener)ParametersconfirmTransaction(Parameters requestParameters)Finalizes a transaction after it has been approved so that the transaction will be settled.ParametersconnectAndConfigure(Parameters requestParameters)Connect to and configure the current device.ParameterscontinueApplicationSelection(Parameters requestParameters)Continue transaction currently waiting for card application selection response.ParameterscontinueDeferredAuthorization(Parameters requestParameters)Continue transaction currently waiting for deferred authorisation response.ParameterscontinueForceAcceptance(Parameters requestParameters)Continue transaction currently waiting for forced acceptance response.ParameterscontinueIdVerification(Parameters requestParameters)Continue transaction currently waiting for ID verification response.ParameterscontinuePartialApproval(Parameters requestParameters)Continue transaction currently waiting for parital approval response.ParameterscontinueSignatureCapture(Parameters requestParameters)Continue transaction currently waiting for signature capture.ParameterscontinueSignatureVerification(Parameters requestParameters)Continue transaction currently waiting for signature verification.ParameterscontinueVoiceReferral(Parameters requestParameters)Continue transaction currently waiting for voice referral response.ParametersdeleteFailedOfflineRequest(Parameters requestParameters)Delete a transaction which has been moved to the failed offline queue.Parametersdisconnect(Parameters requestParameters)Disconnects the currently connected PINpad.static Parametersdispose(Parameters request)Disposes of ChipDnaMobile.ParametersgetAvailableCurrencies(Parameters requestParameters)Retrieve the available currencies for currently configured terminal.ParametersgetAvailablePinPads(Parameters requestParameters)Search for PIN pads paired (Bluetooth & Bluetooth Low Energy) and/or connected (USB) to the Android device.ParametersgetCardDetails(Parameters requestParameters)Acquire card details without performing a transaction.static ChipDnaMobilegetInstance()Gets the instance of ChipDnaMobile.ParametersgetMerchantData(Parameters requestParameters)Get all merchant data in a single call.static java.lang.StringgetSoftwareName()Gets the software name.static java.lang.StringgetSoftwareVersion()Gets the software version.static java.lang.StringgetSoftwareVersionName()Get the software version name.ParametersgetStatus(Parameters requestParameters)Check the current status of different components of ChipDNA Mobile in a single call.ParametersgetTransactionInformation(Parameters requestParameters)Get information stored about a transaction.static Parametersinitialize(android.content.Context applicationContext, Parameters parameters)Initializes ChipDnaMobile.static booleanisInitialized()Returns whether ChipDnaMobile has been initialized.ParameterslinkedRefundTransaction(Parameters requestParameters)Start a linked refund transaction to refund part or all of a previously online approved transaction.ParametersprocessReceipt(Parameters requestParameters)Send receipts via email or SMS using the Creditcall platform.voidremoveApplicationSelectionListener(IApplicationSelectionListener listener)Remove a listener currently listening for card application selection.voidremoveAvailablePinPadsListener(IAvailablePinPadsListener listener)Remove a listener that was previously added viaaddAvailablePinPadsListener(IAvailablePinPadsListener).voidremoveCardDetailsListener(ICardDetailsListener listener)Remove a listener that was previously added viaaddCardDetailsListener(ICardDetailsListener).voidremoveConfigurationUpdateListener(IConfigurationUpdateListener listener)Remove a listener that was previously added viaaddConfigurationUpdateListener(IConfigurationUpdateListener).voidremoveConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener listener)Remove a listener that was previously added viaaddConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener).voidremoveDeferredAuthorizationListener(IDeferredAuthorizationListener listener)Remove a listener that was previously added viaaddDeferredAuthorizationListener(IDeferredAuthorizationListener).voidremoveDeviceUpdateListener(IDeviceUpdateListener listener)Remove a listener that was previously added viaaddDeviceUpdateListener(IDeviceUpdateListener).voidremoveFirmwareUpdateListener(IFirmwareUpdateListener listener)Remove a listener that was previously added viaaddFirmwareUpdateListener(IFirmwareUpdateListener).voidremoveForceAcceptanceListener(IForceAcceptanceListener listener)Remove a listener that was previously added viaaddForceAcceptanceListener(IForceAcceptanceListener).voidremovePartialApprovalListener(IPartialApprovalListener listener)Remove a listener that was previously added viaaddPartialApprovalListener(IPartialApprovalListener).voidremoveProcessReceiptFinishedListener(IProcessReceiptFinishedListener listener)Remove a listener that was previously added viaaddProcessReceiptFinishedListener(IProcessReceiptFinishedListener).voidremoveSignatureCaptureListener(ISignatureCaptureListener listener)Remove a listener that was previously added viaaddSignatureCaptureListener(ISignatureCaptureListener).voidremoveSignatureVerificationListener(ISignatureVerificationListener listener)Remove a listener that was previously added viaaddSignatureVerificationListener(ISignatureVerificationListener).voidremoveTmsUpdateListener(ITmsUpdateListener listener)Remove a listener that was previously added viaaddTmsUpdateListener(ITmsUpdateListener).voidremoveTransactionFinishedListener(ITransactionFinishedListener listener)Remove a listener that was previously added viaaddTransactionFinishedListener(ITransactionFinishedListener).voidremoveTransactionUpdateListener(ITransactionUpdateListener listener)Remove a listener that was previously added viaaddTransactionUpdateListener(ITransactionUpdateListener).voidremoveUserNotificationListener(IUserNotificationListener listener)Remove a listener currently listening for user notifications.voidremoveVerifyIdListener(IVerifyIdListener listener)Remove a listener that was previously added viaaddVerifyIdListener(IVerifyIdListener).voidremoveVoiceReferralListener(IVoiceReferralListener listener)Remove a listener that was previously added viaaddVoiceReferralListener(IVoiceReferralListener).ParametersrequestTmsUpdate(Parameters requestParameters)Forces an update using the TMS server.ParametersretryFailedOfflineRequest(Parameters requestParameters)Retry a transaction which has been moved to the failed offline queue.ParameterssetIdleMessage(Parameters requestParameters)Display text on the PIN pad for a given amount of time at which point the PIN pad will return to idle.ParameterssetProperties(Parameters requestParameters)Set properties required to configured ChipDNA Mobile.ParametersstartTransaction(Parameters requestParameters)Start a transaction.ParametersterminateTransaction(Parameters requestParameters)Terminate the currently processing transaction.ParametersvoidTransaction(Parameters requestParameters)Void a previously approved but uncommited transaction.
-
-
-
Method Detail
-
setProperties
public Parameters setProperties(Parameters requestParameters)
Set properties required to configured ChipDNA Mobile.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.TerminalIdSet the terminal ID.ParameterKeys.TransactionKeySet the transaction key.ParameterKeys.ApiKeySet the Api Key for the payment gateway.ParameterKeys.ApplicationIdentifierSet Application Identifier.ParameterKeys.EnvironmentSet the environment toLIVEorSTAGING.ParameterKeys.PinPadNameSet the PIN pad name retrieved usinggetAvailablePinPads(Parameters).CCParamPinPadConnectionTypeSet the connection type of the PIN pad. Valid values areParameterValues.BluetoothConnectionType,ParameterValues.BluetoothLeConnectionTypeorParameterValues.UsbConnectionType.ParameterKeys.WebMisUsernameSet WebMIS username for environment specified inParameterKeys.Environment.ParameterKeys.WebMisPasswordSet WebMIS password for environment specified inParameterKeys.Environment.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
getAvailablePinPads
public Parameters getAvailablePinPads(Parameters requestParameters)
Search for PIN pads paired (Bluetooth & Bluetooth Low Energy) and/or connected (USB) to the Android device. Register listener usingaddAvailablePinPadsListener(IAvailablePinPadsListener)to get search results reported viaIAvailablePinPadsListener.onAvailablePinPads(Parameters).Supported Pin pads are BBPOS Chipper 2X BT, BBPOS Chipper 30 BT, Datecs Bluepad50, Miura M020, Miura M021 and IDTech VP3350.
- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.SearchConnectionTypeBluetooth- (Optional) Search for bluetooth PINpads.ParameterKeys.SearchConnectionTypeBluetoothLe- (Optional) Search for bluetooth low energy PINpads.ParameterKeys.SearchConnectionTypeUsb- (Optional) Search for USB PINpads.ParameterKeys.SearchOnlyOnlineBluetoothLePinPads- (Optional) Search for only online bluetooth low energy PINpads. This is currently only supported on IDTech VP3350 devicesIf no parameter is specified, ChipDna Mobile will search for bluetooth pinpads only
ParameterKeys.BLEScanTime- (Optional) Set the length of time to scan for Bluetooth Low Energy (BLE) devices. The value must be a string valued number between 1 and 30. The default value of 5 seconds will be used if this value is not available.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
requestTmsUpdate
public Parameters requestTmsUpdate(Parameters requestParameters)
Forces an update using the TMS server. This checks whether the current version of ChipDnaMobile is valid to use, whether the Terminal ID is disabled and downloads the settings configured on the TMS server. The result of a TMS update is returned to observers registered usingaddTmsUpdateListener(ITmsUpdateListener)- Parameters:
requestParameters- Parameter collection which can contain the following:ParameterKeys.FullTmsUpdateForces a full TMS update. All configuration for the currently connected PIN pad is downloaded regardless of whether it's required.ParameterKeys.ApplyFirmwareUpdate(Only supported on VP3350) When present with the valueParameterValues.FALSE, this stops a firmware update beginning, if one is available.- Returns:
- parameter collection containing
ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
getTransactionInformation
public Parameters getTransactionInformation(Parameters requestParameters)
Get information stored about a transaction.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.UserReferenceThe user reference used during the call tostartTransaction(Parameters).- Returns:
Parameterswhich can contain:ParameterKeys.Resultresult of the call to getTransactionInformation. Can have valuesParameterValues.TRUEorParameterValues.FALSE.ParameterKeys.Errorsa comma separated string of errors which occurred during the call to getTransactionInformation.ParameterKeys.UserReferenceThe user reference of the transaction.ParameterKeys.AmountThe amount the transaction was performed for.ParameterKeys.TipAmountThe tip amount tip amount for the transaction.ParameterKeys.EnvironmentThe payment environment which the transaction applies to.ParameterKeys.CurrencyThe currency used during the transaction. Value is the 3 character code passed in during the call tostartTransaction(Parameters).ParameterKeys.TransactionStateThe current state of the transaction.CCParamTransactionTypeThe transaction type can beParameterValues.Sale,ParameterValues.RefundorParameterValues.AccountVerification.ParameterKeys.TransactionResultThe current result of the transaction.ParameterKeys.OfflineStatusIf returned indicates the status of the transaction in the offline queue.ParameterKeys.LinkedRefundReferencesComma separated string of user references for linked refunds linked to this transaction.ParameterKeys.CardHashCollectionlist of tokens generated by Creditcall payment gateway and or payment device that can be used to identify a card without the PAN. Value in XML format representing List ofCardHash, deserialize into object usingChipDnaMobileSerializer.deserializeCardHashes(String).ParameterKeys.CardReferenceThe unique reference generated by the Creditcall payment gateway that can be used to identify a card without using the PAN.ParameterKeys.TransactionDateTimeThe date and time the transaction was performed.ParameterKeys.DateTimeFormatThe format of the date and time inParameterKeys.TransactionDateTimeparameter.ParameterKeys.TransactionIdThe identifier for transactions using the payment gateway.ParameterKeys.ParPayment Account Reference, alpha numeric reference that is 29 characters in length.
-
getStatus
public Parameters getStatus(Parameters requestParameters)
Check the current status of different components of ChipDNA Mobile in a single call.Parameters returned can be filtered by passing in the
ParameterKeyswith a value ofTRUE. OnlyParameterKeyslisted in the possible return parameters can be filtered for. If one or more validParameterKeyswith a value ofTRUEis passed into the request, filtering is enabled, and only the filteredParameterKeyswill be returned if available.If no
ParameterKeysare passed into the request or justPaymentPlatformTest, then all availableParameterKeysare returned in the response.- Parameters:
requestParameters-Parameterscollection which can contain the following:
AnyParameterKeys.PaymentPlatformTest- (Optional) with a value ofParameterValues.TRUEwill check the status of the payment platform returning the result in aPaymentPlatformStatusobject in the response. GetStatus call is expensive if the PaymentPlatformTest is included. Sending this parameter does not enable filtering as it not returned as default.ParameterKeyswith a value ofTRUElisted in the possible return parameters. (ExceptResultandPaymentPlatformStatus)- Returns:
- Parameter collection containing the following:
ParameterKeys.Result- Defines if the call to getStatus was successful using the valuesTRUEandFALSEParameterKeys.VersionInformation- An XML representation of aVersionInformationobject.ChipDnaMobileSerializer.deserializeVersionInformation(String)can be used to retrieve an object.ParameterKeys.ChipDnaStatus- A string representing the current status of ChipDNA Mobile.ParameterKeys.DeviceStatus- An XML representation of aDeviceStatusobject.ChipDnaMobileSerializer.deserializeDeviceStatus(String)can be used to retrieve an object.ParameterKeys.TmsStatus- An XML representation of aTmsStatusobject.ChipDnaMobileSerializer.deserializeTmsStatus(String)can be used to retrieve an object.ParameterKeys.TerminalStatus- An XML representation of the liveTerminalStatus.ChipDnaMobileSerializer.deserializeTerminalStatus(String)can be used to retrieve an object.ParameterKeys.Environment- The current environment ChipDnaMobile is currently running in. Will have a value of eitherParameterValues.LiveEnvironmentorParameterValues.TestEnvironment.ParameterKeys.RequestQueueStatus- An XML representation of aRequestQueueStatusobject.ChipDnaMobileSerializer.deserializeRequestQueueStatus(String)can be used to retrieve an object.ParameterKeys.PaymentPlatformStatus- An XML representation of aPaymentPlatformStatusobject.ChipDnaMobileSerializer.deserializePaymentPlatformStatus(String)can be used to retrieve an object.ParameterKeys.LinkedRefundsSupported- When present with the valueParameterValues.TRUEindicates that linked refunds are supported with the currently configured terminal.ParameterKeys.StandaloneRefundsSupported- When present with the valueParameterValues.TRUEindicates that standalone refunds are supported with the currently configured terminal.ParameterKeys.CashTransactionsSupported- When present with the valueParameterValues.TRUEindicated that cash transactions are supported with the currently configured terminal.ParameterKeys.ChequeTransactionsSupported- When present with the valueParameterValues.TRUEindicates that cheque transactions are supported with the currently configured terminal.ParameterKeys.TransactionHistorySupported- When present with the valueParameterValues.TRUEindicates that transaction history is supported with the currently configured terminal.ParameterKeys.EmailReceiptSupported- When present with the valueParameterValues.TRUEindicates that centralized emails receipting is supported with the currently configured terminal.ParameterKeys.SmsReceiptSupported- When present with the valueParameterValues.TRUEindicates tha centralized SMS receipting is supported with the currently configure terminal.ParameterKeys.RefundOperatorPinSupported- Indicates that an operator PIN must be supplied to perform standalone refunds with the currently configured terminal if present with the valueTRUE.ParameterKeys.OfflineProcessingSupported- When present with the valueParameterValues.TRUEindicates that offline transaction processing is supported with the currently configured terminal.ParameterKeys.TippingSupported- If present indicates the type of tipping supported with the currently configured terminal. Values can be:ParameterValues.EndOfDayTipping,ParameterValues.OnDeviceTipping, orParameterValues.BothTippingParameterKeys.ApplicationIdentifier- A string representing the current identifier for the application.ParameterKeys.MerchantDisplayName- If present indicates the currently configured merchant display name.ParameterKeys.PinPadName- Indicates the currently configured PINpad name, if present.ParameterKeys.PinPadConnectionType- Indicates the currently configured PINpad connection type, if present.ParameterKeys.PinPadIpAddress- Indicates the currently configured PINpad IP address, if present.ParameterKeys.PinPadPort- Indicates the currently configured PINpad port, if present.ParameterKeys.FirmwareUpdateAvailable- Indicates if a firmware update is available for the currently configured PINpad.ParameterKeys.FirmwareUpdateStatus- An XML representation of aFirmwareUpdateStatusobject.ChipDnaMobileSerializer.deserializeFirmwareUpdateStatus(String)can be used to retrieve the object.
-
getMerchantData
public Parameters getMerchantData(Parameters requestParameters)
Get all merchant data in a single call.- Parameters:
requestParameters-Parameterscurrently not used, can be set to null.- Returns:
- Parameter collection containing the following:
Resultdefining if the call to getMerchantData was successful using the valuesTRUEandFALSE.MerchantDataAn XML representation of theMerchantData.ChipDnaMobileSerializer.deserializeMerchantData(String)can be used to retrieve an object.
-
getAvailableCurrencies
public Parameters getAvailableCurrencies(Parameters requestParameters)
Retrieve the available currencies for currently configured terminal.- Parameters:
requestParameters-Parameterscollection not currently in use. Can be nil.- Returns:
- A parameter list which can contain:
ParameterKeys.Resultresult of the call to getAvailableCurrencies which can contain valuesParameterValues.TRUEorParameterValues.FALSE.ParameterKeys.Errorsa comma separated string of errors which have occurred during the call to getAvailableCurrencies.ParameterKeys.AvailableCurrenciesAn XML representation of the available currencies for each payment method. XML can be deserialized usingChipDnaMobileSerializer.deserializeAvailableCurrencies(String)into aHashMapwith keysPaymentMethodand valuesArrayListofCurrency.
-
connectAndConfigure
public Parameters connectAndConfigure(Parameters requestParameters)
Connect to and configure the current device. This method will perform all necessary actions required to get the selected PIN pad ready for transaction. This includes performing TMS updates if required.To force a TMS update add parameter
This method can be called regardless of the current connection state of the PIN pad. When the PIN pad is already connected TMS checks will be made and a TMS update performed if required. When new configuration is available this method will then re-configure the PIN pad. This method can also perform registration when required. Register listener usingParameterKeys.ForceTmsUpdatewith valueParameterValues.TRUEand to force Full Tms Update pass paramterParameterKeys.FullTmsUpdatewith valueParameterValues.TRUE.addConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener)to get the results of calling this method. To receive updates on the progress of this method register listener usingaddConfigurationUpdateListener(IConfigurationUpdateListener)method. Updates are reported byIConfigurationUpdateListener.onConfigurationUpdateListener(Parameters)which will contain aParameterKeys.ConfigurationUpdatekey with the following values:ParameterValues.ConnectionAndConfigureStartedParameterValues.PerformingTmsUpdateParameterValues.CheckingPinPadConfig
To receive updates on the current connection status of the PIN pad observers can be added using theParameterValues.UpdatingPinPadConfigaddDeviceUpdateListener(IDeviceUpdateListener)method. Updates are reported byIDeviceUpdateListener.onDeviceUpdate(Parameters)which will contain aParameterKeys.DeviceStatusUpdateitem with a serializedDeviceStatusobject value.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.ForceTmsUpdateForce connectAndConfigure to perform a TMS update whether one is required or not.ParameterKeys.FullTmsUpdateForce a full TMS update whether one is required or not. All configuration will be downloaded regardless of whether it's required.ParameterKeys.BLEScanTime(Optional) Set the length of time to scan for Bluetooth Low Energy (BLE) devices. The value is required to be a string valued number between 1 and 30. The default value of 5 seconds will be used if this value is not available.ParameterKeys.ApplyFirmwareUpdate(Only supported on VP3350) When present with the valueParameterValues.FALSE, this stops a firmware update beginning, if one is available.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
getCardDetails
public Parameters getCardDetails(Parameters requestParameters)
Acquire card details without performing a transaction. Register listener usingaddCardDetailsListener(ICardDetailsListener)to get the card details results.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Currencyindicating the currency to be set. Only needs to be set if more than one currency is supported. UsegetAvailableCurrencies(Parameters)to check for supported currencies- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
startTransaction
public Parameters startTransaction(Parameters requestParameters)
Start a transaction. Register listener usingaddTransactionFinishedListener(ITransactionFinishedListener)then get the transaction results. To receive updates during a transaction register listener usingaddTransactionUpdateListener(ITransactionUpdateListener).Before calling
startTransaction(Parameters)implement and register listeners forIDeferredAuthorizationListenerIForceAcceptanceListenerIPartialApprovalListenerISignatureVerificationListenerITransactionFinishedListenerITransactionUpdateListenerIVerifyIdListenerIVoiceReferralListenerIUserNotificationListener- required for BBPOS Chipper 2X BT & BBPOS Chipper 30 BTIApplicationSelectionListener- required for BBPOS Chipper 2X BT & BBPOS Chipper 30 BT
- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Amount(Required) The amount to be used in the transaction.ParameterKeys.UserReference(Required) A unique reference for this transaction.ParameterKeys.TransactionType(Required) The transaction type for this transaction. Values can beParameterValues.SaleorParameterValues.RefundorParameterValues.AccountVerification.ParameterKeys.CurrencySet the currency for this transaction. Only required whengetAvailableCurrencies(Parameters)returns more than one currency. If only a single currency is supported, it will be used by default.ParameterKeys.PANKeyEntryRequests a PAN Key Entry transaction is started for a card not present transaction. Values can beParameterValues.TRUEorParameterValues.FALSE.ParameterKeys.DelayOnlineProcessingRequests that online processing is delayed. Values can beParameterValues.TRUEorParameterValues.FALSE. In this case the transaction will process to the point of going online and then return a EncodedRequest to the registeredITransactionFinishedListenerParameterKeys.PaymentMethodSpecifies the payment method being used for this transaction. Values can beParameterValues.Card,ParameterValues.CashorParameterValues.Cheque.ParameterKeys.CredentialOnFileFirstStore(Optional) Flags the transaction as the first store for a Credential on File transaction when the value isParameterValues.TRUEParameterKeys.CredentialOnFileReason(Optional) Indicates the reason for a Credential on File transaction. Only considered if the value forParameterKeys.CredentialOnFileFirstStoreisParameterValues.TRUE. Values can be:ParameterValues.ReasonUnscheduledParameterValues.ReasonInstallmentParameterValues.ReasonIncrementalParameterValues.ReasonResubmissionParameterValues.ReasonDelayedChargeParameterValues.ReasonReAuthParameterValues.ReasonNoShow
ParameterKeys.OnDeviceTippingPrompt(Optional) Sets a custom tipping prompt for on-device tipping. Only supported on Miura M020 and M021 PIN pads.ParameterKeys.DynamicTippingAmounts(Optional) orParameterKeys.DynamicTippingPercentages(Optional) Enables on-device dynamic tipping using the provided amounts or percentages. Only one of the amount types can be used in a request. Dynamic tipping is currently only supported on Miura M020 and M021 PIN pads.ParameterKeys.DynamicTippingHeader(Optional) Sets the header for the dynamic tipping screen. This is only supported if dynamic tipping is enabled.ParameterKeys.FeatureTokens(Optional) The XML string of feature token(s) created byChipDnaMobileSerializer.serializeFeatureTokens(List)to be sent in the online request to have a collection of card tokens for the PAN returned in theITransactionFinishedListener.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueSignatureVerification
public Parameters continueSignatureVerification(Parameters requestParameters)
Continue transaction currently waiting for signature verification. Register listener usingaddSignatureVerificationListener(ISignatureVerificationListener)to receive the signature verification event. When triggered the event will contain aParameterscollection containingParameterKeys.ResponseRequiredwith valueParameterValues.TRUE.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.Resultindicating the outcome of signature verification. Value can beParameterValues.TRUEto indicate that signature verification was successful orParameterValues.FALSEto indicate that signature verification has failed.ParameterKeys.OperatorPinrequired whenISignatureVerificationListener.onSignatureVerification(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueDeferredAuthorization
public Parameters continueDeferredAuthorization(Parameters requestParameters)
Continue transaction currently waiting for deferred authorisation response. Informs ChipDnaMobile if the integrating application wishes to proceed with the deferred authorization.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Resultindicating whether to proceed. Value can beParameterValues.TRUEto indicate that the deferred authorization should be approved, orParameterValues.FALSEto indicate that the deferred authorization should be declined.ParameterKeys.OperatorPinrequired whenIDeferredAuthorizationListener.onDeferredAuthorizationListener(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueVoiceReferral
public Parameters continueVoiceReferral(Parameters requestParameters)
Continue transaction currently waiting for voice referral response. Informs ChipDnaMobile of the result of voice referral.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Resultindicating the outcome of a voice referral. Value can beParameterValues.TRUEto indicate that the voice referral has been approved, orParameterValues.FALSEto indicate that the voice referral has been declined.ParameterKeys.AuthCodeThe auth code of the voice referral. For approved voice referral, it must be 1-6 alphanumeric characters. For declined voice referral, auth code will be ignored.ParameterKeys.OperatorPinrequired whenIVoiceReferralListener.onVoiceReferral(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continuePartialApproval
public Parameters continuePartialApproval(Parameters requestParameters)
Continue transaction currently waiting for parital approval response. Informs ChipDnaMobile if the integrating application wishes to proceed with the partial approval.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Resultindicating the outcome of a partial approval. Value can beParameterValues.TRUEto indicate that the partial approval has been approved, orParameterValues.FALSEto indicate that the partial approval has been declined.ParameterKeys.OperatorPinrequired whenIPartialApprovalListener.onPartialApproval(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueForceAcceptance
public Parameters continueForceAcceptance(Parameters requestParameters)
Continue transaction currently waiting for forced acceptance response. Informs ChipDnaMobile if the integrating application wishes to proceed with the forced acceptance.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Resultindicating the outcome of forced acceptance. Value can beParameterValues.TRUEto indicate that the forced acceptance has been approved, orParameterValues.FALSEto indicate that the forced acceptance has been declined.ParameterKeys.OperatorPinrequired whenIForceAcceptanceListener.onForceAcceptance(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:
.ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueIdVerification
public Parameters continueIdVerification(Parameters requestParameters)
Continue transaction currently waiting for ID verification response. Informs ChipDnaMobile of the result of ID verification.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.Resultindicating the outcome of a partial approval. Value can beParameterValues.TRUEto indicate that ID verification has been approved, orParameterValues.FALSEto indicate that ID verification has been declined.ParameterKeys.OperatorPinrequired whenIVerifyIdListener.onVerifyId(Parameters)containsParameterKeys.OperatorPinRequiredwith valueParameterValues.TRUE.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueApplicationSelection
public Parameters continueApplicationSelection(Parameters requestParameters)
Continue transaction currently waiting for card application selection response. Informs ChipDnaMobile of the result of a card application selection.- Parameters:
requestParameters- A parameter list which can contain:ParameterKeys.Resultindicating the outcome of a card application selection. Value can beParameterValues.TRUEto indicate that the card application selection has been completed, orParameterValues.FALSEto indicate that the card application selection has failed.ParameterKeys.SelectedApplicationis required to return the selected card application- Returns:
- parameter collection containing
ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
continueSignatureCapture
public Parameters continueSignatureCapture(Parameters requestParameters)
Continue transaction currently waiting for signature capture. This method should be called in order to pass in digital signature information.Register listener using
addSignatureCaptureListener(ISignatureCaptureListener)to receive the signature capture event. When triggered the event will contain aParameterscollection containingParameterKeys.ResponseRequiredwith valueParameterValues.TRUE.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.SignatureDatacontaining data for digital signature represented as a base64 string of PNG image data. Signature must be a minimum dimension of 25x150 or 150x25 pixels not including white space.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
linkedRefundTransaction
public Parameters linkedRefundTransaction(Parameters requestParameters)
Start a linked refund transaction to refund part or all of a previously online approved transaction.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.AmountThe amount to be refunded.ParameterKeys.UserReferenceA unique user reference for the linked refund.ParameterKeys.SaleReferenceThe user reference for the original sale transaction. When this parameter is used then original saleParameterKeys.CardEaseReferencemust not be providedParameterKeys.CardEaseReferenceThe CardEase reference for the original sale transaction. When this parameter is used then the original saleParameterKeys.SaleReferencemust not be provided.- Returns:
- A parameter collection which can contain:
ParameterKeys.TransactionResultindicating if the transaction has beenParameterValues.ApprovedorParameterValues.Declined.
.ParameterKeys.ErrorsContaining a comma separated list of errors which have occured.ParameterKeys.ReceiptDataonly returned when transaction result is approved. Serialized receipt data in XML format. The data can be deserialized into an NSDictionary usingChipDnaMobileSerializer.deserializeReceiptData(String). The deserialized NSDictionary will have the stringChipDnaMobileSerializer.ReceiptItemTagas keys andReceiptFieldobjects as values.ParameterKeys.PreformattedMerchantReceiptA preformatted merchant receipt string. Only returned on approval.ParameterKeys.PreformattedCustomerReceiptA preformatted customer receipt string. Only returned on approval.ParameterKeys.ParPayment Account Reference, alpha numeric reference that is 29 characters in length.ParameterKeys.AmountThe amount refunded in minor units e.g. "123" for GBP1.23.ParameterKeys.PaymentMethodWhen performing a Cash or Cheque Linked Refund, the payment method ofParameterValues.CashorParameterValues.Chequewill need to be provided, Card will be used by defaultParameterKeys.UserReferenceThe unique user reference for the linked refund.ParameterKeys.TransactionDateTimeUtcThe UTC date and time of the refund transaction.ParameterKeys.CurrencyThe 3-char currency code used during the transaction.ParameterKeys.MaskedPanThe masked primary account number of the original sale transaction, showing only the first 6 (if available) and last 4 digits.ParameterKeys.DateTimeFormatThe format of the date and time inParameterKeys.TransactionDateTimeparameter.ParameterKeys.CardSchemeIdTheParameterKeys.CardSchemeIdof the original sale transaction.ParameterKeys.CardEaseReferenceThe CardEase reference for the linked refund transaction - a unique GUID generated for a transaction if the authorization was submitted online to the Creditcall payment platform.ParameterKeys.AuthCodeAlpha numeric authorization code, up to 12 characters.CCParamTransactionTypeThe transaction type will beParameterValues.Refund.ParameterKeys.CardReferenceThe unique reference generated by the Creditcall payment gateway that can be used to identify a card without using the PAN.ParameterKeys.TransactionDateTimeThe local date and time the refund transaction was performed.ParameterKeys.CardHashCollectionlist of tokens generated by Creditcall payment gateway and or payment device that can be used to identify a card without the PAN. Value in XML format representing List ofCardHash, deserialize into object usingChipDnaMobileSerializer.deserializeCardHashes(String).
-
confirmTransaction
public Parameters confirmTransaction(Parameters requestParameters)
Finalizes a transaction after it has been approved so that the transaction will be settled. This method allows the transcation to be committed using a different amount to the authorized amount.- Parameters:
requestParameters-Parameterscollection which can contain the following:ParameterKeys.UserReferenceThe unique user reference used when performing the transaction.ParameterKeys.AmountThe amount to confirm the transaction for.ParameterKeys.TipAmountThe tip amount for the transaction. Can only be used for transaction which used end of day tipping.ParameterKeys.CloseTransactionClose the current transaction. Only available when end of day tipping is enabled. By default this parameter isParameterValues.TRUE.- Returns:
- Parameter collection which can contain:
ParameterKeys.TransactionResultindicating if commiting the transaction has beenParameterValues.ApprovedorParameterValues.Declined.ParameterKeys.ErrorsContaining a comma separated list of errors which have occured.ParameterKeys.ReceiptDataonly returned when transaction result is approved. Serialized receipt data in XML format. The data can be deserialized into an NSDictionary usingChipDnaMobileSerializer.deserializeReceiptData(String). The deserialized NSDictionary will have the stringChipDnaMobileSerializer.ReceiptItemTagas keys andReceiptFieldobjects as values.ParameterKeys.PreformattedMerchantReceiptA preformatted merchant receipt string. Only returned on approval.ParameterKeys.PreformattedCustomerReceiptA preformatted customer receipt string. Only returned on approval.
-
voidTransaction
public Parameters voidTransaction(Parameters requestParameters)
Void a previously approved but uncommited transaction.- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.UserReferenceThe unique user reference used during the call tostartTransaction(Parameters).- Returns:
- A parameter list which can contain:
ParameterKeys.TransactionResultindicating if voiding the transaction has beenParameterValues.ApprovedorParameterValues.Declined.ParameterKeys.ReceiptDataonly returned when transaction result is approved. Serialized receipt data in XML format. The data can be deserialized into an NSDictionary usingChipDnaMobileSerializer.deserializeReceiptData(String). The deserialized NSDictionary will have the stringChipDnaMobileSerializer.ReceiptItemTagas keys andReceiptFieldobjects as values.ParameterKeys.PreformattedMerchantReceiptA preformatted merchant receipt string. Only returned on approval.ParameterKeys.PreformattedCustomerReceiptA preformatted customer receipt string. Only returned on approval.
-
terminateTransaction
public Parameters terminateTransaction(Parameters requestParameters)
Terminate the currently processing transaction.- Parameters:
requestParameters-ParametersCurrently not used, can be set to null.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
retryFailedOfflineRequest
public Parameters retryFailedOfflineRequest(Parameters requestParameters)
Retry a transaction which has been moved to the failed offline queue.- Parameters:
requestParameters-Parameterscollection which contains theParameterKeys.UserReferenceof the transaction wishing to be retried.- Returns:
- A parameter collection which can contain:
ParameterKeys.TransactionResultindicating if retrying the transaction has beenParameterValues.ApprovedorParameterValues.Declined.ParameterKeys.Errorscontains any errors which occured during the call toretryFailedOfflineRequest(Parameters).ParameterKeys.ReceiptDataonly returned when transaction result is approved. Serialized receipt data in XML format. The data can be deserialized into an NSDictionary usingChipDnaMobileSerializer.deserializeReceiptData(String). The deserialized NSDictionary will have the stringChipDnaMobileSerializer.ReceiptItemTagas keys andReceiptFieldobjects as values.ParameterKeys.PreformattedMerchantReceiptA preformatted merchant receipt string. Only returned on approval.ParameterKeys.PreformattedCustomerReceiptA preformatted customer receipt string. Only returned on approval.
-
deleteFailedOfflineRequest
public Parameters deleteFailedOfflineRequest(Parameters requestParameters)
Delete a transaction which has been moved to the failed offline queue.- Parameters:
requestParameters-Parameterscollection containing theParameterKeys.UserReferenceof the transaction to be deleted.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
setIdleMessage
public Parameters setIdleMessage(Parameters requestParameters)
Display text on the PIN pad for a given amount of time at which point the PIN pad will return to idle. Currently only supported by Miura PIN pads.- Parameters:
requestParameters-Parameterscollection which can contain:CCParamIdleMessageMessage to be displayed by PIN pad. Use value ofParameterValues.ClearIdleMessageto clear the message back to default.ParameterKeys.DisplayTimeAmount of time for the message to be displayed in seconds. Should be a decimal value, between 1 and 2147483. This parameter is optional, if it is not supplied or set to 0 an infinite time will be used.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
processReceipt
public Parameters processReceipt(Parameters requestParameters)
Send receipts via email or SMS using the Creditcall platform.Register listener using
addProcessReceiptFinishedListener(IProcessReceiptFinishedListener), results are returned viaIProcessReceiptFinishedListener.onProcessReceiptFinishedListener(Parameters).- Parameters:
requestParameters-Parameterscollection which can contain:ParameterKeys.UserReferenceUser reference of the transaction the receipt is for. This is mandatory.ParameterKeys.SendEmailReceiptSet value toParameterValues.TRUEto send receipt via email.ParameterKeys.SendSmsReceiptSet value toParameterValues.TRUEto send a receipt via SMS.ParameterKeys.ReceiptTextDefines the receipt text to be sent.ParameterKeys.EmailAddressRequired for email receipts, defines the email to send the receipt to.ParameterKeys.PhoneNumber, Required for SMS receipts, defines the phone number to send the receipt to.ParameterKeys.ReceiptSourceNameDefines the name of the entity sending the receipt. For SMS receipts this field is used for setting the 'SMS Originating Address' - i.e. the sender name shown on mobiles. Support for this field is networks dependent.ParameterKeys.ReceiptSourceEmailRequired only for email receipts,defines the email of the receipt is being sent from.ParameterKeys.ReceiptEmailSubjectRequired only for email receipts, defines the subject of the receipt email.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
disconnect
public Parameters disconnect(Parameters requestParameters)
Disconnects the currently connected PINpad. The PINpad will only be disconnected if the device is not busy. To receive updates on the current connection status of the PIN pad observers can be added using theaddDeviceUpdateListener(IDeviceUpdateListener)method. Updates are reported byIDeviceUpdateListener.onDeviceUpdate(Parameters)which will contain aParameterKeys.DeviceStatusUpdateitem with a serializedDeviceStatusobject value.- Parameters:
requestParameters-ParametersCurrently not used, can be set to null.- Returns:
Parameterscollection which can contain:ParameterKeys.Resultand if applicableParameterKeys.Errors.
-
addAvailablePinPadsListener
public void addAvailablePinPadsListener(IAvailablePinPadsListener listener)
Add a listener to get events when calling methodgetAvailablePinPads(Parameters).To remove registered listener call
removeAvailablePinPadsListener(IAvailablePinPadsListener)method. To remove all registered listeners callclearAllAvailablePinPadsListeners()method.- Parameters:
listener- implementation ofIAvailablePinPadsListener.
-
removeAvailablePinPadsListener
public void removeAvailablePinPadsListener(IAvailablePinPadsListener listener)
Remove a listener that was previously added viaaddAvailablePinPadsListener(IAvailablePinPadsListener).- Parameters:
listener- The listener to be removed.
-
clearAllAvailablePinPadsListeners
public void clearAllAvailablePinPadsListeners()
Remove all listeners that were added viaaddAvailablePinPadsListener(IAvailablePinPadsListener).
-
addConnectAndConfigureFinishedListener
public void addConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener listener)
Add a listener to get events when methodconnectAndConfigure(Parameters)has completed.To remove registered listener call
removeConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener)method. To remove all registered listeners callclearAllConnectAndConfigureFinishedListeners()method.- Parameters:
listener- implementation ofIConnectAndConfigureFinishedListener.
-
removeConnectAndConfigureFinishedListener
public void removeConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener listener)
Remove a listener that was previously added viaaddConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener).- Parameters:
listener- The listener to be removed.
-
clearAllConnectAndConfigureFinishedListeners
public void clearAllConnectAndConfigureFinishedListeners()
Remove all listeners that were added viaaddConnectAndConfigureFinishedListener(IConnectAndConfigureFinishedListener).
-
addDeviceUpdateListener
public void addDeviceUpdateListener(IDeviceUpdateListener listener)
Add a listener to get events about device connectivity. Register listener before calling methodconnectAndConfigure(Parameters).To remove registered listener call
removeDeviceUpdateListener(IDeviceUpdateListener)method. To remove all registered listeners callclearAllDeviceUpdateListeners()method.- Parameters:
listener- implementation ofIDeviceUpdateListener.
-
removeDeviceUpdateListener
public void removeDeviceUpdateListener(IDeviceUpdateListener listener)
Remove a listener that was previously added viaaddDeviceUpdateListener(IDeviceUpdateListener).- Parameters:
listener- The listener to be removed.
-
clearAllDeviceUpdateListeners
public void clearAllDeviceUpdateListeners()
Remove all listeners that were added viaaddDeviceUpdateListener(IDeviceUpdateListener)
-
addConfigurationUpdateListener
public void addConfigurationUpdateListener(IConfigurationUpdateListener listener)
Add a listener to get events about device configuration. Register listener before calling methodconnectAndConfigure(Parameters).To remove registered listener call
removeConfigurationUpdateListener(IConfigurationUpdateListener)method. To remove all registered listeners callclearAllConfigurationUpdateListeners()method.- Parameters:
listener- implementation ofIConfigurationUpdateListener.
-
removeConfigurationUpdateListener
public void removeConfigurationUpdateListener(IConfigurationUpdateListener listener)
Remove a listener that was previously added viaaddConfigurationUpdateListener(IConfigurationUpdateListener).- Parameters:
listener- The listener to be removed.
-
clearAllConfigurationUpdateListeners
public void clearAllConfigurationUpdateListeners()
Remove all listeners that were added viaaddConfigurationUpdateListener(IConfigurationUpdateListener)
-
addTransactionUpdateListener
public void addTransactionUpdateListener(ITransactionUpdateListener listener)
Add a listener to get events during a transaction. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeTransactionUpdateListener(ITransactionUpdateListener)method. To remove all registered listeners callclearAllTransactionUpdateListener()method.- Parameters:
listener- implementation ofITransactionUpdateListener.
-
removeTransactionUpdateListener
public void removeTransactionUpdateListener(ITransactionUpdateListener listener)
Remove a listener that was previously added viaaddTransactionUpdateListener(ITransactionUpdateListener).- Parameters:
listener- The listener to be removed.
-
clearAllTransactionUpdateListener
public void clearAllTransactionUpdateListener()
Remove all listeners that were added viaaddTransactionUpdateListener(ITransactionUpdateListener)
-
addTransactionFinishedListener
public void addTransactionFinishedListener(ITransactionFinishedListener listener)
Add a listener to get the results of a transaction. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeTransactionFinishedListener(ITransactionFinishedListener)method. To remove all registered listeners callclearAllTransactionFinishedListener()method.- Parameters:
listener- implementation ofITransactionFinishedListener.
-
removeTransactionFinishedListener
public void removeTransactionFinishedListener(ITransactionFinishedListener listener)
Remove a listener that was previously added viaaddTransactionFinishedListener(ITransactionFinishedListener).- Parameters:
listener- The listener to be removed.
-
clearAllTransactionFinishedListener
public void clearAllTransactionFinishedListener()
Remove all listeners that were added viaaddTransactionFinishedListener(ITransactionFinishedListener)
-
addDeferredAuthorizationListener
public void addDeferredAuthorizationListener(IDeferredAuthorizationListener listener)
Add a listener to get the event for deferred authorization confirmation. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeDeferredAuthorizationListener(IDeferredAuthorizationListener)method. To remove all registered listeners callclearAllDeferredAuthorizationListener()method.- Parameters:
listener- implementation ofIDeferredAuthorizationListener.
-
removeDeferredAuthorizationListener
public void removeDeferredAuthorizationListener(IDeferredAuthorizationListener listener)
Remove a listener that was previously added viaaddDeferredAuthorizationListener(IDeferredAuthorizationListener).- Parameters:
listener- The listener to be removed.
-
clearAllDeferredAuthorizationListener
public void clearAllDeferredAuthorizationListener()
Remove all listeners that were added viaaddDeferredAuthorizationListener(IDeferredAuthorizationListener)
-
addSignatureVerificationListener
public void addSignatureVerificationListener(ISignatureVerificationListener listener)
Add a listener to get the event for signature verification. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeSignatureVerificationListener(ISignatureVerificationListener)method. To remove all registered listeners callclearAllSignatureVerificationListener()method.- Parameters:
listener- implementation ofISignatureVerificationListener.
-
removeSignatureVerificationListener
public void removeSignatureVerificationListener(ISignatureVerificationListener listener)
Remove a listener that was previously added viaaddSignatureVerificationListener(ISignatureVerificationListener).- Parameters:
listener- The listener to be removed.
-
clearAllSignatureVerificationListener
public void clearAllSignatureVerificationListener()
Remove all listeners that were added viaaddSignatureVerificationListener(ISignatureVerificationListener)
-
addSignatureCaptureListener
public void addSignatureCaptureListener(ISignatureCaptureListener listener)
Add a listener to get the event for signature capture. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeSignatureCaptureListener(ISignatureCaptureListener)method. To remove all registered listeners callclearAllSignatureCaptureListeners()method.- Parameters:
listener- implementation ofISignatureCaptureListener.
-
removeSignatureCaptureListener
public void removeSignatureCaptureListener(ISignatureCaptureListener listener)
Remove a listener that was previously added viaaddSignatureCaptureListener(ISignatureCaptureListener).- Parameters:
listener- The listener to be removed.
-
clearAllSignatureCaptureListeners
public void clearAllSignatureCaptureListeners()
Remove all listeners that were added viaaddSignatureCaptureListener(ISignatureCaptureListener)
-
addFirmwareUpdateListener
public void addFirmwareUpdateListener(IFirmwareUpdateListener listener)
Add a listener to get the event for Firmware Updates. Register listener before calling methodconnectAndConfigure(Parameters).To remove registered listener call
removeFirmwareUpdateListener(IFirmwareUpdateListener)method. To remove all registered listeners callclearAllFirmwareUpdateListeners()method.- Parameters:
listener- implementation ofIFirmwareUpdateListener.
-
removeFirmwareUpdateListener
public void removeFirmwareUpdateListener(IFirmwareUpdateListener listener)
Remove a listener that was previously added viaaddFirmwareUpdateListener(IFirmwareUpdateListener).- Parameters:
listener- The listener to be removed.
-
clearAllFirmwareUpdateListeners
public void clearAllFirmwareUpdateListeners()
Remove all listeners that were added viaaddFirmwareUpdateListener(IFirmwareUpdateListener)
-
addVoiceReferralListener
public void addVoiceReferralListener(IVoiceReferralListener listener)
Add a listener to get the event for voice referral. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeVoiceReferralListener(IVoiceReferralListener)method. To remove all registered listeners callclearAllVoiceReferralListeners()method.- Parameters:
listener- implementation ofIVoiceReferralListener.
-
removeVoiceReferralListener
public void removeVoiceReferralListener(IVoiceReferralListener listener)
Remove a listener that was previously added viaaddVoiceReferralListener(IVoiceReferralListener).- Parameters:
listener- The listener to be removed.
-
clearAllVoiceReferralListeners
public void clearAllVoiceReferralListeners()
Remove all listeners that were added viaaddVoiceReferralListener(IVoiceReferralListener)
-
addPartialApprovalListener
public void addPartialApprovalListener(IPartialApprovalListener listener)
Add a listener to get the event for partial approval confirmation. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removePartialApprovalListener(IPartialApprovalListener)method. To remove all registered listeners callclearAllPartialApprovalListener()method.- Parameters:
listener- implementation ofIPartialApprovalListener.
-
removePartialApprovalListener
public void removePartialApprovalListener(IPartialApprovalListener listener)
Remove a listener that was previously added viaaddPartialApprovalListener(IPartialApprovalListener).- Parameters:
listener- The listener to be removed.
-
clearAllPartialApprovalListener
public void clearAllPartialApprovalListener()
Remove all listeners that were added viaaddPartialApprovalListener(IPartialApprovalListener)
-
addForceAcceptanceListener
public void addForceAcceptanceListener(IForceAcceptanceListener listener)
Add a listener to get the event for forced acceptance confirmation. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeForceAcceptanceListener(IForceAcceptanceListener)method. To remove all registered listeners callclearAllForceAcceptanceListener()method.- Parameters:
listener- implementation ofIForceAcceptanceListener.
-
removeForceAcceptanceListener
public void removeForceAcceptanceListener(IForceAcceptanceListener listener)
Remove a listener that was previously added viaaddForceAcceptanceListener(IForceAcceptanceListener).- Parameters:
listener- The listener to be removed.
-
clearAllForceAcceptanceListener
public void clearAllForceAcceptanceListener()
Remove all listeners that were added viaaddForceAcceptanceListener(IForceAcceptanceListener)
-
addVerifyIdListener
public void addVerifyIdListener(IVerifyIdListener listener)
Add a listener to get the event for ID verification. Register listener before calling methodstartTransaction(Parameters).To remove registered listener call
removeVerifyIdListener(IVerifyIdListener)method. To remove all registered listeners callclearAllVerifyIdListener()method.- Parameters:
listener- implementation ofIVerifyIdListener.
-
removeVerifyIdListener
public void removeVerifyIdListener(IVerifyIdListener listener)
Remove a listener that was previously added viaaddVerifyIdListener(IVerifyIdListener).- Parameters:
listener- The listener to be removed.
-
clearAllVerifyIdListener
public void clearAllVerifyIdListener()
Remove all listeners that were added viaaddVerifyIdListener(IVerifyIdListener)
-
addCardDetailsListener
public void addCardDetailsListener(ICardDetailsListener listener)
Add a listener to get results when calling methodgetAvailableCurrencies(Parameters).To remove registered listener call
removeCardDetailsListener(ICardDetailsListener)method. To remove all registered listeners callclearAllCardDetailsListener()method.- Parameters:
listener- implementation ofICardDetailsListener.
-
removeCardDetailsListener
public void removeCardDetailsListener(ICardDetailsListener listener)
Remove a listener that was previously added viaaddCardDetailsListener(ICardDetailsListener).- Parameters:
listener- The listener to be removed.
-
clearAllCardDetailsListener
public void clearAllCardDetailsListener()
Remove all listeners that were added viaaddCardDetailsListener(ICardDetailsListener)
-
addTmsUpdateListener
public void addTmsUpdateListener(ITmsUpdateListener listener)
Add a listener to get results when calling methodrequestTmsUpdate(Parameters).To remove registered listener call
removeTmsUpdateListener(ITmsUpdateListener)method. To remove all registered listeners callclearAllTmsUpdateListener()method.- Parameters:
listener- implementation ofITmsUpdateListener.
-
removeTmsUpdateListener
public void removeTmsUpdateListener(ITmsUpdateListener listener)
Remove a listener that was previously added viaaddTmsUpdateListener(ITmsUpdateListener).- Parameters:
listener- The listener to be removed.
-
clearAllTmsUpdateListener
public void clearAllTmsUpdateListener()
Remove all listeners that were added viaaddTmsUpdateListener(ITmsUpdateListener)
-
addProcessReceiptFinishedListener
public void addProcessReceiptFinishedListener(IProcessReceiptFinishedListener listener)
Add a listener to get results when calling methodprocessReceipt(Parameters).To remove registered listener call
removeProcessReceiptFinishedListener(IProcessReceiptFinishedListener)method. To remove all registered listeners callclearAllProcessReceiptFinishedListener()method.- Parameters:
listener- implementation ofIProcessReceiptFinishedListener.
-
removeProcessReceiptFinishedListener
public void removeProcessReceiptFinishedListener(IProcessReceiptFinishedListener listener)
Remove a listener that was previously added viaaddProcessReceiptFinishedListener(IProcessReceiptFinishedListener).- Parameters:
listener- The listener to be removed.
-
clearAllProcessReceiptFinishedListener
public void clearAllProcessReceiptFinishedListener()
Remove all listeners that were added viaaddProcessReceiptFinishedListener(IProcessReceiptFinishedListener)
-
addApplicationSelectionListener
public void addApplicationSelectionListener(IApplicationSelectionListener listener)
Add a listener to know when card application selection is required after a call tostartTransaction(Parameters).When updates are no longer required by the listener a call should be made to
removeApplicationSelectionListener(IApplicationSelectionListener).- Parameters:
listener- Listener wishing to know when Card Application Selection is required.
-
removeApplicationSelectionListener
public void removeApplicationSelectionListener(IApplicationSelectionListener listener)
Remove a listener currently listening for card application selection.- Parameters:
listener- Listener to be removed.
-
clearAllApplicationSelectionListener
public void clearAllApplicationSelectionListener()
Remove all listeners that were added viaaddApplicationSelectionListener(IApplicationSelectionListener)
-
addUserNotificationListener
public void addUserNotificationListener(IUserNotificationListener listener)
Add a listener to receive updates on notifications which need to be shown to the customer after a call tostartTransaction(Parameters).When updates are no longer required by an listener a call should be made to
removeUserNotificationListener(IUserNotificationListener).- Parameters:
listener- Listener wishing to receive transaction updates.
-
removeUserNotificationListener
public void removeUserNotificationListener(IUserNotificationListener listener)
Remove a listener currently listening for user notifications.- Parameters:
listener- Listener to be removed.
-
clearAllUserNotificationListener
public void clearAllUserNotificationListener()
Remove all listeners that were added viaaddUserNotificationListener(IUserNotificationListener)
-
initialize
public static Parameters initialize(android.content.Context applicationContext, Parameters parameters)
Initializes ChipDnaMobile. Ensures an encrypted database is used and migrates the previous versions of the SDK to use encryption, as needed. The specified delegate will be notified when a password is required and whether the initialisation was successful or not.The initialization process has to be completed successfully before ChipDnaMobile functionality is enabled. Only static methods can be executed before the initialisation process has finished successfully.
Once ChipDnaMobile has been initialize successfully, @{link #dispose:} should be call before the application terminates to ensure resources are disposed of correctly.
- Parameters:
parameters- collection containing one or more of the following:ParameterKeys.PasswordRequired during initialization.ParameterKeys.ChangePasswordRequired during password changeParameterKeys.DestroyOptional - If the value is set toParameterValues.TRUEit resets ChipDnaMobile by deleting all data including offline transaction data. This is an irreversible process which will result in the loss of any pending offline transactions.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
isInitialized
public static boolean isInitialized()
Returns whether ChipDnaMobile has been initialized.- Returns:
- true if ChipDnaMobile has been initialized, false otherwise.
-
dispose
public static Parameters dispose(Parameters request)
Disposes of ChipDnaMobile. Resources will be disposed off, database will be closed, PIN pad and printer disconnected and functionality will be disabled. To restore the functionality, ChipDnaMobile will need to be reinitialized after this method is called.The use of this method is not required. When the application is closed, resources will be disposed off automatically by Android.
The method is intended to help managing the application. It can be used when the application goes into the background, if the integrating application needs to carry out the password verification when the application comes back into the foreground.
If the method is not called when the application goes into the background, ChipDnaMobile functionality will remain accessible once the application comes back into the foreground.
- Parameters:
request- Currently not used and can be null.- Returns:
Parameterscollection containingParameterKeys.Resultand if applicableParameterKeys.Errors.
-
getInstance
public static ChipDnaMobile getInstance()
Gets the instance of ChipDnaMobile. This method should only be called after ChipDnaMobile has been initialised usinginitialize(Context, Parameters)initialize}.isInitialized()can be used to check whether ChipDnaMobile has been initialised already.ChipDnaMobile utilises the singleton pattern to ensure only one object exists.
- Returns:
- The instance of ChipDnaMobile.
- Throws:
ChipDnaMobileInitialisationException- if the method is called before ChipDnaMobile has been initialised
-
getSoftwareName
public static java.lang.String getSoftwareName()
Gets the software name.- Returns:
- A string representation of the software name.
-
getSoftwareVersion
public static java.lang.String getSoftwareVersion()
Gets the software version.- Returns:
- A string representation of the software version.
-
getSoftwareVersionName
public static java.lang.String getSoftwareVersionName()
Get the software version name.- Returns:
- A string representing the software version name.
-
-