{"id":13563948,"url":"https://github.com/Bounceapp/ex_passbook","last_synced_at":"2025-04-03T20:32:15.586Z","repository":{"id":64018009,"uuid":"572630823","full_name":"Bounceapp/ex_passbook","owner":"Bounceapp","description":"Elixir library to create Apple Wallet (.pkpass) files","archived":false,"fork":false,"pushed_at":"2024-10-07T09:39:43.000Z","size":31,"stargazers_count":14,"open_issues_count":6,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T07:38:22.909Z","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/Bounceapp.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":"2022-11-30T17:28:23.000Z","updated_at":"2024-12-29T08:09:53.000Z","dependencies_parsed_at":"2023-01-23T03:31:13.311Z","dependency_job_id":null,"html_url":"https://github.com/Bounceapp/ex_passbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bounceapp%2Fex_passbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bounceapp%2Fex_passbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bounceapp%2Fex_passbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bounceapp%2Fex_passbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bounceapp","download_url":"https://codeload.github.com/Bounceapp/ex_passbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247075238,"owners_count":20879413,"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-08-01T13:01:24.895Z","updated_at":"2025-04-03T20:32:15.326Z","avatar_url":"https://github.com/Bounceapp.png","language":"Elixir","funding_links":[],"categories":["Miscellaneous"],"sub_categories":[],"readme":"# Passbook for Elixir [![Hex pm](https://img.shields.io/hexpm/v/passbook.svg?style=flat)](https://hex.pm/packages/passbook) [![hex.pm downloads](https://img.shields.io/hexpm/dt/passbook.svg?style=flat)](https://hex.pm/packages/passbook)\n\nElixir library to create Apple Wallet (.pkpass) files (Apple Wallet has previously been known as Passbook in iOS 6 to iOS 8).\n\nSee the [Wallet Topic Page](https://developer.apple.com/wallet/) and the\n[Wallet Developer Guide](https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/index.html#//apple_ref/doc/uid/TP40012195) for more information about Apple Wallet.\n\n## Installation\n\nThis package can be installed by adding `passbook` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:passbook, \"~\u003e 0.1.8\"}\n  ]\nend\n```\n\n## Getting Started\n\n1. Get a Pass Type Id\n\n- Visit the iOS Provisioning Portal -\u003e Pass Type IDs -\u003e New Pass Type ID\n- Select pass type id -\u003e Configure (Follow steps and download generated pass.cer file)\n- Use Keychain tool to export a Certificates.p12 file (need Apple Root Certificate installed)\n\n2. Make sure you have open ssl installed, and generate the necessary certificate\n\n```shell\n    $ openssl pkcs12 -in \"Certificates.p12\" -clcerts -nokeys -out certificate.pem\n```\n\n3. Generate the key.pem\n\n```shell\n    $ openssl pkcs12 -in \"Certificates.p12\" -nocerts -out key.pem\n```\n\nYou will be asked for an export password (or export phrase), which you need to use when generating the `.pkpass` files.\n\n## Usage\n\n```elixir\n\n      iex\u003e Passbook.generate(%Passbook.Pass{\n        background_color: \"rgb(23, 187, 82)\",\n        foreground_color: \"rgb(100, 10, 110)\",\n        barcode: %Passbook.LowerLevel.Barcode{\n          format: :qr,\n          alt_text: \"1234\",\n          message: \"qr-code-content\"\n        },\n        description: \"This is a pass description\",\n        organization_name: \"My Organization\",\n        pass_type_identifier: \"123\",\n        serial_number: \"serial-number-123\",\n        team_identifier: \"team-identifier\",\n        generic: %Passbook.PassStructure{\n          transit_type: :train,\n          primary_fields: [\n            %Passbook.LowerLevel.Field{\n              key: \"my-key\",\n              value: \"my-value\"\n            }\n          ]\n        }}, [\"icon.png\": \"path/to/file.png\", \"icon@2x.png\": \"path/to/file.png\"], \"path/to/wwdr.pem\", \"path/to/certificate.pem\", \"path/to/key.pem\", \"password\", target_path: System.tmp_dir!(), pass_name: \"mypass\")\n      {:ok, \"path/to/generated/mypass.pkpass\"}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBounceapp%2Fex_passbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBounceapp%2Fex_passbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBounceapp%2Fex_passbook/lists"}