SCPTerminalDelegate
Objective-C
@protocol SCPTerminalDelegate <NSObject>
                Swift
protocol TerminalDelegate : NSObjectProtocol
                Implement this protocol to handle connection and payment updates from the Stripe Terminal iOS SDK.
- 
                  
                  
The currently connected reader’s
connectionStatuschanged.You should not use this method to detect when a reader unexpectedly disconnects from your app, as it cannot be used to accurately distinguish between expected and unexpected disconnect events. To detect unexpect disconnects (e.g. to automatically notify your user), you should instead use the
-[SCPReaderDelegate reader:didDisconnect:]method.Declaration
Objective-C
- (void)terminal:(nonnull SCPTerminal *)terminal didChangeConnectionStatus:(SCPConnectionStatus)status;Swift
optional func terminal(_ terminal: Terminal, didChangeConnectionStatus status: ConnectionStatus)Parameters
terminalThe originating terminal.
statusThe SDK’s new connection status.
 - 
                  
                  
The currently connected reader’s
paymentStatuschanged.Declaration
Objective-C
- (void)terminal:(nonnull SCPTerminal *)terminal didChangePaymentStatus:(SCPPaymentStatus)status;Swift
optional func terminal(_ terminal: Terminal, didChangePaymentStatus status: PaymentStatus)Parameters
terminalThe originating terminal.
statusThe SDK’s new payment status.