---
updatedAt: 2026-03-20T15:49:59.000Z
agentTools:
  projectIndex: https://developer.paze.com/public/llms.txt
---

# canCheckout()

<a id="cancheckout" />

`canCheckout()` determines whether a consumer is eligible to use Paze® by checking if the provided lookup key (email address or mobile number) is associated with a Paze wallet.
If both an email address and a mobile number are provided, the mobile number takes precedence.
The SDK hashes the lookup key before transmission.

<a id="cancheckout.request-parameters" />

## Request Parameters

<a id="cancheckout.emailaddress" />**emailAddress** *string* conditional\
`emailAddress` as Customer identity **must** conform to the RFC 5322 address-spec syntax (lowercase).

Max: 128 characters\
Condition: Required if a `mobileNumber` is not provided. `mobileNumber` takes precedence if both are provided.

***

<a id="cancheckout.mobilenumber" />**mobileNumber** *string* conditional\
`mobileNumber` as Customer identity is only supported as US based phone numbers. Formatting can include hyphens and country codes such as:

* 5125555555
* 512-555-5555
* 15125555555
* 1-512-555-5555

`mobileNumber` value MUST conform to the E.164 format without the plus sign.

Max: 15 characters\
Condition: `mobileNumber` is required if `emailAddress` is not provided. `mobileNumber` takes precedence if both are provided.

<a id="cancheckout.response-attributes" />

***

## Response Attributes

<a id="cancheckout.consumerpresent" />**consumerPresent** *boolean* required\
`consumerPresent` is a boolean indicater if a Paze wallet exists for the lookup key in `emailAddress` or `mobileNumber` and has at least one card. Suspended wallets return `true`.

***

<a id="cancheckout.promise" />

## Promise – Resolve and Reject

<a id="cancheckout.resolve" />**resolve()**\
This is the JS Promise (fulfilled) call when the request is successfully processed by the Paze SDK.

***

<a id="cancheckout.reject" />**reject()**\
This is the JS Promise call when there is an error. The object passed in is an error object as defined in the [Errors](https://developer.paze.com/design-sandbox/docs/errors) section.

***

<a id="cancheckout.code-example" />

## Code Example

```javascript
await canCheckout({
  emailAddress: "customer@example.com" // string (conditional) — required if mobileNumber not provided
  // mobileNumber: "15125555555",      // string (conditional) — required if emailAddress not provided
});

```

## Response

```json
{
  consumerPresent: true // boolean
}
```