LogoURLProvider

public final class LogoURLProvider

Struct with helper functions to build logo URL’s.

  • Build the logo URL for a given Payment Method.

    Declaration

    Swift

    public static func logoURL(for paymentMethod: PaymentMethod, environment: Environment) -> URL

    Parameters

    paymentMethod

    The payment method that needs the logo.

    environment

    The environemnt to be used.

    Return Value

    The URL for the payment method logo.

  • Build the logo URL for a specific issuer from an issuer list payment method.

    Declaration

    Swift

    public static func logoURL(for issuer: IssuerListPaymentMethod.Issuer, paymentMethod: IssuerListPaymentMethod, environment: Environment) -> URL

    Parameters

    issuer

    The issuer that needs the logo.

    paymentMethod

    The issuer payment method.

    environment

    The environemnt to be used.

    Return Value

    The URL for the issuer logo.

  • Build the logo URL for a specific named resource.

    Declaration

    Swift

    public static func logoURL(withName name: String, environment: Environment) -> URL

    Parameters

    name

    The name of the resource.

    environment

    The environemnt to be used.

    Return Value

    The URL for the named resource logo.