Reader
-
Information about a card reader that has been discovered by or connected to the SDK.
Some of the properties are only applicable to a certain device type. These properties are labeled with the reader or reader type to which they apply.
See moreDeclaration
Objective-C
@interface SCPReader : NSObject <SCPJSONDecodable>
Swift
class Reader : NSObject, JSONDecodable
-
Declaration
Objective-C
enum SCPDeviceType : NSUInteger {}
Swift
enum DeviceType : UInt, @unchecked Sendable
-
Implement this protocol to handle a connected Bluetooth reader’s events throughout the lifetime of its connection.
Implementing this delegate is required when connecting to any Bluetooth connected reader, such as the Stripe M2, BBPOS Chipper 2X BT, and the BBPOS WisePad 3.
The provided delegate must be retained by your application until the reader disconnects.
See moreDeclaration
Objective-C
@protocol SCPBluetoothReaderDelegate <NSObject>
Swift
protocol BluetoothReaderDelegate : NSObjectProtocol
-
Implement this protocol to handle a connected local mobile reader’s events throughout the lifetime of its connection.
Implementing this delegate is required when connecting to any Local Mobile reader.
The provided delegate must be retained by your application until the reader disconnects.
See moreDeclaration
Objective-C
@protocol SCPLocalMobileReaderDelegate <NSObject>
Swift
protocol LocalMobileReaderDelegate : NSObjectProtocol
-
The possible events from a connected reader. Used by
See more[SCPBluetoothReaderDelegate reader:didReportReaderEvent:info:]
.Declaration
Objective-C
enum SCPReaderEvent : NSUInteger {}
Swift
enum ReaderEvent : UInt, @unchecked Sendable
-
This OptionSet represents all of the input methods available to your user when the reader begins waiting for input. Used by
See more[SCPBluetoothReaderDelegate reader:didRequestReaderInput:]
.Declaration
Objective-C
enum SCPReaderInputOptions : NSUInteger {}
Swift
struct ReaderInputOptions : OptionSet, @unchecked Sendable
-
The display messages that a reader may request be displayed by your app. Used by
See more[SCPBluetoothReaderDelegate reader:didRequestReaderDisplayMessage:]
.Declaration
Objective-C
enum SCPReaderDisplayMessage : NSUInteger {}
Swift
enum ReaderDisplayMessage : UInt, @unchecked Sendable
-
The possible networking statuses for a reader.
See moreDeclaration
Objective-C
enum SCPReaderNetworkStatus : NSUInteger {}
Swift
enum ReaderNetworkStatus : UInt, @unchecked Sendable
-
A categorization of a reader’s battery charge level.
See moreDeclaration
Objective-C
enum SCPBatteryStatus : NSUInteger {}
Swift
enum BatteryStatus : UInt, @unchecked Sendable
-
An
SCPCart
object contains information about what line items are included in the current transaction. A cart object should be created and then passed intoTerminal.shared.setReaderDisplay()
, which will display the cart’s contents on the reader’s screen.The
SCPCart
only represents exactly what will be shown on the screen, and is not reflective of what the customer is actually charged. You are responsible for making sure that tax and total reflect what is in the cart.These values are exactly what will be shown on the screen and do not reflect what the user is actually charged.
Note
Only Internet readers support setReaderDisplay functionality
Declaration
Objective-C
@interface SCPCart : NSObject
Swift
class Cart : NSObject
-
Declaration
Objective-C
@interface SCPCartBuilder : SCPBuilder <SCPCart *>
Swift
class CartBuilder : SCPBuilder<Cart>
-
Represents a single line item in an
SCPCart
, displayed on the reader’s screen during checkout.The values here will be shown on the screen as-is. Make sure you’re correctly calculating and setting the
See moreSCPCart
‘s tax and total – the reader will not calculate tax or total for you. Similarly, make sure the values displayed reflect what the customer is actually charged.Declaration
Objective-C
@interface SCPCartLineItem : NSObject
Swift
class CartLineItem : NSObject
-
A builder class for
See moreSCPCartLineItem
objects.Declaration
Objective-C
@interface SCPCartLineItemBuilder : SCPBuilder <SCPCartLineItem *>
Swift
class CartLineItemBuilder : SCPBuilder<CartLineItem>
-
Contains information about the inputs to collect from the reader
See moreDeclaration
Objective-C
@interface SCPCollectInputsParameters : NSObject
Swift
class CollectInputsParameters : NSObject
-
A builder class for
See moreSCPCollectInputsParameters
Declaration
Objective-C
@interface SCPCollectInputsParametersBuilder : SCPBuilder <SCPCollectInputsParameters *>
Swift
class CollectInputsParametersBuilder : SCPBuilder<CollectInputsParameters>
-
Represents a single input form
See moreDeclaration
Objective-C
@interface SCPInput : NSObject
Swift
class Input : NSObject
-
Contains information about a signature form to display on the reader
See more -
Builder class for
See moreSCPSignatureInput
.Declaration
Objective-C
@interface SCPSignatureInputBuilder : SCPBuilder <SCPSignatureInput *>
Swift
class SignatureInputBuilder : SCPBuilder<SignatureInput>
-
Contains information about a Selection form to display on the reader
See moreDeclaration
Objective-C
@interface SCPSelectionButton : NSObject
Swift
class SelectionButton : NSObject
-
Builder class for
See moreSCPSelectionButton
.Declaration
Objective-C
@interface SCPSelectionButtonBuilder : SCPBuilder <SCPSelectionButton *>
Swift
class SelectionButtonBuilder : SCPBuilder<SelectionButton>
-
The possible selection button styles
See moreDeclaration
Objective-C
enum SCPSelectionButtonStyle : NSUInteger {}
Swift
enum SelectionButtonStyle : UInt, @unchecked Sendable
-
Contains information about a Selection form to display on the reader
See more -
Builder class for
See moreSCPSelectionInput
.Declaration
Objective-C
@interface SCPSelectionInputBuilder : SCPBuilder <SCPSelectionInput *>
Swift
class SelectionInputBuilder : SCPBuilder<SelectionInput>
-
Contains information about a phone form to display on the reader
See more -
Builder class for
See moreSCPPhoneInput
.Declaration
Objective-C
@interface SCPPhoneInputBuilder : SCPBuilder <SCPPhoneInput *>
Swift
class PhoneInputBuilder : SCPBuilder<PhoneInput>
-
Contains information about an email form to display on the reader
See more -
Builder class for
See moreSCPEmailInput
.Declaration
Objective-C
@interface SCPEmailInputBuilder : SCPBuilder <SCPEmailInput *>
Swift
class EmailInputBuilder : SCPBuilder<EmailInput>
-
Contains information about a numeric form to display on the reader
See more -
Builder class for
See moreSCPNumericInput
.Declaration
Objective-C
@interface SCPNumericInputBuilder : SCPBuilder <SCPNumericInput *>
Swift
class NumericInputBuilder : SCPBuilder<NumericInput>
-
Contains information about a Text form to display on the reader
See more -
Builder class for
See moreSCPTextInput
.Declaration
Objective-C
@interface SCPTextInputBuilder : SCPBuilder <SCPTextInput *>
Swift
class TextInputBuilder : SCPBuilder<TextInput>
-
Contains information about the data collected from a given form
See moreDeclaration
Objective-C
@interface SCPCollectInputsResult : NSObject
Swift
class CollectInputsResult : NSObject
-
Contains data collected from a signature form
See moreDeclaration
Objective-C
@interface SCPSignatureResult : SCPCollectInputsResult
Swift
class SignatureResult : CollectInputsResult
-
Contains data collected from a Selection form
See moreDeclaration
Objective-C
@interface SCPSelectionResult : SCPCollectInputsResult
Swift
class SelectionResult : CollectInputsResult
-
Contains data collected from a Phone form
See moreDeclaration
Objective-C
@interface SCPPhoneResult : SCPCollectInputsResult
Swift
class PhoneResult : CollectInputsResult
-
Contains data collected from a Email form
See moreDeclaration
Objective-C
@interface SCPEmailResult : SCPCollectInputsResult
Swift
class EmailResult : CollectInputsResult
-
Contains data collected from a Numeric form
See moreDeclaration
Objective-C
@interface SCPNumericResult : SCPCollectInputsResult
Swift
class NumericResult : CollectInputsResult
-
Contains data collected from a Text form
See moreDeclaration
Objective-C
@interface SCPTextResult : SCPCollectInputsResult
Swift
class TextResult : CollectInputsResult
-
Contains information about a Toggle to display as part of a form
See moreDeclaration
Objective-C
@interface SCPToggle : NSObject
Swift
class Toggle : NSObject
-
The possible toggle default values
See moreDeclaration
Objective-C
enum SCPToggleValue : NSUInteger {}
Swift
enum ToggleValue : UInt, @unchecked Sendable
-
The possible toggle result values
See moreDeclaration
Objective-C
enum SCPToggleResult : NSUInteger {}
Swift
enum ToggleResult : UInt, @unchecked Sendable
-
Declaration
Objective-C
@interface SCPToggleBuilder : SCPBuilder <SCPToggle *>
Swift
class ToggleBuilder : SCPBuilder<Toggle>
-
Class representing the current settings of the reader.
See moreDeclaration
Objective-C
@interface SCPReaderSettings : NSObject
Swift
class ReaderSettings : NSObject
-
The protocol that classes that are able to be passed in to setReaderSettings must implement.
You do not implement this protocol but instead use one of the existing SDK classes that conforms to this protocol:
Declaration
Objective-C
@protocol SCPReaderSettingsParameters <NSObject>
Swift
protocol ReaderSettingsParameters : NSObjectProtocol
-
Class representing the accessibility state of the reader.
See moreDeclaration
Objective-C
@interface SCPReaderAccessibility : NSObject
Swift
class ReaderAccessibility : NSObject
-
Represents the current text to speech status of the reader. Note that the actual text to speech value returned here may not match what was last requested since the reader may switch to headphones if the customer plugs in headphones and the state will reset to off after reboots.
See the Reader Settings
See moreDeclaration
Objective-C
enum SCPReaderTextToSpeechStatus : NSUInteger {}
Swift
enum ReaderTextToSpeechStatus : UInt, @unchecked Sendable
-
The
See moreSCPReaderAccessibilityParameters
class contains information used to update the reader’s accessibility settings. To create aReaderAccessibilityParameters
instance, theSCPReaderAccessibilityParametersBuilder
class should be used.Declaration
Objective-C
@interface SCPReaderAccessibilityParameters : NSObject <SCPReaderSettingsParameters>
Swift
class ReaderAccessibilityParameters : NSObject, ReaderSettingsParameters
-
A builder class for
See moreSCPReaderSettingsParameters
.Declaration
Objective-C
@interface SCPReaderAccessibilityParametersBuilder : SCPBuilder <SCPReaderAccessibilityParameters *>
Swift
class ReaderAccessibilityParametersBuilder : SCPBuilder<ReaderAccessibilityParameters>
-
A block called with a
SCPReaderSettings
.Success denotes the command was received by the reader and responded to. But the contents of ReaderSettings should be checked for reader errors setting the values.
Declaration
Objective-C
typedef void (^SCPReaderSettingsCompletionBlock)(SCPReaderSettings *_Nullable, NSError *_Nullable)
Swift
typealias ReaderSettingsCompletionBlock = (SCPReaderSettings?, Error?) -> Void
Parameters
readerSettings
SCPReaderSettings
object, or nil if an error occurred.error
An error if one occurred, or nil.