{"id":27016376,"url":"https://github.com/microdevops-com/payment-checker","last_synced_at":"2025-10-13T22:08:09.877Z","repository":{"id":286083646,"uuid":"960262072","full_name":"microdevops-com/payment-checker","owner":"microdevops-com","description":"Script to check payment status for providers like Hetzner and report status to telegram","archived":false,"fork":false,"pushed_at":"2025-04-04T08:33:35.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-04T09:23:20.795Z","etag":null,"topics":["hetzner","payment","redswitches"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microdevops-com.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":"2025-04-04T06:09:18.000Z","updated_at":"2025-04-04T08:33:39.000Z","dependencies_parsed_at":"2025-04-04T09:23:22.521Z","dependency_job_id":"cfb1e243-2f6c-4832-9bcb-7ce0878180cb","html_url":"https://github.com/microdevops-com/payment-checker","commit_stats":null,"previous_names":["microdevops-com/payment-checker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdevops-com%2Fpayment-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdevops-com%2Fpayment-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdevops-com%2Fpayment-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdevops-com%2Fpayment-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microdevops-com","download_url":"https://codeload.github.com/microdevops-com/payment-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248081958,"owners_count":21044790,"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":["hetzner","payment","redswitches"],"created_at":"2025-04-04T15:19:52.335Z","updated_at":"2025-10-13T22:08:09.873Z","avatar_url":"https://github.com/microdevops-com.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# payment-checker\n\n## Description\n\nAs Hetzner and most of other cool providers do not provide an API to check the payments status, this script can help you to check it regularly, if you have a lot of accounts to check.\nBoth providers and consumers (us) are interesed to pay in time, but for some reason they just don't.\nI even created a ticket to Hetzner to ask them to provide an API to check the payments status, they received it, but no updates yet.\n\nSo one can set up this script, check alerts in telegram chat, pay in time, and avoid suspensions.\n\nThe script uses playwright framework (headless browser).\n\nProviders supported:\n- [Hetzner](https://hetzner.com/)\n- [RedSwitches](https://redswitches.com/)\n- [Virtual Systems](https://vsys.host/)\n- [Scaleway](https://www.scaleway.com/) - they do provide API for billing ❤️\n\nRequirements:\n- A working directory to put screenshots to (helps to debug).\n- Google Service Account to access Google Sheets API and a Sheet to put checked payments.\n- Telegram Bot API token to send messages to Telegram and a chat ID to send messages to.\n- Docker.\n\n## Setup\n\n1. Create `secret.json` with Google Service Account to access Google Sheets API to put checked payments in a Google Sheet.\n2. Create `config.yaml`, put working directory, google sheets, telegram setings there.\n3. Define a list of provider accounts to check in `config.yaml`.\n4. Build and run the docker container:\n   ```bash\n   docker build -t payment-checker .\n   docker run -it --rm \\\n       -v /home/user/payment-checker/secret.json:/app/secret.json \\\n       -v /home/user/payment-checker/config.yaml:/app/config.yaml \\\n       -v /home/user/payment-checker/screenshots:/app/screenshots payment-checker\n   ```\n6. Create a cron job like this to check the payments daily in the morning:\n   ```\n   15 9 * * * docker run --rm -v /home/user/payment-checker/secret.json:/app/secret.json -v /home/user/payment-checker/config.yaml:/app/config.yaml -v /home/user/payment-checker/screenshots:/app/screenshots payment-checker \u003e /home/user/payment-checker/cron.log 2\u003e\u00261\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrodevops-com%2Fpayment-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrodevops-com%2Fpayment-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrodevops-com%2Fpayment-checker/lists"}