Documentation

In-App Purchasing

Client API

SDK API

In-App Purchasing

Configure Coda in the Unity Dashboard

Configure Coda as a payment provider for in-app purchases.
Read time 2 minutesLast updated a day ago

This integration uses 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. 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 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 NameThe name of the linked Unity project in Coda.
Title Product IDThe ID of the linked Unity project and configuration in Coda.
EnvironmentDefines the account type. Select Switch environment to change between the following options:
  • Sandbox
  • Production
Success Redirect URLThe URL that the payment provider redirects to after a successful payment. Ideally this is a deep link back into your game.
Cancel Redirect URLIf 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-authenticateRe-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.

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: