CloverConnector  1.3.1
Copyright (C) 2017 Clover Network, Inc.
com.clover.remotepay.sdk.DefaultCloverConnectorListener Class Referenceabstract

This is a default implementation of the ICloverConnectorListener that can be used for quickly creating example applications by simply overriding the appropriate listener method(s) needed for testing a particular remote call. More...

Inheritance diagram for com.clover.remotepay.sdk.DefaultCloverConnectorListener:
com.clover.remotepay.sdk.ICloverConnectorListener

Public Member Functions

 DefaultCloverConnectorListener (ICloverConnector cloverConnector)
 
virtual void OnVaultCardResponse (VaultCardResponse response)
 Called when a vault card response is sent from the Clover device. More...
 
virtual void OnReadCardDataResponse (ReadCardDataResponse response)
 Called when a retrieve card data response is sent from the Clover device. More...
 
virtual void OnCapturePreAuthResponse (CapturePreAuthResponse response)
 Called when a capture pre authorization response is sent from the Clover device. More...
 
virtual void OnAuthResponse (AuthResponse response)
 Called when an authorization response is sent from the Clover device. More...
 
virtual void OnPreAuthResponse (PreAuthResponse response)
 Called when a pre authorization response message is sent. More...
 
virtual void OnTipAdjustAuthResponse (TipAdjustAuthResponse response)
 Called when a tip adjust authorization response is sent from the Clover device. More...
 
virtual void OnCloseoutResponse (CloseoutResponse response)
 Called when a closeout response is sent from the Clover device. More...
 
virtual void OnDeviceActivityEnd (CloverDeviceEvent deviceEvent)
 Called when a Clover device is activity ends. More...
 
virtual void OnDeviceActivityStart (CloverDeviceEvent deviceEvent)
 Called when a Clover device is activity starts. More...
 
virtual void OnDeviceConnected ()
 Called when a Clover device is connected. More...
 
virtual void OnDeviceDisconnected ()
 Called when a Clover device is disconnected from the CloverConnector. More...
 
virtual void OnDeviceError (CloverDeviceErrorEvent deviceErrorEvent)
 Called when a Clover device is error event is encountered. More...
 
virtual void OnDeviceReady (MerchantInfo merchantInfo)
 Called when a Clover device is ready to receive communications from the CloverConnector. More...
 
virtual void OnManualRefundResponse (ManualRefundResponse response)
 Called when a manual refund response is sent from the Clover device. More...
 
virtual void OnRefundPaymentResponse (RefundPaymentResponse response)
 Called when a refund payment response is sent from the Clover device. More...
 
virtual void OnSaleResponse (SaleResponse response)
 Called when a sale response is sent from the Clover device. More...
 
virtual void OnVerifySignatureRequest (VerifySignatureRequest request)
 Called when a verify signature request is sent from the Clover device. More...
 
abstract void OnConfirmPaymentRequest (ConfirmPaymentRequest request)
 Called when a confirm payment request is sent from the Clover device. More...
 
virtual void OnVoidPaymentResponse (VoidPaymentResponse response)
 Called when a void payment response is sent from the Clover device. More...
 
virtual void OnTipAdded (TipAddedMessage message)
 Called when a tip is added. More...
 
virtual void OnRetrievePendingPaymentsResponse (RetrievePendingPaymentsResponse response)
 Called when a retrieve pending payments response is sent from the Clover device. More...
 
virtual void OnCustomActivityResponse (CustomActivityResponse response)
 
virtual void OnPrintManualRefundReceipt (PrintManualRefundReceiptMessage printManualRefundReceiptMessage)
 
virtual void OnPrintManualRefundDeclineReceipt (PrintManualRefundDeclineReceiptMessage printManualRefundDeclineReceiptMessage)
 Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a declined ManualRefund More...
 
virtual void OnPrintPaymentReceipt (PrintPaymentReceiptMessage printPaymentReceiptMessage)
 Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a payment More...
 
virtual void OnPrintPaymentDeclineReceipt (PrintPaymentDeclineReceiptMessage printPaymentDeclineReceiptMessage)
 Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a declined payment More...
 
virtual void OnPrintPaymentMerchantCopyReceipt (PrintPaymentMerchantCopyReceiptMessage printPaymentMerchantCopyReceiptMessage)
 Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a merchant copy of a payment receipt More...
 
virtual void OnPrintRefundPaymentReceipt (PrintRefundPaymentReceiptMessage printRefundPaymentReceiptMessage)
 Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a payment refund More...
 
virtual void OnRetrieveDeviceStatusResponse (RetrieveDeviceStatusResponse response)
 
virtual void OnMessageFromActivity (MessageFromActivity response)
 
virtual void OnResetDeviceResponse (ResetDeviceResponse response)
 
virtual void OnRetrievePaymentResponse (RetrievePaymentResponse response)
 

Detailed Description

This is a default implementation of the ICloverConnectorListener that can be used for quickly creating example applications by simply overriding the appropriate listener method(s) needed for testing a particular remote call.

Member Function Documentation

◆ OnAuthResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnAuthResponse ( AuthResponse  response)
virtual

Called when an authorization response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnCapturePreAuthResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnCapturePreAuthResponse ( CapturePreAuthResponse  response)
virtual

Called when a capture pre authorization response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnCloseoutResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnCloseoutResponse ( CloseoutResponse  response)
virtual

Called when a closeout response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnConfirmPaymentRequest()

abstract void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnConfirmPaymentRequest ( ConfirmPaymentRequest  request)
pure virtual

Called when a confirm payment request is sent from the Clover device.

Parameters
requestThe request.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceActivityEnd()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceActivityEnd ( CloverDeviceEvent  deviceEvent)
virtual

Called when a Clover device is activity ends.

Parameters
deviceEventThe device event.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceActivityStart()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceActivityStart ( CloverDeviceEvent  deviceEvent)
virtual

Called when a Clover device is activity starts.

Parameters
deviceEventThe device event.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceConnected()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceConnected ( )
virtual

Called when a Clover device is connected.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceDisconnected()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceDisconnected ( )
virtual

Called when a Clover device is disconnected from the CloverConnector.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceError()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceError ( CloverDeviceErrorEvent  deviceErrorEvent)
virtual

Called when a Clover device is error event is encountered.

Parameters
deviceErrorEventThe device error event.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnDeviceReady()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnDeviceReady ( MerchantInfo  merchantInfo)
virtual

Called when a Clover device is ready to receive communications from the CloverConnector.

Parameters
merchantInfoThe merchant information.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnManualRefundResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnManualRefundResponse ( ManualRefundResponse  response)
virtual

Called when a manual refund response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPreAuthResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPreAuthResponse ( PreAuthResponse  response)
virtual

Called when a pre authorization response message is sent.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPrintManualRefundDeclineReceipt()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPrintManualRefundDeclineReceipt ( PrintManualRefundDeclineReceiptMessage  printManualRefundDeclineReceiptMessage)
virtual

Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a declined ManualRefund

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPrintPaymentDeclineReceipt()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPrintPaymentDeclineReceipt ( PrintPaymentDeclineReceiptMessage  printPaymentDeclineReceiptMessage)
virtual

Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a declined payment

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPrintPaymentMerchantCopyReceipt()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPrintPaymentMerchantCopyReceipt ( PrintPaymentMerchantCopyReceiptMessage  printPaymentMerchantCopyReceiptMessage)
virtual

Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a merchant copy of a payment receipt

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPrintPaymentReceipt()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPrintPaymentReceipt ( PrintPaymentReceiptMessage  printPaymentReceiptMessage)
virtual

Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a payment

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnPrintRefundPaymentReceipt()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnPrintRefundPaymentReceipt ( PrintRefundPaymentReceiptMessage  printRefundPaymentReceiptMessage)
virtual

Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a payment refund

summary> Called when a custom activity is terminated in a normal flow /summary>

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnReadCardDataResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnReadCardDataResponse ( ReadCardDataResponse  response)
virtual

Called when a retrieve card data response is sent from the Clover device.

Parameters
responseThe response.

summary> Will only be called if disablePrinting = true on the Sale, Auth, PreAuth or ManualRefund Request Called when a user requests to print a receipt for a ManualRefund

Parameters
printManualRefundReceiptMessage

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnRefundPaymentResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnRefundPaymentResponse ( RefundPaymentResponse  response)
virtual

Called when a refund payment response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnRetrievePendingPaymentsResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnRetrievePendingPaymentsResponse ( RetrievePendingPaymentsResponse  response)
virtual

Called when a retrieve pending payments response is sent from the Clover device.

Parameters
response

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnSaleResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnSaleResponse ( SaleResponse  response)
virtual

Called when a sale response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnTipAdded()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnTipAdded ( TipAddedMessage  message)
virtual

Called when a tip is added.

Parameters
messageThe message.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnTipAdjustAuthResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnTipAdjustAuthResponse ( TipAdjustAuthResponse  response)
virtual

Called when a tip adjust authorization response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnVaultCardResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnVaultCardResponse ( VaultCardResponse  response)
virtual

Called when a vault card response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnVerifySignatureRequest()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnVerifySignatureRequest ( VerifySignatureRequest  request)
virtual

Called when a verify signature request is sent from the Clover device.

Parameters
requestThe request.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.

◆ OnVoidPaymentResponse()

virtual void com.clover.remotepay.sdk.DefaultCloverConnectorListener.OnVoidPaymentResponse ( VoidPaymentResponse  response)
virtual

Called when a void payment response is sent from the Clover device.

Parameters
responseThe response.

Implements com.clover.remotepay.sdk.ICloverConnectorListener.


The documentation for this class was generated from the following file: