{"id":25763313,"url":"https://github.com/talyx/payment-api","last_synced_at":"2026-05-15T00:03:42.134Z","repository":{"id":279419309,"uuid":"938710172","full_name":"talyx/payment-api","owner":"talyx","description":"This project is an asynchronous payment processing API built with FastAPI.","archived":false,"fork":false,"pushed_at":"2025-02-25T12:46:22.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T13:43:06.899Z","etag":null,"topics":["async","fastapi","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","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/talyx.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":"2025-02-25T11:34:12.000Z","updated_at":"2025-02-25T12:46:25.000Z","dependencies_parsed_at":"2025-02-25T13:53:10.698Z","dependency_job_id":null,"html_url":"https://github.com/talyx/payment-api","commit_stats":null,"previous_names":["talyx/payment-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talyx%2Fpayment-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talyx%2Fpayment-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talyx%2Fpayment-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talyx%2Fpayment-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talyx","download_url":"https://codeload.github.com/talyx/payment-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240926400,"owners_count":19879737,"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":["async","fastapi","sqlalchemy"],"created_at":"2025-02-26T20:16:17.895Z","updated_at":"2025-11-21T02:05:13.424Z","avatar_url":"https://github.com/talyx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payment Processing API\n\nThis project is an asynchronous payment processing API built with FastAPI. It handles payment transactions in the background, integrates with external services (for loyalty and notifications), and uses separate databases for user balances and payment records.\n\n## Features\n\n- **Asynchronous Processing:** Uses FastAPI with background tasks for non-blocking operations.\n- **Database Separation:** Maintains user (wallet) data and payment records in separate databases.\n- **Reliable Transactions:** Implements custom retry logic and explicit transaction management.\n- **External Service Integration:** Communicates with external APIs for loyalty rewards and notifications.\n\n## Database Initialization\nBefore starting the application, initialize the databases if they do not exist. The database initialization script is located at app/utils/db/init.py.\n\nTo run the initialization script, execute:\n```sh\npython -m app.utils.db.init\n```\n\n## Running the Application\nTo run the application using uvicorn:\n```sh\nuvicorn app.main:app --host $HOST --port $PORT --reload\n```\nAlternatively, you can run it via:\n```sh\npython -m app.main\n```\n\n## Running External Services\n### Loyalty Service\n\n```sh\npython -m app.services.loyalty\n```\nor using uvicorn:\n\n```sh\nuvicorn app.services.loyalty:app --host 0.0.0.0 --port 8001 --reload\n```\n### Notification Service\n\n```sh\npython -m app.services.notification\n```\nor using uvicorn:\n\n```sh\nuvicorn app.services.notification:app --host 0.0.0.0 --port 8002 --reload\n```\n\nBelow is an example command for running a PostgreSQL database in Docker:\n\n```sh\ndocker run --name test-pg-15 -p 5432:5432 -e POSTGRES_USER=testuser -e POSTGRES_PASSWORD=testpass -e POSTGRES_DB=test -d postgres:15\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalyx%2Fpayment-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalyx%2Fpayment-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalyx%2Fpayment-api/lists"}