SQRDTipSettings

@interface SQRDTipSettings : NSObject <NSCopying>

Settings that configure tipping behavior of the checkout flow.

Default values:

  • showSeparateTipScreen: false
  • showCustomTipField: false
  • tipPercentages: [15, 20, 25]

  • See

    SQRDCheckoutParameters

    • Create a SQRDTipSettings with default values.

      Declaration

      Objective-C

      - (nonnull instancetype)init;

      Swift

      init()
    • Indicates whether tip options should be presented on their own screen before presenting the signature screen during card transactions.

      By default, tip options are displayed on the signature screen.

      Declaration

      Objective-C

      @property (assign, readwrite, nonatomic) BOOL showSeparateTipScreen;

      Swift

      var showSeparateTipScreen: Bool { get set }
    • Indicates whether custom tip amounts are allowed during the checkout flow.

      Custom tips are disabled by default.

      Declaration

      Objective-C

      @property (assign, readwrite, nonatomic) BOOL showCustomTipField;

      Swift

      var showCustomTipField: Bool { get set }
    • A list of tip percentages that should be presented during the checkout flow.

      Specified as up to 3 non-negative integers from 0 to 100 (inclusive). Defaults to [15, 20, 25], which corresponds to tip percentages of 15%, 20% and 25%.

      Declaration

      Objective-C

      @property (readwrite, copy, nonatomic, nonnull)
          NSArray<NSNumber *> *tipPercentages;

      Swift

      var tipPercentages: [NSNumber] { get set }