{"id":21816975,"url":"https://github.com/maartenvanvliet/scrip","last_synced_at":"2025-03-21T10:14:23.521Z","repository":{"id":41730818,"uuid":"287301323","full_name":"maartenvanvliet/scrip","owner":"maartenvanvliet","description":"Scrip verifies Apple App Store receipts","archived":false,"fork":false,"pushed_at":"2023-03-03T04:57:24.000Z","size":75,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T12:50:09.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/maartenvanvliet.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}},"created_at":"2020-08-13T14:25:41.000Z","updated_at":"2021-11-18T05:58:38.000Z","dependencies_parsed_at":"2023-02-05T06:46:01.670Z","dependency_job_id":null,"html_url":"https://github.com/maartenvanvliet/scrip","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fscrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fscrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fscrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maartenvanvliet%2Fscrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maartenvanvliet","download_url":"https://codeload.github.com/maartenvanvliet/scrip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244776353,"owners_count":20508507,"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-27T15:38:26.716Z","updated_at":"2025-03-21T10:14:23.493Z","avatar_url":"https://github.com/maartenvanvliet.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrip\n\n## [![Hex pm](http://img.shields.io/hexpm/v/scrip.svg?style=flat)](https://hex.pm/packages/scrip) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ![CI](https://github.com/maartenvanvliet/scrip/workflows/CI/badge.svg)\n\n\u003c!-- MDOC !--\u003e\n\nScrip is a library to verify Apple App Store receipts. See the [Apple docs](https://developer.apple.com/documentation/appstorereceipts) for more information\n\n## Installation\n\nThe package can be installed by adding `scrip` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:scrip, \"~\u003e 1.0.0\"},\n    {:jason, \"~\u003e 1.1\"}, # optional\n    {:httpoison, \"~\u003e 1.7\"}, # optional\n  ]\nend\n```\n\n`Jason` and `HTTPoison` are optional and can be overriden with other implementations\nbut these are the default implementations. See `Scrip.Config` for more information.\n\n## Usage\n\nFirst set up In-App Purchases in App Store Connect. For your app should set the App-Specific Shared Secret, we can\nuse this later on to verify the receipt.\n\nThe usual flow is that your app does an in app purchase. This returns a Base64 receipt to the app. Your app can send the\nreceipt data to your backend to validate against the Apple servers.\n\nThe backend can verify the validity of this receipt using `Scrip.verify_receipt(\"BASE64_RECEIPT_DATA\", password: \"*App-Specific Shared Secret*\")`\n\nIf all goes well, it returns an `:ok` tuple with the IAP information you can store on your backend.\nOtherwise an `:error` tuple is returned.\n\nSee `Scrip.verify_receipt/3` for more information\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fscrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaartenvanvliet%2Fscrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaartenvanvliet%2Fscrip/lists"}