{"id":18919441,"url":"https://github.com/allenan/coinbase_commerce","last_synced_at":"2025-07-31T23:32:07.185Z","repository":{"id":62429004,"uuid":"144210392","full_name":"allenan/coinbase_commerce","owner":"allenan","description":"Simple Elixir wrapper for the Coinbase Commerce API","archived":false,"fork":false,"pushed_at":"2018-08-16T19:18:17.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T03:18:46.233Z","etag":null,"topics":["coinbase","coinbase-commerce","elixir"],"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/allenan.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":"2018-08-09T22:43:21.000Z","updated_at":"2023-05-14T14:41:53.000Z","dependencies_parsed_at":"2022-11-01T20:01:12.073Z","dependency_job_id":null,"html_url":"https://github.com/allenan/coinbase_commerce","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/allenan/coinbase_commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenan%2Fcoinbase_commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenan%2Fcoinbase_commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenan%2Fcoinbase_commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenan%2Fcoinbase_commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allenan","download_url":"https://codeload.github.com/allenan/coinbase_commerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allenan%2Fcoinbase_commerce/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265699123,"owners_count":23813335,"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":["coinbase","coinbase-commerce","elixir"],"created_at":"2024-11-08T10:37:52.820Z","updated_at":"2025-07-31T23:32:07.136Z","avatar_url":"https://github.com/allenan.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coinbase Commerce\n\nAn Elixir library for working with the [Coinbase Commerce](https://commerce.coinbase.com/) API ([Documentation](https://hexdocs.pm/coinbase_commerce))\n\n[![Hex.pm](https://img.shields.io/hexpm/v/coinbase_commerce.svg?maxAge=2592000)](https://hex.pm/packages/coinbase_commerce)\n\n## Installation\n\nInstall by adding `coinbase_commerce` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:coinbase_commerce, \"~\u003e 0.2.0\"}\n  ]\nend\n```\n\nConfigure your API key and webhook shared secret:\n\n```elixir\nconfig :coinbase_commerce,\n  api_key: \"YOUR-API-KEY\",\n  webhook_shared_secret: \"YOUR-WEBHOOK-SHARED-SECRET\" # optional unless using webhooks\n```\n\n## Usage\nFull API documentation is available at [https://hexdocs.pm/coinbase_commerce](https://hexdocs.pm/coinbase_commerce). For details on the Coinbase Commerce API, see the [official documentation](https://commerce.coinbase.com/docs/api).\n\n### Charges\n\n```elixir\n# Create a charge\n{:ok, %CoinbaseCommerce.Charge{}} = CoinbaseCommerce.Charge.create(%{\n  name: \"The Sovereign Individual\",\n  description: \"Mastering the Transition to the Information Age\",\n  local_price: {\n    amount: \"100.00\",\n    currency: \"USD\"\n  },\n  pricing_type: \"fixed_price\",\n  metadata: {\n    customer_id: \"id_1005\",\n    customer_name: \"Satoshi Nakamoto\"\n  }\n})\n\n# View a charge\n{:ok, %CoinbaseCommerce.Charge{}} = CoinbaseCommerce.Charge.show(\"some-charge-id\")\n\n# List all charges\n{:ok, charges} = CoinbaseCommerce.Charge.list()\n```\n\n### Checkouts\n\n```elixir\n# Create a checkout\n{:ok, %CoinbaseCommerce.Checkout{}} = CoinbaseCommerce.Checkout.create(%{\n  name: \"The Sovereign Individual\",\n  description: \"Mastering the Transition to the Information Age\",\n  local_price: {\n    amount: \"100.00\",\n    currency: \"USD\"\n  },\n  pricing_type: \"fixed_price\",\n  requested_info: [\"email\"]\n})\n\n# View a checkout\n{:ok, %CoinbaseCommerce.Checkout{}} = CoinbaseCommerce.Checkout.show(\"some-checkout-id\")\n\n# List all checkouts\n{:ok, checkouts} = CoinbaseCommerce.Checkout.list()\n\n# Update a checkout\n{:ok, %CoinbaseCommerce.Checkout{}} = CoinbaseCommerce.Checkout.update(%{\n  local_price: {\n    amount: \"200.00\",\n    currency: \"USD\"\n  }\n})\n\n# Delete a checkout\n:ok = CoinbaseCommerce.Checkout.delete(\"some-checkout-id\")\n```\n\n### Events\n\n```elixir\n# List events\n{:ok, events} = CoinbaseCommerce.Event.list()\n\n# Show an event\n{:ok, %CoinbaseCommerce.Event{}} = CoinbaseCommerce.Event.show(\"some-event-id\")\n```\n\n### Webhooks\n\n```elixir\n# Verify an incoming webhook's signature\ntrue = CoinbaseCommerce.Webook.verify_signature(signature, request_body)\n```\n\n## Contributing\nFeedback, feature requests, and fixes are welcomed and encouraged. Please make appropriate use of [Issues](https://github.com/allenan/coinbase_commerce/issues) and [Pull Requests](https://github.com/allenan/coinbase_commerce/pulls).\n\n## License\nPlease see [LICENSE](https://github.com/allenan/coinbase_commerce/blob/master/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenan%2Fcoinbase_commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallenan%2Fcoinbase_commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallenan%2Fcoinbase_commerce/lists"}