CardMetadata
public struct CardMetadata
The card metadata information containing basic information of the card. It is used to display the last 4 PAN digits and Card Art.
Since
1.0.0-
Last 4 digits of the card.
Declaration
Swift
public let cardLast4: String
-
Expiry date of the card in MMYY format.
Declaration
Swift
public let cardExpiry: String
-
Scheme of the card.
Declaration
Swift
public let cardScheme: CardScheme
-
State of the card.
Declaration
Swift
public let cardState: CardState
-
To get card assets belong to this card. The Card asset contains resources such as an image. For images in PNG format, the list may contain several resolutions of the same asset.
Note
If you are migrating from SDK version 1.x and 2.x, the previous method
CardMetadata.cardAssetArray
has been updated to this asynchronous method to optimize the performance. Previous usage:let assets = cardMetadata.cardAssetArray // proceed with application logic
New usage:
cardMetadata.cardAssetArray { assets, error in if let assets = assets { // proceed with application logic } else if let error = error { // handle the error, e.g. log it, display it, ... } }
Since
3.0.0
Declaration
Parameters
completion
The callback is invoked when the operation is completed. When the callback is successful, no error will be returned. Otherwise, the error details will be returned. Possible errors: