Configuration and Utility Events
AvailablePinPads Callback
When getAvailablePinPads()
has been successfully called, the Payment Device SDK fires a onAvailablePinPads
callback when the update is finished with the result of the request. The result will contain a collection of PIN pads that are paired with the mobile device.
Methods to add or remove callback delegate in ChipDnaMobile
:
void addAvailablePinPadsListener(
AvailablePinPadsListener listener
)
void removeAvailablePinPadsListener(
AvailablePinPadsListener listener
)
ConnectAndConfigureFinished Callback
When connectAndConfigure()
has been successfully called, the Payment Device SDK fires a connectAndConfigureFinished
event with the result of the request. This event will always be fired and the parameters will contain data to indicate if the SDK is ready to process transactions. If unsuccessful, the parameters will contain the errors encountered.
Methods to add or remove callback delegate in ChipDnaMobile
:
void addConnectAndConfigureFinishedListener(
ConnectAndConfigureFinishedListener listener
)
void removeConnectAndConfigureFinishedListener(
ConnectAndConfigureFinishedListener listener
)
ConfigurationUpdate Callback
When connectAndConfigure()
has been successfully called, and before connectAndConfigureFinished
event is fired. The Payment Device SDK fires configurationUpdate
events as it progresses through the configuration process.
For Android Tap to Pay, the following new events are emitted during the connectAndConfigure
process:
- CheckingTapToMobileConfig - Indicates that the Payment Device SDK is checking the current configuration of Tap to Pay
- UpdatingTapToMobileConfig - Indicates that the Payment Device SDK is updating its Tap to Pay Configuration
Methods to add or remove callback delegate in ChipDnaMobile
:
void addConfigurationUpdateListener(
ConfigurationUpdateListener listener
)
void removeConfigurationUpdateListener(
ConfigurationUpdateListener listener
)
DeviceUpdate Callback
The Payment Device SDK fires deviceUpdate
events to report notification about the PIN pad. Events include connection, disconnection, initialization, reboot events.
Methods to add or remove callback delegate in ChipDnaMobile
:
void addDeviceUpdateListener(
DeviceListener listener
)
void removeDeviceUpdateListener(
DeviceUpdateListener listener
)
TmsUpdate Callback
When requestTmsUpdate()
has been successfully called, the Payment Device SDK fires a tmsUpdate
callback result of the TMS update request.
Methods to add or remove callback delegate in ChipDnaMobile
:
void addTmsUpdateListener(
TmsUpdateListener listener
)
void removeTmsUpdateListener(
TmsUpdateListener listener
)
Updated 1 day ago