SCPSimulatorConfiguration

Objective-C


@interface SCPSimulatorConfiguration : NSObject

Swift

class SimulatorConfiguration : NSObject

Simulator specific configurations you can set to test your integration’s behavior in different scenarios. We recommend changing these properties during testing to ensure your app works as expected for different reader updates and for different presented cards.

Do not create new instances of this class. Instead, set the properties via SCPTerminal.shared.simulatorConfiguration.

  • Set this to different values of the SCPSimulateReaderUpdate enum to test your integration with different reader software update scenarios.

    Note

    This is only valid for simulated Bluetooth readers.

    Declaration

    Objective-C

    @property (nonatomic) SCPSimulateReaderUpdate availableReaderUpdate;

    Swift

    var availableReaderUpdate: SimulateReaderUpdate { get set }
  • Create a SCPSimulatedCard and set it on the shared configuration object to test your integration with different card brands and in error scenarios.

    Note

    Simulated Internet reader refunds do not use the specified simulated card.

    Declaration

    Objective-C

    @property (nonatomic) SCPSimulatedCard *_Nonnull simulatedCard;

    Swift

    var simulatedCard: SimulatedCard { get set }
  • Set this to simulate a Terminal configuration object with this fixed tip amount for all currencies.

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSNumber *simulatedTipAmount;

    Swift

    var simulatedTipAmount: NSNumber? { get set }
  • Unavailable

    You cannot directly instantiate this class. Set exposed properties via SCPTerminal.shared.simulatorConfiguration

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    You cannot directly instantiate this class. Set exposed properties via SCPTerminal.shared.simulatorConfiguration

    Declaration

    Objective-C

    + (nonnull instancetype)new;