# lock

> Locks NFC payment functionality.

Call the **lock** API to lock the card through the MPP app.

> **Note**: The callback for successful card locking is notified to the MPP app through the global wallet status listener, TokenStatusListener. For more information, see the [TokenStatusListener](set_token_status_listener) API.

## Method signature

```java
void lock();
```

## Request parameters

N/A

## Response parameters

N/A

## Error Codes

| **Error Code** | **Description** |
| --- | --- |
| `10000` | Success. |
| `10004` | Internal SDK error (exception during processing). |
| `10005` | Network/RPC call failed or server returned null. |
| `10006` | SDK not in `CONNECTED` state. |
| `10011` | Invalid input parameters. Returned when the token reference or the payment instance ID is missing, or the card cannot be found. |
| `10015` | The lock operation failed. Returned when the lock fails during processing, or when the server declines the request. |
| `10039` | Server verification rejected the request. |
| `10040` | The user did not pass KYC verification. |
| `10041` | Risk control rejected the request. |

## Sample

```java
manager = ACTapManager.getInstance(this.getApplication());
manager.lock();
```