Documentation

In-App Purchasing

Client API

SDK API

In-App Purchasing

Configure a webhook or Cloud Code module for purchase fulfillment

Configure your entitlement delivery options in the Unity Dashboard to define how you grant purchases to your players.
Read time 1 minuteLast updated 6 hours ago

Unity IAP manages entitlements for off-platform payment providers, similar to how Apple and Google handle entitlements for their stores. If you need to sync purchases with your backend or use server-authoritative entitlements, you can optionally configure a webhook or Cloud Code module to receive purchase events.

Configure a webhook

To configure a webhook in the Unity Dashboard:
  1. Select Payment Providers > Entitlement Delivery Method.
  2. Select the Your own server webhooks option and enter your webhook URL.
  3. Select Save Configuration.
For more information, refer to Fulfill purchases through the backend API.

Configure a Cloud Code module

Configure your project to receive purchase information from your Cloud Code module in the Unity Dashboard:
  1. In the Unity Dashboard, select IAP > Payment Providers.
  2. Under Entitlement Delivery Method, select Edit.
  3. Select the Cloud Code module option and then select your module and endpoint from the dropdowns.
  4. Select Save Configuration.
For more information, refer to Implement a Cloud Code module to fulfill purchases.

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: