Package com.clover.remote.client
Interface ICloverConnector
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CloverConnector
Interface to define the available methods to send requests to a connected Clover device.
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptPayment(com.clover.sdk.v3.payments.Payment payment) If payment confirmation is required during a Sale, this method accepts the paymentvoidacceptSignature(VerifySignatureRequest request) If signature is captured during a Sale, this method accepts the signature as enteredvoidAdds a clover connection listener.voidauth(AuthRequest request) Auth method to obtain an Auth payment that can be used as the payment to call tipAdjustvoidcapturePreAuth(CapturePreAuthRequest request) Capture a previous Auth.voidcheckBalance(CheckBalanceRequest request) Check the balance on a card, if card supports balance inquiryvoidcloseout(CloseoutRequest request) Request a closeout of all orders.voidDeprecated.voidDisplay receipt options for a Credit, Refund, or Paymentvoiddispose()Will dispose of the underlying connection to the devicevoidincrementPreAuth(IncrementPreauthRequest request) Request to increase the amount of an existing pre-authvoidInitialize the CloverConnector's connection and start communication with the device.voidinvokeInputOption(com.clover.remote.InputOption io) Used to invoke user options on the mini such as "OK", "CANCEL", "DONE", etc.voidmanualRefund(ManualRefundRequest request) Manual refund method, aka "naked credit"voidopenCashDrawer(OpenCashDrawerRequest request) Request that the cash drawer connected to the device be opened.voidpreAuth(PreAuthRequest request) PreAuth method to obtain a Pre-Auth for a cardvoidprint(PrintRequest request) Request to print.voidreadCardData(ReadCardDataRequest request) Used to request card information.voidrefundPayment(RefundPaymentRequest request) Refund a specific paymentvoidRegister an interest in receiving customer provided data.voidrejectPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.remote.Challenge challenge) If payment confirmation is required during a Sale, this method rejects the paymentvoidrejectSignature(VerifySignatureRequest request) If signature is captured during a Sale, this method rejects the signature as enteredvoidRemoves a clover connector listener.voidremoveDisplayOrder(com.clover.remote.order.DisplayOrder order) Remove the DisplayOrder from the device.voidrequestSignature(SignatureRequest request) Launch customer facing signature screen to collect a signaturevoidrequestTip(TipRequest request) Launch customer facing tip screen to request a tip amountvoidUsed to reset the device if it gets in an invalid state from POS perspective.voidSend a message requesting the current status of the device.voidretrievePayment(RetrievePaymentRequest request) Sends a request to get a payment.voidUsed to request a list of pending payments that have been taken offline, but haven't processed yet.voidretrievePrinters(RetrievePrintersRequest request) Request to retrieve available printers.voidRequest the status of a given print jobvoidsale(SaleRequest request) Sale method, aka "purchase"voidsendDebugLog(String message) Sends request to the clover device to send the log to the clover servervoidsendMessageToActivity(MessageToActivity request) Send a message to a running custom activity on the Clover devicevoidsetCustomerInfo(SetCustomerInfoRequest request) voidshowDisplayOrder(com.clover.remote.order.DisplayOrder order) Show the DisplayOrder on the device.voidshowMessage(String message) Show a message on the Clover Mini screenvoidShow the thank you screen on the devicevoidReturn the device to the Welcome ScreenvoidstartCustomActivity(CustomActivityRequest request) Request to start a Custom Activity on the Clover devicevoidtipAdjustAuth(TipAdjustAuthRequest request) Adjust the tip for a previous Auth.voidVault card information.voidvoidPayment(VoidPaymentRequest request) Void a transaction, given a previously used order ID and/or payment IDvoidRefund a specific payment
-
Method Details
-
initializeConnection
void initializeConnection()Initialize the CloverConnector's connection and start communication with the device. Must be called before calling any other method other than to add or remove listeners -
addCloverConnectorListener
Adds a clover connection listener.- Parameters:
listener- The connection listener.
-
removeCloverConnectorListener
Removes a clover connector listener.- Parameters:
listener- The connection listener.
-
sale
Sale method, aka "purchase"- Parameters:
request- A SaleRequest object containing basic information needed for the transaction
-
acceptSignature
If signature is captured during a Sale, this method accepts the signature as entered- Parameters:
request- Accepted request
-
rejectSignature
If signature is captured during a Sale, this method rejects the signature as entered- Parameters:
request- Rejected request
-
acceptPayment
void acceptPayment(com.clover.sdk.v3.payments.Payment payment) If payment confirmation is required during a Sale, this method accepts the payment- Parameters:
payment- Payment to accept
-
rejectPayment
void rejectPayment(com.clover.sdk.v3.payments.Payment payment, com.clover.remote.Challenge challenge) If payment confirmation is required during a Sale, this method rejects the payment- Parameters:
payment- Payment to rejectchallenge- The challenge which resulted in payment rejection
-
auth
Auth method to obtain an Auth payment that can be used as the payment to call tipAdjust- Parameters:
request- The request details
-
preAuth
PreAuth method to obtain a Pre-Auth for a card- Parameters:
request- The request details
-
capturePreAuth
Capture a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse- Parameters:
request- The request details
-
incrementPreAuth
Request to increase the amount of an existing pre-auth- Parameters:
request- The request details
-
tipAdjustAuth
Adjust the tip for a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse- Parameters:
request- The request details
-
voidPayment
Void a transaction, given a previously used order ID and/or payment ID- Parameters:
request- The request details
-
refundPayment
Refund a specific payment- Parameters:
request- The request details
-
manualRefund
Manual refund method, aka "naked credit"- Parameters:
request- The request details
-
vaultCard
Vault card information. Requests the mini capture card information and request a payment token from the payment gateway. The value returned in the response is a card, with all the information necessary to use for payment in a SaleRequest or AuthRequest- Parameters:
cardEntryMethods- The card entry methods allowed to capture the payment token. null will provide default values
-
closeout
Request a closeout of all orders.- Parameters:
request- The request details
-
print
Request to print.- Parameters:
request- The request details: info and content needed to print
-
retrievePrinters
Request to retrieve available printers.- Parameters:
request- object that contains additional information to be applied during the request
-
retrievePrintJobStatus
Request the status of a given print job- Parameters:
request- object defining the print job to be queried
-
openCashDrawer
Request that the cash drawer connected to the device be opened.- Parameters:
request- object defining the reason the cash drawer is being opened, and an optional device identifier
-
showMessage
Show a message on the Clover Mini screen- Parameters:
message- The message to display
-
sendDebugLog
Sends request to the clover device to send the log to the clover server- Parameters:
message- The message to display
-
showWelcomeScreen
void showWelcomeScreen()Return the device to the Welcome Screen -
showThankYouScreen
void showThankYouScreen()Show the thank you screen on the device -
displayPaymentReceiptOptions
Deprecated.Display the payment receipt screen for the orderId/paymentId combination in the DisplayReceiptOptionsRequest object.- Parameters:
request- The request details
-
showDisplayOrder
void showDisplayOrder(com.clover.remote.order.DisplayOrder order) Show the DisplayOrder on the device. Replaces the existing DisplayOrder on the device.- Parameters:
order- The order to display
-
removeDisplayOrder
void removeDisplayOrder(com.clover.remote.order.DisplayOrder order) Remove the DisplayOrder from the device.- Parameters:
order- The order to remove
-
dispose
void dispose()Will dispose of the underlying connection to the device -
invokeInputOption
void invokeInputOption(com.clover.remote.InputOption io) Used to invoke user options on the mini such as "OK", "CANCEL", "DONE", etc.- Parameters:
io- The option to invoke
-
resetDevice
void resetDevice()Used to reset the device if it gets in an invalid state from POS perspective. This could cause a missed transaction or other missed information, so it needs to be used cautiously as a last resort -
retrievePendingPayments
void retrievePendingPayments()Used to request a list of pending payments that have been taken offline, but haven't processed yet. Will trigger an onRetrievePendingPaymentsResponse callback. -
readCardData
Used to request card information. Specifically track1 and track2 information- Parameters:
request- The request details
-
sendMessageToActivity
Send a message to a running custom activity on the Clover device- Parameters:
request- The request details
-
startCustomActivity
Request to start a Custom Activity on the Clover device- Parameters:
request- The request details
-
retrieveDeviceStatus
Send a message requesting the current status of the device.- Parameters:
request- The request details
-
retrievePayment
Sends a request to get a payment. Only valid for payments made in the past 24 hours on the device queried.- Parameters:
request- The request details
-
voidPaymentRefund
Refund a specific payment- Parameters:
request- The request details
-
displayReceiptOptions
Display receipt options for a Credit, Refund, or Payment- Parameters:
request- The request details
-
registerForCustomerProvidedData
Register an interest in receiving customer provided data. -
setCustomerInfo
- Parameters:
request-
-
checkBalance
Check the balance on a card, if card supports balance inquiry- Parameters:
request-
-
requestSignature
Launch customer facing signature screen to collect a signature- Parameters:
request-
-
requestTip
Launch customer facing tip screen to request a tip amount- Parameters:
request-
-