{"id":33303761,"url":"https://github.com/sumup/acp","last_synced_at":"2026-04-16T00:31:17.919Z","repository":{"id":324298418,"uuid":"1096749590","full_name":"sumup/acp","owner":"sumup","description":"Agentic Commerce Protocol Go SDK.","archived":false,"fork":false,"pushed_at":"2026-04-05T12:22:06.000Z","size":182,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T14:21:59.765Z","etag":null,"topics":["agentic-commerce-protocol","openai","payments"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/sumup/acp","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sumup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-14T22:24:11.000Z","updated_at":"2026-04-05T12:21:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sumup/acp","commit_stats":null,"previous_names":["sumup/acp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumup/acp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Facp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Facp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Facp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Facp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumup","download_url":"https://codeload.github.com/sumup/acp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumup%2Facp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["agentic-commerce-protocol","openai","payments"],"created_at":"2025-11-18T16:00:19.156Z","updated_at":"2026-04-16T00:31:17.371Z","avatar_url":"https://github.com/sumup.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Go SDK for the Agentic Commerce Protocol\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/sumup/acp.svg)](https://pkg.go.dev/github.com/sumup/acp)\n[![CI Status](https://github.com/sumup/acp/workflows/CI/badge.svg)](https://github.com/sumup/acp/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/sumup/acp)](./LICENSE)\n\n\u003c/div\u003e\n\nGo SDK for the [Agentic Commerce Protocol](https://developers.openai.com/commerce) (ACP). `github.com/sumup/acp` supports [Agentic Checkout](https://developers.openai.com/commerce/specs/checkout), [Delegated Payment](https://developers.openai.com/commerce/specs/payment), and [Product Feeds](https://developers.openai.com/commerce/specs/feed).\n\n## Examples\n\n- [`examples/checkout`](examples/checkout) sample checkout provider implementation.\n- [`examples/delegated_payment`](examples/delegated_payment) sample PSP (payments service provider) implementation for Delegated Payment.\n- [`examples/feed`](examples/feed) sample Product Feed that for exporting feeds in JSONL and CSV formats.\n\n### Checkout Sample\n\n```bash\ngo run ./examples/checkout\n```\n\nOnce the server is up, try exercising the flow with `curl`:\n\n```bash\n# Create a checkout session with two SKUs\ncurl -sS -X POST http://localhost:8080/checkout_sessions \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n        \"line_items\": [\n          {\"id\": \"latte\"},\n          {\"id\": \"mug\"}\n        ],\n        \"currency\": \"EUR\",\n        \"buyer\": {\n          \"first_name\": \"Ava\",\n          \"last_name\": \"Agent\",\n          \"email\": \"ava.agent@example.com\"\n        }\n      }'\n\n# Complete the session once you have the id from the response above\ncurl -sS -X POST http://localhost:8080/checkout_sessions/\u003csession_id\u003e/complete \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n        \"payment_data\": {\n          \"provider\": \"sumup\",\n          \"token\": \"pm_sample_token\"\n        }\n      }'\n```\n\nFeel free to copy this sample into your own project and swap the in-memory store for your real product catalog, fulfillment rules, and payment hooks.\n\nTo see webhook delivery end-to-end, export the environment variables below before starting the sample server. The handler will POST an `order_created` event every time a checkout session completes.\n\n```bash\nexport ACP_WEBHOOK_ENDPOINT=\"https://webhook.site/your-endpoint\"\nexport ACP_WEBHOOK_HEADER=\"Merchant_Name-Signature\"\nexport ACP_WEBHOOK_SECRET=\"super-secret\"\ngo run ./examples/checkout\n```\n\n### Delegated Payment Sample\n\n```bash\ngo run ./examples/delegated_payment\n```\n\nThen call it with:\n\n```bash\ncurl -sS -X POST http://localhost:8080/agentic_commerce/delegate_payment \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n        \"payment_method\": {\n          \"type\": \"card\",\n          \"card_number_type\": \"fpan\",\n          \"number\": \"4242424242424242\",\n          \"exp_month\": \"11\",\n          \"exp_year\": \"2026\",\n          \"display_last4\": \"4242\",\n          \"display_card_funding_type\": \"credit\",\n          \"metadata\": {\"issuer\": \"demo-bank\"}\n        },\n        \"allowance\": {\n          \"reason\": \"one_time\",\n          \"max_amount\": 2000,\n          \"currency\": \"EUR\",\n          \"checkout_session_id\": \"cs_000001\",\n          \"merchant_id\": \"demo-merchant\",\n          \"expires_at\": \"2025-12-31T23:59:59Z\"\n        },\n        \"risk_signals\": [\n          {\"type\": \"card_testing\", \"action\": \"manual_review\", \"score\": 10}\n        ],\n        \"metadata\": {\"source\": \"sample\"}\n      }'\n```\n\n### Product Feed Sample\n\n```bash\ngo run ./examples/feed\n```\n\nThis writes compressed feed exports to `examples/feed/output/product_feed.jsonl.gz` and `examples/feed/output/product_feed.csv.gz`.\n\n## License\n\n[Apache 2.0](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Facp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumup%2Facp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumup%2Facp/lists"}