RekaToken

@objc(DTRekaToken)
@objcMembers
public class RekaToken : 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.

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

    Declaration

    Swift

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

    Parameters

    token

    Token for a Reka 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 first 6 digits and the last 4 digits of the card, e.g. 123456xxxxxxxxx1234.

    cardholder

    Cardholder’s name

  • Refer to the NSCopying protocol

    Declaration

    Swift

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