{"id":16700610,"url":"https://github.com/bolajiayodeji/pay-with-tweet","last_synced_at":"2026-02-27T10:32:47.917Z","repository":{"id":46168933,"uuid":"509387352","full_name":"BolajiAyodeji/pay-with-tweet","owner":"BolajiAyodeji","description":"Commerce Layer Pay With Tweet external payment gateway.","archived":false,"fork":false,"pushed_at":"2026-02-25T07:40:25.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-25T12:42:20.615Z","etag":null,"topics":["commercelayer","twitter-api","twitter-sdk"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BolajiAyodeji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-07-01T08:59:33.000Z","updated_at":"2026-02-25T07:40:27.000Z","dependencies_parsed_at":"2022-09-22T02:01:03.476Z","dependency_job_id":"efe8f556-bbad-43fc-a2fd-bca25b01b0ea","html_url":"https://github.com/BolajiAyodeji/pay-with-tweet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BolajiAyodeji/pay-with-tweet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fpay-with-tweet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fpay-with-tweet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fpay-with-tweet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fpay-with-tweet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BolajiAyodeji","download_url":"https://codeload.github.com/BolajiAyodeji/pay-with-tweet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BolajiAyodeji%2Fpay-with-tweet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29891476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T09:48:51.284Z","status":"ssl_error","status_checked_at":"2026-02-27T09:48:43.992Z","response_time":57,"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":["commercelayer","twitter-api","twitter-sdk"],"created_at":"2024-10-12T18:11:25.106Z","updated_at":"2026-02-27T10:32:47.896Z","avatar_url":"https://github.com/BolajiAyodeji.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pay-with-tweet\n\nA demo Pay With Tweet external payment gateway. To get started and learn more about this demo, kindly read the comprehensive tutorial on [Commerce Layer's blog](https://commercelayer.io/blog/building-an-external-payment-gateway-with-twitter-api).\n\n---\n\nUpdate the `.env.template` file or add your credentials in a `.env` file:\n\n```bash\nCL_SHARED_SECRET=\"\"\nCL_TWITTER_ID=\"\"\nTW_BEARER_TOKEN=\"\"\n```\n\nStart the local server in development mode:\n\n```bash\nnpm run dev\n```\n\nStart a ngrok HTTP tunnel listening for HTTP/HTTPS traffic on port 9000:\n\n```bash\nngrok http 9000\n```\n\nCreate a new payment gateway using the [CLI](https://github.com/commercelayer/commercelayer-cli):\n\n```bash\ncl res:create external_gateways -a \\\n    name=\"Pay With Tweet\"\n```\n\nCreate a payment method:\n\n```bash\ncl res:create payment_methods -a \\\n    payment_source_type=\"ExternalPayment\" \\\n    currency_code=\"USD\" \\\n    price_amount_cents=0 -r \\\n    market=\"FlqxGhKrFg\" \\\n    payment_gateway=\"BkXMMsBDGa\"\n```\n\nCreate an external payment:\n\n```bash\ncl res:create external_payments -a \\\n    payment_source_token=\"testTokeN1234\"\n```\n\nCreate and place an order:\n\n```bash\ncl resources:update orders/GHrQkxDVPS -a _place=true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolajiayodeji%2Fpay-with-tweet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbolajiayodeji%2Fpay-with-tweet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbolajiayodeji%2Fpay-with-tweet/lists"}