SCPOfflineBehavior

Objective-C

enum SCPOfflineBehavior : NSInteger {}

Swift

enum OfflineBehavior : Int, @unchecked Sendable

The available operating modes that define how payment intents respond to changes in network connectivity.

  • When network connectivity is available, this PaymentIntent will be transacted online. When network connectivity is unavailable, the PaymentIntent will be transacted offline.

    Declaration

    Objective-C

    SCPOfflineBehaviorPreferOnline

    Swift

    case preferOnline = 0
  • The PaymentIntent will only be transacted when network connectivity is available.

    Declaration

    Objective-C

    SCPOfflineBehaviorRequireOnline

    Swift

    case requireOnline = 1
  • The PaymentIntent will only be transacted offline, regardless of network connectivity.

    Declaration

    Objective-C

    SCPOfflineBehaviorForceOffline

    Swift

    case forceOffline = 2