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 a month 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:
- Select Payment Providers > Entitlement Delivery Method.
- Select the Your own server webhooks option and enter your webhook URL.
- 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:
- In the Unity Dashboard, select IAP > Payment Providers.
- Under Entitlement Delivery Method, select Edit.
- Select the Cloud Code module option and then select your module and endpoint from the dropdowns.
- 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: