PCIPTokenizationOptions
@objc(DTPCIPTokenizationOptions)
@objcMembers
public class PCIPTokenizationOptions : NSObject
This class can be used to specify miscellaneous options related to the tokenization.
-
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
en
,da
,de
,es
,fi
,fr
,it
,nl
,no
,pt
,sv
andnil
.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
-
Use this setting to pass cardholder information for network tokens.
Important
For AMEX network tokens, either the phone number or email address is mandatory. The phone number must be given in international format with a leading plus sign (+) followed by country code.Declaration
Swift
public var cardholder: PCIPCardholder
-
Use this option when no card data is entered in our SDK and you want to show your own loading animation during the SDK’s initial network requests.
Important
Your loader must be visible before starting the SDK. Be aware that the SDK blocks user input. Your loading screen can not have a cancel button or give the impression that users can still interact with the UI.Declaration
Swift
public weak var customInitialLoaderDelegate: InitialLoaderDelegate?