Checkout

  • Lets the application collect payment from customers using Square’s checkout flow.

    See more

    Declaration

    Objective-C

    @interface SQRDCheckoutController : NSObject

    Swift

    class SQRDCheckoutController : NSObject
  • The delegate of a SQRDCheckoutController object must adopt the SQRDCheckoutControllerDelegate protocol.

    See more

    Declaration

    Objective-C

    @protocol SQRDCheckoutControllerDelegate <NSObject>

    Swift

    protocol SQRDCheckoutControllerDelegate : NSObjectProtocol
  • The types of errors that can occur when presenting a SQRDCheckoutController.

    See more

    Declaration

    Objective-C

    enum SQRDCheckoutControllerError {}

    Swift

    typealias SQRDCheckoutControllerError.Code._ErrorType = SQRDCheckoutControllerError
  • The checkout controller error domain.

    Declaration

    Objective-C

    extern NSString *const _Nonnull SQRDCheckoutControllerErrorDomain

    Swift

    let SQRDCheckoutControllerErrorDomain: String
  • Parameters for SQRDCheckoutController.

    Default values:

    • note: nil
    • additionalPaymentTypes: []
    • tipSettings: nil
    • skipReceipt: false
    • collectSignature: false
    • allowSplitTender: false
    • delayCapture: false
    See more

    Declaration

    Objective-C

    @interface SQRDCheckoutParameters : NSObject <NSCopying>

    Swift

    class SQRDCheckoutParameters : NSObject, NSCopying
  • The payment types an application may accept during checkout in addition to payments via Square Readers.

    See more

    Declaration

    Objective-C

    enum SQRDAdditionalPaymentTypes {}

    Swift

    struct SQRDAdditionalPaymentTypes : OptionSet
  • Settings that configure tipping behavior of the checkout flow.

    Default values:

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

  • See

    SQRDCheckoutParameters

    See more

    Declaration

    Objective-C

    @interface SQRDTipSettings : NSObject <NSCopying>

    Swift

    class SQRDTipSettings : NSObject, NSCopying
  • The result of the checkout flow.

    See more

    Declaration

    Objective-C

    @interface SQRDCheckoutResult : NSObject <NSCopying>

    Swift

    class SQRDCheckoutResult : NSObject, NSCopying