> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart Fields Api Keys

Step-by-step guide to generating and managing your Smart Fields API key in the Localpayment business portal.

Smart Fields provide a secure way to collect sensitive payment information directly on your website. To [integrate them](https://docs.localpayment.com/docs/smart-fields-overview.md) , you first need to generate a unique API key. This key authenticates your requests and links the tokenized payment data to your account.

## Prerequisites

Before you begin, ensure you have:

**Access Requirements**

* Valid credentials for the [Localpayment Business Portal](https://ui.v3.localpayment.com/login)
* User account with [security settings permissions](https://docs.localpayment.com/docs/user-roles-and-permissions.md)

***

## Navigation Path

```
Side Menu → PayIn → Checkout → Smart Fields Api Keys
```

***

## Step-by-Step Guide

1. Navigate to the **PayIn** module from the side menu.
2. Select the **Checkout** section.
3. Then, select the **Smart Fields Api Keys** section.
4. Click the **Add API Key** button.
5. Fill in the required details:
   * **Title**: Enter a descriptive name for this key (e.g., "Production Website," "John's Test Store"). This helps you identify it later.
   * **Domain**: Enter the domain name from which this API key will be used (e.g., myshop.com). For security, the key will only work on the specified domain.
6. Click the "Accept" button to generate the API key.
7. Your new API Key will now be visible in the **Smart Fields Api Key** list. It will be a long string of random characters. Copy this key and store it securely in your application's environment variables or configuration files.

> [!NOTE]
>
> Now that you have your keys, you can start building with SmartFields. For implementation details, see [Smart Fields Overview](https://docs.localpayment.com/docs/smart-fields-overview.md)

Navigate to the **PayIn** module from the business portal side menu.

![](https://mintcdn.com/localpayment-1fee3d41/thasGykLOKju8tM0/images/docs/00afb1a4fbd538c77f4b363db438059b7dd1702b75a7e58cb97bf8131c841f05-image.png?fit=max\&auto=format\&n=thasGykLOKju8tM0\&q=85\&s=0847efb5a1e70a0c23cf740e8136ef53)

Select the **Checkout** section.

![](https://mintcdn.com/localpayment-1fee3d41/R2R5JIQRe6pRQ97b/images/docs/a832f4ccd3d8b7f7cf939ca3d20130214bf175740377c630acf2077294aa6259-image.png?fit=max\&auto=format\&n=R2R5JIQRe6pRQ97b\&q=85\&s=60e54c501b2ff5428350990f49f0b8d7)

Then, select the **Smart Fields Api Keys** section.

![](https://mintcdn.com/localpayment-1fee3d41/thasGykLOKju8tM0/images/docs/36a0e229de597e3223ea3388d54266901e85cb7e23e47fed440150ae805760e8-image.png?fit=max\&auto=format\&n=thasGykLOKju8tM0\&q=85\&s=9382760cc80a69378cf5e1e57dfbf49f)

Click the **Add API Key** button.

![](https://mintcdn.com/localpayment-1fee3d41/R2R5JIQRe6pRQ97b/images/docs/a4f33d8e3bb6a072cda9387043a74208961210c3781bff3dc51a2b41a5524bd4-image.png?fit=max\&auto=format\&n=R2R5JIQRe6pRQ97b\&q=85\&s=00ab8eb87e7bd54cc0748598f686172f)

Fill in the required details.

![](https://mintcdn.com/localpayment-1fee3d41/x0nXcqwNUmbD9R8W/images/docs/532aa0a8f8c408a49013e947535c0b8610e60ffd6b1e0923e1b499e33b827451-image.png?fit=max\&auto=format\&n=x0nXcqwNUmbD9R8W\&q=85\&s=f0c1160222d01793e51a9666cb332c69)

Click the **Accept** button to generate the API key.

![](https://mintcdn.com/localpayment-1fee3d41/thasGykLOKju8tM0/images/docs/2f8ea403b5c222d949a3732372ecd9f1c6a2ac382d8043318ee7deaace9495af-image.png?fit=max\&auto=format\&n=thasGykLOKju8tM0\&q=85\&s=b90c7fe513f43b6e26b566dd5373bba3)

Your new API Key will now be visible in the **Smart Fields Api Key** list. It will be a long string of random characters.

![](https://mintcdn.com/localpayment-1fee3d41/R2R5JIQRe6pRQ97b/images/docs/b97f37539ec67974923e28616447964ac94335d2fbc2337a89d7f10d6e17ad5a-image.png?fit=max\&auto=format\&n=R2R5JIQRe6pRQ97b\&q=85\&s=1cacf0fc44942f76cab1ae84b773ae31)

***

## Managing Your Iframe Keys

### Viewing Existing Keys

Navigate to the Iframe Keys section to see a comprehensive list of all your created keys, including:

* Key title and creation date
* Associated domain
* Status (Active/Inactive)
* Public Key

### Removing Iframe Key

1. Locate the key you want to remove in your keys list.
2. Click the **Delete** icon next to the key.
3. Review the confirmation message carefully - this action cannot be undone.
4. Click **OK** to permanently remove the key.

> [!WARNING]
>
> **Warning**
>
> Deleting a key will immediately disable any integrations using it. Ensure you have updated your implementations before deletion.

![](https://mintcdn.com/localpayment-1fee3d41/oFZuSE0fcOk5ECyA/images/docs/fb08e020da5d8ad4f8b4ebe4f76bc29a80d78078eb94a1ac5d79cc37d65ad7fe-image.png?fit=max\&auto=format\&n=oFZuSE0fcOk5ECyA\&q=85\&s=101896150c331f99d388a47f247e045a)

### Deactivate/Activate Iframe Key

1. Find the key you wish to deactivate or activate in your keys list.
2. Click the **Deactivate/Activate** toggle icon next to the key.
3. Review the confirmation message carefully.
4. Click **OK** to change the key status.

> [!NOTE]
>
> **Tip**
>
> Deactivating a key temporarily disables it without deletion, useful for maintenance or troubleshooting.

![](https://mintcdn.com/localpayment-1fee3d41/oFZuSE0fcOk5ECyA/images/docs/dd62748a02547be548eb3e6ed3a3ffa67cf92ab2a7c5f35bcddd64db31dc592c-image.png?fit=max\&auto=format\&n=oFZuSE0fcOk5ECyA\&q=85\&s=1375fb60c8209082012ed38bdabb2d5d)

***

> **Need Help?** If you have questions about this process or any other feature, our [support team](mailto:support@localpayment.com) is here for you. We can assist with troubleshooting, integration planning, and optimization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.