SCPOfflineDelegate
Objective-C
@protocol SCPOfflineDelegate <NSObject>
                Swift
protocol OfflineDelegate : NSObjectProtocol
                Implement this protocol to handle callbacks when the SDK is performing actions related to offline mode.
- 
                  
                  
This method is called on the offline delegate when any of the underlying
offlineStatusfields have changed.Declaration
Objective-C
- (void)terminal:(nonnull SCPTerminal *)terminal didChangeOfflineStatus:(nonnull SCPOfflineStatus *)offlineStatus;Swift
func terminal(_ terminal: SCPTerminal, didChange offlineStatus: OfflineStatus) - 
                  
                  
This method is called on the offline delegate when a locally stored payment intent was forwarded to stripe.com.
Declaration
Objective-C
- (void)terminal:(nonnull SCPTerminal *)terminal didForwardPaymentIntent:(nonnull SCPPaymentIntent *)intent error:(nullable NSError *)error;Swift
func terminal(_ terminal: SCPTerminal, didForwardPaymentIntent intent: SCPPaymentIntent, error: (any Error)?)Parameters
intentThe SCPPaymentIntent that was forwarded. This will always be provided. If there was an error, the
intentcontains the local representation and theintent.offlineDetailscan be used to identify the payment.errorThe error, if an error occurred.
 - 
                  
                  
This method is called on the offline delegate when the Stripe Terminal SDK encounters an error that is not specific to any particular Payment Intent. For example, if the SDK fails to fetch a connection token as part of the forwarding process, this method will be called with an appropriate error.
Note that if an error is encountered during the course of forwarding a specific payment intent,
didForwardPaymentIntentwill be called with a non-nilerrorargument.Declaration
Objective-C
- (void)terminal:(nonnull SCPTerminal *)terminal didReportForwardingError:(nonnull NSError *)error;Swift
func terminal(_ terminal: SCPTerminal, didReportForwardingError error: any Error)