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.
This method is called on the offline delegate when a locally stored payment intent was forwarded to stripe.com.
- (void)terminal:(nonnull SCPTerminal *)terminal didForwardPaymentIntent:(nonnull SCPPaymentIntent *)intent error:(nullable NSError *)error;
The SCPPaymentIntent that was forwarded. This will always be provided. If there was an error, the
intentcontains the local representation and the
intent.offlineDetailscan be used to identify the payment.
The 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-nil