<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKPayLater/validate(amount:currency:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "s:7PassKit10PKPayLaterO8validate6amount8currencySbSo9NSDecimala_10Foundation6LocaleV8CurrencyVtYaFZ"
  },
  "title" : "validate(amount:currency:)"
}
-->

# validate(amount:currency:)

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

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

## Parameters

`amount`

The customer’s cart price or item pricing.

`currency`

The [ISO-4217](https://www.iso.org/iso-4217-currency-codes.html) currency code for the country or region of the merchant’s principle place of business.

## Return Value

Returns <doc://com.apple.documentation/documentation/Swift/true> if the framework can display the requested information; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)