# isPaymentAvailable

Call the **isPaymentAvailable** API to determine if the payment function is available.

## Method signature

```java
int isPaymentAvailable();
```

## Request parameters

N/A

## Response parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| result | Int | The Token status code. For the code and the corresponding Token status, see [Token status](#geJ20). | Required |

### Token status

| **Code** | **Token status** |
| --- | --- |
| \-3 | White box is crashed. |
| \-2 | Disconnected. |
| \-1 | Query failed. |
| 0 | The card does not exist. |
| 1 | The card exists, but there are no credentials. Call the **replenish** API to replenish credentials. |
| 2 | Payment is allowed. |
| 3 | The card is locked. Call the **unlock** API to unlock. |
| 11 | The card is in activation. |
| 21 | The card is activated successfully but requires secondary confirmation. |

## Sample

```java
ACTapManager.getInstance(getApplication()).isPaymentAvailable();
```