---
title: "validate(amount:currency:)"
framework: passkit
role: symbol
role_heading: Type Method
path: "passkit/pkpaylater/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.

## Declaration

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

## Parameters

- `amount`: The customer’s cart price or item pricing.
- `currency`: The 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

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