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

# Integrate with WebGL

This article explains how to integrate Unity Payment Links with the WebGL platform.

To integrate with WebGL:

1. Go to the **Build Settings** window and make sure your Unity project is set to **WebGL**. Once set, the `AppchargeConfig` file updates to display WebGL-specific configuration options.

   ![WebGL Build Settings](https://mintcdn.com/appcharge/pgQNefK6v2mrfKWg/images/sdks/unity/config_webgl_main.png?fit=max\&auto=format\&n=pgQNefK6v2mrfKWg\&q=85\&s=7654c9eb0170481eb4b2e4f9713b03ad)

2. Your configuration settings should look like this:

   ![WebGL Configurations](https://mintcdn.com/appcharge/aHvkQM4kEbqf_uft/images/sdks/unity/config_webgl.png?fit=max\&auto=format\&n=aHvkQM4kEbqf_uft\&q=85\&s=c564b062900a9946d8a6a8ddd1e12889)

   > [!NOTE]
   >
   > By default, the configuration file is preconfigured for integration. However, you must set the required **Environment** field under **Publisher Info**.

   ## Publisher Info

   > [!NOTE]
   >
   > These settings can also be changed at runtime, but doing so requires [re-initializing the SDK](https://docs.appcharge.com/sdks/payment-links/unity/initialize-the-payment-links-sdk.md#re-initialize-the-sdk).

   | Property | Type | Description |
   | - | - | - |
   | Environment | `Enum` | Sets the checkout environment. Use `Sandbox` for testing and `Production` for live payments. |

   ## Configuration Settings

   | Property | Type | Description |
   | - | - | - |
   | Enable Main Thread Dispatcher | `Boolean` | The SDK works outside of the Unity main thread. This option allows you to wrap callback methods with Unity main thread. |
   | Enable Debug Mode | `Boolean` | When enabled, prints a summary of automatic integration changes after the build completes. |
