TransactionOptions

@objc(DTTransactionOptions)
@objcMembers
public class TransactionOptions : NSObject

This class can be used to specify miscellaneous options related to the transaction.

  • Your unique URL scheme to be used by other apps (e.g. Twint) to return to the merchant app.

    Declaration

    Swift

    public var appCallbackScheme: String?
  • Specify the ApplePayConfig object here. This is mandatory for Apple Pay transactions.

    Declaration

    Swift

    public var applePayConfig: ApplePayConfig?
  • Use this setting to display or hide critical and transaction errors.

    Declaration

    Swift

    public var suppressCriticalErrorDialog: Bool
  • Use this setting to switch from production to sandbox. If not specified, the SDK will call the Datatrans production environment.

    Declaration

    Swift

    public var testing: Bool
  • Whether secure connections to datatrans servers require a certificate chain signed with a specific CA private key. The device’s trust settings are explicitly ignored, i.e. custom installed/white-listed certificates and/or CAs will not work.

    Please be advised that enabling this option will break your app in many corporate networks with anti-malware/-theft/-espionage SSL proxying.

    Declaration

    Swift

    public var useCertificatePinning: Bool