# Configure Coda in the Unity Dashboard

> Configure Coda as a payment provider for in-app purchases.

This integration uses [Codapay](https://www.coda.co/product/codapay/) as the merchant of record (MoR). This means Coda assumes the legal responsibility for processing payments, which includes support with tax compliance, fraud prevention, disputes, and customer support. By leveraging Coda as the MoR, you can significantly reduce your operational overhead and compliance burden for off-platform transactions.

For more information, refer to the [Codapay documentation website](https://docs.coda.co/codapay/overview).

To configure Coda in the Unity Dashboard, complete the following steps:

1. In the Unity Dashboard, open **In-App Purchases** > **Payment Providers**.
2. In **Payment Provider Configuration**, find Coda and select **Connect**:
   * If you already have an environment from your current project connected to a Coda title, select that environment or create a new one.
3. In the dialog, follow the steps to link your Unity project to a Coda title.
   * You can also use this dialog to create a Coda account and Coda title if you don't already have one.
4. After you have linked your Unity project, select **Back to Unity**.
5. Set **Success Redirect URL** (ideally a deep link into your game).
6. Set **Cancel Redirect URL** (optional; ideally a deep link into your game).
7. Select **Save Configuration**.

> **Note:**
>
> If your game ships on multiple platforms, use a small proxy page to deep link to the correct platform for the Success Redirect URL. For more information, refer to the [Success URL deep link](./success-deep-link.md) example.

## Coda configuration options

The following table describes the available configuration options:

| **Setting**              | **Description**                                                                                                                                                                                 |
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Setup**                | **Complete**: You have configured all the required fields for the payment provider.**Incomplete**: You're missing a required configuration field and can't activate the payment provider.       |
| **Connection**           | **Linked**: You have successfully authenticated with the payment provider and installed Unity IAP to link the accounts.**Not Linked**: You need to re-authenticate with your payment provider.  |
| **Title Product Name**   | The name of the linked Unity project in Coda.                                                                                                                                                   |
| **Title Product ID**     | The ID of the linked Unity project and configuration in Coda.                                                                                                                                   |
| **Environment**          | Defines the account type. Select **Switch environment** to change between the following options: **Sandbox****Production**                                                                      |
| **Success Redirect URL** | The URL that the payment provider redirects to after a successful payment. Ideally this is a deep link back into your game.                                                                     |
| **Cancel Redirect URL**  | If provided, Coda will add a back button to your checkout page and this URL will be its destination. Ideally this is a deep link back into your game.                                           |
| **Re-authenticate**      | Re-authenticates your Unity account with your payment provider account using the OAuth mechanism.                                                                                               |

> **Note:**
>
> To use a live Production account, complete Coda's [account verification requirements](https://docs.coda.co/coda-portal/activate-your-account/complete-account-verification-to-go-live).

## Disconnect Coda

To disconnect your Unity project from your Coda title, you need to contact Coda directly. You can't disconnect through the Unity Dashboard.

## Next steps

This page is part of a workflow to set up Direct to Consumer (D2C) payment providers with IAP. To continue this workflow, choose one of the following options:

[Integrate D2C payment providers](./workflow.md#configure-your-payment-provider): Return to the Integrate D2C payment providers with IAP workflow page.
[Add a routing rule](./routing.md): Proceed to the next step in the workflow.
