PayPalToken

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

  • PayPal e-mail address. This will be used for displaying purposes.

    Declaration

    Swift

    public var payPalEmail: String?
  • This init method has to be used to initialize a PayPal payment object.

    Declaration

    Swift

    public init(token: String, payPalEmail: String?)

    Parameters

    token

    Token for a PayPal account.

    payPalEmail

    PayPal e-mail address. This will be used for displaying purposes.

  • A human readable title.

    Declaration

    Swift

    override public var displayTitle: String { get }
  • For VoiceOver this title is used instead of displayTitle.

    Declaration

    Swift

    override public var accessibilityTitle: String? { get }
  • Refer to the Encodable protocol

    Declaration

    Swift

    override public func encode(to encoder: Encoder) throws
  • 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