This method is deprecated. Please use getCardNetworkAsset(for:)
.
This method returns a card network image associated with a particular card network.
The SDK must be initialized before this method is called or an error will be thrown.
static func getCardNetworkImage ( for cardNetwork : CardNetwork) throws -> UIImage?
Parameters
This network has a string value of ‘OTHER’ which matches what is returned by
Primer APIs when a network is not identifiable for a given card. Passing this
will return a generic card icon.
Returns
A UIKit image that can be displayed to the user, or nil
if no image is
available for the provided network, e.g. nil
is returned for .unknown
.
Throws
An error that will be thrown in case the SDK was not initialized properly. Before calling this method,
the SDK must be initialized.