{"id":45764511,"url":"https://github.com/gwop-io/gwop-node","last_synced_at":"2026-03-04T06:01:04.296Z","repository":{"id":340664615,"uuid":"1166666762","full_name":"gwop-io/gwop-node","owner":"gwop-io","description":"The Node SDK for Gwop Checkout","archived":false,"fork":false,"pushed_at":"2026-03-02T02:28:50.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-02T05:38:20.039Z","etag":null,"topics":["agentic-ai","agentic-commerce-protocol","agentic-workflow","gwop","payments"],"latest_commit_sha":null,"homepage":"https://gwop.io","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/gwop-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T13:27:12.000Z","updated_at":"2026-03-02T02:27:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gwop-io/gwop-node","commit_stats":null,"previous_names":["gwop-io/gwop-node"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gwop-io/gwop-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwop-io%2Fgwop-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwop-io%2Fgwop-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwop-io%2Fgwop-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwop-io%2Fgwop-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gwop-io","download_url":"https://codeload.github.com/gwop-io/gwop-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gwop-io%2Fgwop-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30032355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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-ai","agentic-commerce-protocol","agentic-workflow","gwop","payments"],"created_at":"2026-02-26T00:13:06.663Z","updated_at":"2026-03-03T05:01:12.712Z","avatar_url":"https://github.com/gwop-io.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gwop-checkout\n\nNode SDK for [Gwop Checkout](https://gwop.io) — accept USDC payments from AI agents.\n\nDocs: [docs.gwop.io](https://docs.gwop.io)\n\n## Install\n\n```bash\nnpm install gwop-checkout\n```\n```bash\nyarn add gwop-checkout\n```\n```bash\npnpm add gwop-checkout\n```\n\nTypeScript types included. Zero runtime dependencies. Node 18+.\n\n## Quick example\n\n```ts\nimport { GwopCheckout } from 'gwop-checkout';\n\nconst gwop = new GwopCheckout({\n  merchantApiKey: process.env.GWOP_CHECKOUT_API_KEY, // sk_m_...\n});\n\n// Create an invoice\nconst invoice = await gwop.invoices.create(\n  {\n    amount_usdc: 5_000_000, // $5.00 USDC\n    description: 'Pro plan — 1 month',\n  },\n  { idempotencyKey: 'order_abc_v1' },\n);\n\nconsole.log(invoice.id);     // 'inv_...'\nconsole.log(invoice.status); // 'OPEN'\n```\n\n## Webhooks\n\nVerify signatures and dispatch events when invoices are paid:\n\n```ts\nconst event = gwop.webhooks.constructEvent(\n  rawBody,                              // raw request body\n  req.header('x-gwop-signature'),       // signature header\n  process.env.GWOP_WEBHOOK_SECRET!,     // whsec_...\n);\n\nawait gwop.webhooks.dispatch(event, {\n  invoicePaid: async (evt) =\u003e {\n    console.log(`Paid: ${evt.data.invoice_id} on ${evt.data.payment_chain}`);\n    // Fulfill the order.\n  },\n});\n```\n\n## API\n\n| Method | Description |\n|--------|-------------|\n| `gwop.invoices.create(body, options?)` | Create a USDC invoice |\n| `gwop.invoices.retrieve(id)` | Get invoice status (public, no auth) |\n| `gwop.invoices.list(params?)` | List your invoices |\n| `gwop.invoices.cancel(id)` | Cancel an open invoice |\n| `gwop.invoices.waitForStatus(id, status, options?)` | Poll until status reached |\n| `gwop.webhooks.constructEvent(payload, sig, secret)` | Verify webhook signature |\n| `gwop.webhooks.dispatch(event, handlers)` | Route event to typed handlers |\n\n## Links\n\n- [Documentation](https://docs.gwop.io)\n- [Merchant Dashboard](https://merchant.gwop.io)\n- [Example server](./examples/merchant-basic)\n- [npm](https://www.npmjs.com/package/gwop-checkout)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgwop-io%2Fgwop-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgwop-io%2Fgwop-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgwop-io%2Fgwop-node/lists"}