Payment Method

  • Configuration object for Apple Pay transactions.

    See more

    Declaration

    Swift

    @objc(DTApplePayConfig)
    @objcMembers
    public class ApplePayConfig : NSObject, NSCopying
  • Use this class to process raw card data for payments. You should use this class if your app takes over the user interface for the card input fields.

    See more

    Declaration

    Swift

    @objc(DTCard)
    @objcMembers
    public class Card : PaymentMethod
  • Class to be used to represent the card expiry date (month and year).

    See more

    Declaration

    Swift

    @objc(DTCardExpiryDate)
    @objcMembers
    public class CardExpiryDate : NSObject, Codable, NSCopying
  • This class contains the token information about a credit or debit card registration from a previously completed transaction. Just like any other PaymentMethodToken subclass, this class can be used to finalize a payment without user interaction or to display a selection of saved token payments to the user for fast checkouts. A token can be returned after completing a successful card payment or with a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTCardToken)
    @objcMembers
    public class CardToken : PaymentMethodToken
  • This class contains the token information about a SEPA (ELV) registration from a previously completed transaction. Just like any other PaymentMethodToken subclass, this class can be used to finalize a payment without user interaction or to show a selection of saved token payments to the user for fast checkouts. A token can be returned after completing a successful SEPA payment or with a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTSEPAToken)
    @objcMembers
    public class SEPAToken : PaymentMethodToken
  • This class contains the token information about a PayPal registration from a previously completed transaction. Just like any other PaymentMethodToken subclass, this class can be used to finalize a payment without user interaction or to show a selection of saved token payments to the user for fast checkouts. A token can be returned after completing a successful PayPal payment or with a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTPayPalToken)
    @objcMembers
    public class PayPalToken : PaymentMethodToken
  • This is the base class for payment methods. It contains a type to identify the payment method, e.g. Visa or Mastercard.

    See more

    Declaration

    Swift

    @objc(DTPaymentMethod)
    @objcMembers
    public class PaymentMethod : NSObject, Codable, NSCoding, NSCopying
  • This class is the base token class to gather token information and process recurring payments or fast checkouts with any payment method. This class is sufficient to process payments with tokens of some payment methods (e.g. Twint). More complex payment methods require you to specify some more details in their token subclasses (e.g. card payments, PostFinance, etc.). Please refer to the list below to see if you need to call an additional token subclass for your payments.

    • Easy payment methods: Swisscom Easypay, SEPA (ELV), Twint, Apple Pay, Byjuno, SwissPass, Powerpay Invoice
    • Complex payment methods (requiring token subclass): Card payments, PayPal, PostFinance, Reka

    Please refer to the Datatrans documentation to see if you can register a token during payment or require a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTPaymentMethodToken)
    @objcMembers
    public class PaymentMethodToken : PaymentMethod
  • The payment method used during the transaction.

    See more

    Declaration

    Swift

    @objc(DTPaymentMethodType)
    public enum PaymentMethodType : Int
  • Use this class to map the payment method identifiers from Datatrans to the PaymentMethodType.

    See more

    Declaration

    Swift

    @objc(DTPaymentMethodTypeMapper)
    @objcMembers
    public class PaymentMethodTypeMapper : NSObject
  • This class contains the token information about a PostFinance Card registration from a previously completed transaction. Just like any other PaymentMethodToken subclass, this class can be used to finalize a payment without user interaction or to show a selection of saved token payments to the user for fast checkouts. A token can be returned after completing a successful PostFinance Card payment or with a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTPostFinanceCardToken)
    @objcMembers
    public class PostFinanceCardToken : CardToken
  • This class contains the token information about a Reka card registration from a previously completed transaction. Just like any other PaymentMethodToken subclass, this class can be used to finalize a payment without user interaction or to show a selection of saved token payments to the user for fast checkouts. A token can be returned after completing a successful Reka payment or with a dedicated registration.

    See more

    Declaration

    Swift

    @objc(DTRekaToken)
    @objcMembers
    public class RekaToken : CardToken