CloverConnector
1.3.1
Copyright (C) 2017 Clover Network, Inc.
|
Public Member Functions | |
void | AddCloverConnectorListener (ICloverConnectorListener connectorListener) |
Adds a clover connector listener. More... | |
void | RemoveCloverConnectorListener (ICloverConnectorListener connectorListener) |
Removes a clover connector listener. More... | |
CloverConnector (CloverDeviceConfiguration config) | |
CloverConnector constructor More... | |
void | InitializeConnection () |
Initialize the connector with a given configuration More... | |
void | Sale (SaleRequest request) |
Sale method, aka "purchase" More... | |
void | AcceptSignature (VerifySignatureRequest request) |
If signature is captured during a Sale, this method accepts the signature as entered More... | |
void | RejectSignature (VerifySignatureRequest request) |
If signature is captured during a Sale, this method rejects the signature as entered More... | |
void | Auth (AuthRequest request) |
Auth method to obtain an Auth. While a Pre-Auth can also be accomplished by setting the IsPreAuth flag to true, the PreAuthRequest is the preferred request type. PreAuth functionality was retained for backward compatibility More... | |
void | PreAuth (PreAuthRequest request) |
PreAuth method to obtain a PreAuth. More... | |
void | CapturePreAuth (CapturePreAuthRequest request) |
Capture a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse More... | |
void | TipAdjustAuth (TipAdjustAuthRequest request) |
Adjust the tip for a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse More... | |
void | VoidPayment (VoidPaymentRequest request) |
Void a transaction, given a previously used order ID and/or payment ID TBD - defining a payment or order ID to be used with a void without requiring a response from Sale() More... | |
void | RefundPayment (RefundPaymentRequest request) |
Refund a specific payment More... | |
void | ManualRefund (ManualRefundRequest request) |
Manual refund method, aka "naked credit" More... | |
void | Closeout (CloseoutRequest request) |
Send a request to the server to closeout all orders. More... | |
void | ResetDevice () |
Send a request to the mini to reset. This can be used if the device gets into a non-recoverable state. More... | |
void | Cancel () |
Cancels the device from waiting for payment card More... | |
void | PrintText (List< string > messages) |
Print simple lines of text to the Clover Mini printer More... | |
void | PrintImage (Bitmap bitmap) |
Print an image on the Clover Mini printer More... | |
void | ShowMessage (string message) |
Show a message on the Clover Mini screen More... | |
void | ShowWelcomeScreen () |
Return the device to the Welcome Screen More... | |
void | ShowThankYouScreen () |
Show the thank you screen on the device More... | |
void | VaultCard (int? CardEntryMethods) |
Vault Card information and payment token More... | |
void | ReadCardData (ReadCardDataRequest request) |
Retrieve Card Data More... | |
void | DisplayPaymentReceiptOptions (string orderId, string paymentId) |
Show the customer facing receipt option screen for the specified Payment. More... | |
void | OpenCashDrawer (String reason) |
Will trigger cash drawer to open that is connected to Clover Mini More... | |
void | ShowDisplayOrder (DisplayOrder order) |
Show the DisplayOrder on the device. Replaces the existing DisplayOrder on the device. More... | |
void | RemoveDisplayOrder (DisplayOrder order) |
Remove the DisplayOrder from the device. More... | |
void | RetrievePendingPayments () |
Request a list of pending payments from the device. Pending payments are payments taken offline that have not yet been sent to the server More... | |
void | Dispose () |
void | InvokeInputOption (InputOption io) |
Invoke the InputOption on the device More... | |
void | PrintImageFromURL (string ImgURL) |
T | GetEnumFromString< T > (string stringValue, bool isCaseInsensitive=false) |
void | OnDeviceError (CloverDeviceErrorEvent ee) |
void | AcceptPayment (Payment payment) |
If signature is captured during a Sale, this method accepts the signature as entered More... | |
void | RejectPayment (Payment payment, Challenge challenge) |
If signature is captured during a Sale, this method rejects the signature as entered More... | |
void | StartCustomActivity (CustomActivityRequest request) |
Request to start a Custom Activity on the Clover device More... | |
void | SendMessageToActivity (MessageToActivity request) |
Send a message to a running custom activity on the Clover device More... | |
void | RetrieveDeviceStatus (RetrieveDeviceStatusRequest request) |
Send a message requesting the current status of the device More... | |
void | RetrievePayment (RetrievePaymentRequest request) |
Send a message requesting the Payment information corresponding the the provided External Payment Id More... | |
Public Member Functions inherited from com.clover.remotepay.sdk.ICloverConnector | |
void | DisplayPaymentReceiptOptions (String orderId, String paymentId) |
Show the customer facing receipt option screen for the specified payment. More... | |
void | InvokeInputOption (transport.InputOption io) |
Invoke the InputOption as sent in the DeviceActivityStart callback More... | |
void | PrintImageFromURL (String ImgURL) |
Print an image from a url More... | |
Static Public Attributes | |
static readonly InputOption | CANCEL_INPUT_OPTION = new InputOption(KeyPress.ESC, "Cancel") |
Protected Attributes | |
CloverDevice | Device |
CloverDeviceConfiguration | Config |
SDKInfo | _SDKInfo = new SDKInfo() |
Properties | |
SDKInfo | SDKInfo [get] |
bool | IsReady [get] |
Holds the current connection state More... | |
com.clover.remotepay.sdk.CloverConnector.CloverConnector | ( | CloverDeviceConfiguration | config | ) |
CloverConnector constructor
config | A CloverDeviceConfiguration object; TestDeviceConfiguration can be used for testing |
void com.clover.remotepay.sdk.CloverConnector.AcceptPayment | ( | Payment | payment | ) |
If signature is captured during a Sale, this method accepts the signature as entered
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.AcceptSignature | ( | VerifySignatureRequest | request | ) |
If signature is captured during a Sale, this method accepts the signature as entered
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.AddCloverConnectorListener | ( | ICloverConnectorListener | connectorListener | ) |
Adds a clover connector listener.
connectorListener | The connector listener. |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.Auth | ( | AuthRequest | request | ) |
Auth method to obtain an Auth. While a Pre-Auth can also be accomplished by setting the IsPreAuth flag to true, the PreAuthRequest is the preferred request type. PreAuth functionality was retained for backward compatibility
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.Cancel | ( | ) |
Cancels the device from waiting for payment card
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.CapturePreAuth | ( | CapturePreAuthRequest | request | ) |
Capture a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.Closeout | ( | CloseoutRequest | request | ) |
Send a request to the server to closeout all orders.
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.DisplayPaymentReceiptOptions | ( | string | orderId, |
string | paymentId | ||
) |
Show the customer facing receipt option screen for the specified Payment.
void com.clover.remotepay.sdk.CloverConnector.InitializeConnection | ( | ) |
Initialize the connector with a given configuration
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.InvokeInputOption | ( | InputOption | io | ) |
Invoke the InputOption on the device
io |
void com.clover.remotepay.sdk.CloverConnector.ManualRefund | ( | ManualRefundRequest | request | ) |
Manual refund method, aka "naked credit"
request | A ManualRefundRequest object |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.OpenCashDrawer | ( | String | reason | ) |
Will trigger cash drawer to open that is connected to Clover Mini
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.PreAuth | ( | PreAuthRequest | request | ) |
PreAuth method to obtain a PreAuth.
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.PrintImage | ( | Bitmap | bitmap | ) |
Print an image on the Clover Mini printer
bitmap |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.PrintText | ( | List< string > | messages | ) |
Print simple lines of text to the Clover Mini printer
messages |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ReadCardData | ( | ReadCardDataRequest | request | ) |
Retrieve Card Data
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RefundPayment | ( | RefundPaymentRequest | request | ) |
Refund a specific payment
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RejectPayment | ( | Payment | payment, |
Challenge | challenge | ||
) |
If signature is captured during a Sale, this method rejects the signature as entered
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RejectSignature | ( | VerifySignatureRequest | request | ) |
If signature is captured during a Sale, this method rejects the signature as entered
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RemoveCloverConnectorListener | ( | ICloverConnectorListener | connectorListener | ) |
Removes a clover connector listener.
connectorListener | The connector listener. |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RemoveDisplayOrder | ( | DisplayOrder | order | ) |
Remove the DisplayOrder from the device.
order |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ResetDevice | ( | ) |
Send a request to the mini to reset. This can be used if the device gets into a non-recoverable state.
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RetrieveDeviceStatus | ( | RetrieveDeviceStatusRequest | request | ) |
Send a message requesting the current status of the device
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RetrievePayment | ( | RetrievePaymentRequest | request | ) |
Send a message requesting the Payment information corresponding the the provided External Payment Id
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.RetrievePendingPayments | ( | ) |
Request a list of pending payments from the device. Pending payments are payments taken offline that have not yet been sent to the server
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.Sale | ( | SaleRequest | request | ) |
Sale method, aka "purchase"
request | A SaleRequest object containing basic information needed for the transaction |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.SendMessageToActivity | ( | MessageToActivity | request | ) |
Send a message to a running custom activity on the Clover device
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ShowDisplayOrder | ( | DisplayOrder | order | ) |
Show the DisplayOrder on the device. Replaces the existing DisplayOrder on the device.
order |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ShowMessage | ( | string | message | ) |
Show a message on the Clover Mini screen
message |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ShowThankYouScreen | ( | ) |
Show the thank you screen on the device
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.ShowWelcomeScreen | ( | ) |
Return the device to the Welcome Screen
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.StartCustomActivity | ( | CustomActivityRequest | request | ) |
Request to start a Custom Activity on the Clover device
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.TipAdjustAuth | ( | TipAdjustAuthRequest | request | ) |
Adjust the tip for a previous Auth. Note: Should only be called if request's PaymentID is from an AuthResponse
request |
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.VaultCard | ( | int? | CardEntryMethods | ) |
Vault Card information and payment token
Implements com.clover.remotepay.sdk.ICloverConnector.
void com.clover.remotepay.sdk.CloverConnector.VoidPayment | ( | VoidPaymentRequest | request | ) |
Void a transaction, given a previously used order ID and/or payment ID TBD - defining a payment or order ID to be used with a void without requiring a response from Sale()
request | A VoidRequest object containing basic information needed to void the transaction |
Implements com.clover.remotepay.sdk.ICloverConnector.
|
get |
Holds the current connection state