Checkout
-
Lets the application collect payment from customers using Square’s checkout flow.
See moreDeclaration
Objective-C
@interface SQRDCheckoutController : NSObject
Swift
class SQRDCheckoutController : NSObject
-
The delegate of a
See moreSQRDCheckoutController
object must adopt theSQRDCheckoutControllerDelegate
protocol.Declaration
Objective-C
@protocol SQRDCheckoutControllerDelegate <NSObject>
Swift
protocol SQRDCheckoutControllerDelegate : NSObjectProtocol
-
The types of errors that can occur when presenting a
See moreSQRDCheckoutController
.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
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 moreDeclaration
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
Declaration
Objective-C
@interface SQRDTipSettings : NSObject <NSCopying>
Swift
class SQRDTipSettings : NSObject, NSCopying
-
The result of the checkout flow.
See moreDeclaration
Objective-C
@interface SQRDCheckoutResult : NSObject <NSCopying>
Swift
class SQRDCheckoutResult : NSObject, NSCopying