TokenizationRequestOptions

@objc(DTTokenizationOptions)
@objcMembers
public class TokenizationRequestOptions : NSObject

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

  • Use this setting to change the UI language. If this is not specified, the default language determined by the system will be used.

    The supported values are de, en, fr, it and nil.

    Declaration

    Swift

    public var language: String? { get set }
  • Use this setting to display or hide critical 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