PostFinanceCardToken

@objc(DTPostFinanceCardToken)
@objcMembers
public class PostFinanceCardToken : CardToken

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.

  • This init method has to be used to initialize a PostFinance Card payment object.

    Declaration

    Swift

    public init(token: String, cardExpiryDate: CardExpiryDate?, maskedCardNumber: String?, cardholder: String?)

    Parameters

    token

    Token for a PostFinance Card.

    cardExpiryDate

    Expiry date

    maskedCardNumber

    The masked card number you can use to display that specific card in your app. The masked card number shows the last 4 digits of the card, e.g. **** 1234.

    cardholder

    Cardholder’s name

  • Refer to the NSCoding protocol

    Declaration

    Swift

    public required init?(coder: NSCoder)
  • Refer to the NSCopying protocol

    Declaration

    Swift

    override public func copy(with zone: NSZone? = nil) -> Any