{"id":20974247,"url":"https://github.com/thirdweb-example/unity-iap-server","last_synced_at":"2025-07-04T19:34:51.548Z","repository":{"id":221517977,"uuid":"754173061","full_name":"thirdweb-example/unity-iap-server","owner":"thirdweb-example","description":"Unity IAP Server Implementation","archived":false,"fork":false,"pushed_at":"2024-03-12T18:29:49.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-13T08:45:12.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thirdweb-example.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-07T14:42:56.000Z","updated_at":"2024-02-08T11:34:54.000Z","dependencies_parsed_at":"2024-11-19T04:42:38.402Z","dependency_job_id":null,"html_url":"https://github.com/thirdweb-example/unity-iap-server","commit_stats":null,"previous_names":["thirdweb-example/unity-iap-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thirdweb-example/unity-iap-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Funity-iap-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Funity-iap-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Funity-iap-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Funity-iap-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thirdweb-example","download_url":"https://codeload.github.com/thirdweb-example/unity-iap-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thirdweb-example%2Funity-iap-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263607084,"owners_count":23487738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T04:27:33.924Z","updated_at":"2025-07-04T19:34:51.531Z","avatar_url":"https://github.com/thirdweb-example.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unity IAP Server Template\n\nUnity IAP Server Implementation compatible with [Unity IAP](https://docs.unity3d.com/Packages/com.unity.purchasing@4.10/manual/Overview.html) Apple and Google receipts.\n\n## Features\n- Validate receipts server-side\n- Airdrop a blockchain reward to user's wallet using thirdweb [Engine](https://portal.thirdweb.com/engine)\n\n## Setup\n\nEnsure you set up IAP on the Apple and Google stores.\n\nFollow their respectives guides to setup sandbox mode, whereby testers can use test credit cards.\n\n### Thirdweb Engine\n\nEnvironment Variables\n\n- `THIRDWEB_ENGINE_URL` - thirdweb Engine endpoint.\n- `THIRDWEB_ENGINE_BACKEND_WALLET` - thirdweb Engine backend wallet that will mint tokens to the user post receipt validation.\n- `THIRDWEB_CHAIN_ID` - chain id where your token reward resides.\n- `THIRDWEB_API_SECRET_KEY` - [thirdweb API Key](https://thirdweb.com/create-api-key) secret\n\n### Google Setup\n\nIn this example, we interact with the Google Play API using a service account stored at root `service-account-file.json`.\nHead to the google cloud console to create a service account with the right permissions, and make sure its email is added to your Google Play project User Permissions.\nDownload the service account file, it should look like `service-account-file.json.example`.\n\n### Apple Setup\n\nIn this example, we interact with the Apple Connect Server API using an In-App Purchasing Key.\nHead to the Apple dashboard and create a key, all the information you need will be on that page.\nDownload the .p8 file and set it at root in `subscription-key.p8`, it should look like `subscription-key.p8.example`.\n\nEnvironment Variables:\n\n`APPLE_APP_STORE_ISSUER_ID` - Available on the Keys page where you created your In-App Purchasing Key.\n`APPLE_APP_STORE_KEY_ID` - Available on the Keys page where you created your In-App Purchasing Key.\n`APPLE_APP_STORE_BUNDLE_ID` - The bundle identifier of your Unity game, such as `com.thirdweb.myepicgame` - found in Project Settings.\n\n## Documentation\n\n- Learn more from the [Unity SDK Documentation](https://portal.thirdweb.com/unity)\n\n\n## Contributing\n\nContributions are always welcome! See our [open source page](https://thirdweb.com/open-source) for more information. \n\n\n## Support \n\nFor help or feedback, please [visit our support site](https://thirdweb.com/support)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Funity-iap-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthirdweb-example%2Funity-iap-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthirdweb-example%2Funity-iap-server/lists"}