Contents

validate(amount:currency:)

Checks if the framework can display Apple Pay Later visual merchandising widget information for the given amount and currency.

Declaration

static func validate(amount: Decimal, currency: Locale.Currency) async -> Bool

Parameters

  • amount:

    The customer’s cart price or item pricing.

  • currency:

    The Iso 4217 Currency Codes currency code for the country or region of the merchant’s principle place of business.

Return Value

Returns true if the framework can display the requested information; otherwise, false.