{"id":20154578,"url":"https://github.com/roundpartner/stripe-service","last_synced_at":"2025-07-24T17:11:18.463Z","repository":{"id":57517711,"uuid":"103396127","full_name":"roundpartner/stripe-service","owner":"roundpartner","description":"A Microservice for Stripe Payments in Go","archived":false,"fork":false,"pushed_at":"2023-03-03T16:00:21.000Z","size":191,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T00:43:01.000Z","etag":null,"topics":["go","microservice"],"latest_commit_sha":null,"homepage":"","language":"Go","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/roundpartner.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-13T12:20:46.000Z","updated_at":"2023-03-28T11:16:53.000Z","dependencies_parsed_at":"2024-06-20T14:23:02.068Z","dependency_job_id":null,"html_url":"https://github.com/roundpartner/stripe-service","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/roundpartner/stripe-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roundpartner%2Fstripe-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roundpartner%2Fstripe-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roundpartner%2Fstripe-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roundpartner%2Fstripe-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roundpartner","download_url":"https://codeload.github.com/roundpartner/stripe-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roundpartner%2Fstripe-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266876328,"owners_count":23999228,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","microservice"],"created_at":"2024-11-13T23:27:26.749Z","updated_at":"2025-07-24T17:11:18.340Z","avatar_url":"https://github.com/roundpartner.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/roundpartner/stripe-service)](https://goreportcard.com/report/github.com/roundpartner/stripe-service)\n# Stripe Micro Service\nA Micro Service for Stripe Payments in Go\n\n# Building\n```bash\ngo build\n```\n\n# Usage\n```bash\nexport STRIPE_KEY=\"your stripe key\"\nexport STRIPE_SUCCESS_URL=\"https://example/success\"\nexport STRIPE_CANCEL_URL=\"https://example/cancel\"\ngo run github.com/roundpartner/stripe-service\n```\n## Charge\nTo take a single payment the charge end point provides this\n```bash\ncurl -X POST\\\n    -d \"{\\\"token\\\": \\\"tok_gb\\\", \\\"amount\\\": 1000, \\\"desc\\\": \\\"example\\\"}\" \\\n    http://0.0.0.0:57493/charge\n```\n## Customer\n### List\n```bash\ncurl -X GET \\\n    -d \"{\\\"limit\\\":\\\"10\\\"}\" \\\n    http://0.0.0.0:57493/customer\n```\n### Get\nThe customer id will return the customer details\n```bash\ncurl http://0.0.0.0:57493/customer/cus_BUoP6KtXPL3ajU\n```\n### Add\n```bash\ncurl -X POST \\\n    -d \"{\\\"token\\\": \\\"tok_gb\\\", \\\"account\\\": \\\"1\\\", \\\"email\\\": \\\"example@mailinator.com\\\", \\\"desc\\\": \\\"Added by go test\\\"}\" \\\n    http://0.0.0.0:57493/customer\n```\n### New Default Card\n```bash\ncurl -X PUT \\\n    -d \"{\\\"token\\\": \\\"tok_mastercard_debit\\\"}\" \\\n    http://0.0.0.0:57493/customer/cus_BUoP6KtXPL3ajU/card\n```\n### Reload\n```bash\ncurl http://0.0.0.0:57493/reload\n```\n### Coupons\n```bash\ncurl -X PUT http://0.0.0.0:57493/customer/cus_DOQj7OGOt6mX1n/coupon/free\n```\n### Subscriptions\nGet customer subscriptions\n```bash\ncurl http://0.0.0.0:57493/customer/cus_DOQj7OGOt6mX1n/subscription\n```\n### Sessions\n```bash\ncurl -X POST http://0.0.0.0:57493/customer/cus_BUoP6KtXPL3ajU/session/plan_FPSDCc5aQKEEP3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froundpartner%2Fstripe-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froundpartner%2Fstripe-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froundpartner%2Fstripe-service/lists"}