TippingConfig
public class TippingConfig
Configuration class for providing tipping configurations.
-
No tipping is needed. Reader will not ask for tip. Equivalent of zero tip.
Declaration
Swift
public static let DO_NOT_ASK_FOR_TIP: TippingConfig
-
Tipping may be requested on card machine. User will be prompted to add an amount of tip in card machine, if card machine supports tips.
Declaration
Swift
public static let ASK_FOR_TIP_ON_CARD_MACHINE: TippingConfig
-
Tip is provided as a parameter while transacting and added to total amount.
Declaration
Swift
public static func INCLUDE_TIP_IN_AMOUNT(tipInCents: Int32) -> TippingConfig
-
Convenience methods to quickly access if configuration should ask for tip
Declaration
Swift
public func askForTip() -> Bool
-
Convenience method to access tip value if provided
Declaration
Swift
public func tipInCents() -> Int32?