CardDetails

public struct CardDetails

The object encapsulating CardDetails. For security reasons, CardDetails needs to be wiped after use via the wipe function.

Use the following example to convert the variable from Data to String if needed:

let panString = String(data: pan, encoding: .utf8)

Since

1.0.0
  • pan

    The full PAN number of CardDetails.

    Declaration

    Swift

    public private(set) var pan: Data { get }
  • The expiry date of CardDetails in MMYY format.

    Declaration

    Swift

    public private(set) var expiryDate: Data { get }
  • cvv

    The CVV number of CardDetails.

    Declaration

    Swift

    public private(set) var cvv: Data { get }
  • The card holder name of CardDetails.

    Declaration

    Swift

    public private(set) var cardHolderName: Data? { get }
  • Call this method to wipe the internal data of CardDetails.

    Declaration

    Swift

    public mutating func wipe()