SaleRequest
public class SaleRequest : TransactionRequest
Contains configuration options for processing a sale.
-
if the Clover device can’t communicate with the server, can the payment be taken offline and processed later
Declaration
Swift
public var allowOfflinePayment: Bool?
-
if the Clover device can’t communicate with the server, can the payment be taken offline without POS confirmatin
Declaration
Swift
public var approveOfflinePaymentWithoutPrompt: Bool?
-
disable the cashback ui option for cards that support the cashback option
Declaration
Swift
public var disableCashback: Bool?
-
records the tax amount for reporting purposes
Declaration
Swift
public var taxAmount: Int?
-
if tipMode is TIP_PROVIDED, this tip amount will be used for the payment. Note: This is in addition to the amount
Declaration
Swift
public var tipAmount: Int?
-
determines the tip mode for the transaction.
- TIP_PROVIDED -> use the tipAmount
- ON_SCREEN_BEFORE_PAYMENT -> ask the customer to select the tip before charging the card
- NO_TIP -> the tipAmount is set to 0 and the customer isn’t prompted to select a tip
Declaration
Swift
public var tipMode: SaleRequest.TipMode?
-
The amount the precomputed tips on screen are based on
Declaration
Swift
public var tippableAmount: Int?
-
Force a payment to be accepted without sending the payment to the server. The payment will be queued and processed as soon as the network and server become available
Declaration
Swift
public var forceOfflinePayment: Bool?
-
A Sale request requires an amount and an externalId that can be used to track the payment.
Declaration
Swift
public override init(amount: Int, externalId: String)
-
enum for indicating the mode for aquiring a tip
See moreDeclaration
Swift
public enum TipMode : String