SCPInternetConnectionConfiguration

Objective-C


@interface SCPInternetConnectionConfiguration : SCPConnectionConfiguration

Swift

class InternetConnectionConfiguration : ConnectionConfiguration

This class lets you set options that define internet reader behavior throughout a given reader-to-SDK connection session.

  • When set to true, the connection will automatically error if the reader is already connected to a device and collecting payment. When set to false, this will allow you to connect to a reader already connected to another device, and will break the existing reader-to-SDK connection on the other device when it attempts to collect payment.

    If Terminal.connectReader is invoked without a SCPInternetConnectionConfiguration, then failIfInUse defaults to NO.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL failIfInUse;

    Swift

    var failIfInUse: Bool { get }
  • If set to true, the customer will be able to press the red X button on the Verifone P400 to cancel a collectPaymentMethod, collectReusableCard, or collectRefundPaymentMethod command.

    The property defaults to NO if not set.

    Note

    This behavior is part of a private beta. Setting this property will have no effect if you are not part of the allowCustomerCancel beta program.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL allowCustomerCancel;

    Swift

    var allowCustomerCancel: Bool { get }
  • Initialize an InternetConnectionConfiguration object with all possible properties.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFailIfInUse:(BOOL)failIfInUse
                            allowCustomerCancel:(BOOL)allowCustomerCancel;

    Swift

    init(failIfInUse: Bool, allowCustomerCancel: Bool)
  • Initalize an InternetConnectionConfiguration object and set the failIfInUse property.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFailIfInUse:(BOOL)failIfInUse;

    Swift

    init(failIfInUse: Bool)
  • Initialize an InternetConnectionConfiguration object and set the allowCustomerCancel property.

    This property is in private beta, and will have no effect if you are not part of the allowCustomerCancel beta program.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAllowCustomerCancel:(BOOL)allowCustomerCancel;

    Swift

    init(allowCustomerCancel: Bool)