{"id":26152933,"url":"https://github.com/rakibhossain72/ctrip","last_synced_at":"2026-04-19T18:32:28.721Z","repository":{"id":222452021,"uuid":"751832443","full_name":"rakibhossain72/ctrip","owner":"rakibhossain72","description":"cTrip Crypto Payment Gateway: multi-chain cryptocurrency payment gateway built with FastAPI","archived":false,"fork":false,"pushed_at":"2026-02-23T21:24:25.000Z","size":2699,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T04:18:18.282Z","etag":null,"topics":["cryptocurrency-payment-gateway","fastapi","payment-gateway","web3py"],"latest_commit_sha":null,"homepage":"https://ctrip-docs.readthedocs.io/","language":"Python","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/rakibhossain72.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-02-02T12:30:32.000Z","updated_at":"2026-02-23T21:24:28.000Z","dependencies_parsed_at":"2024-02-14T10:28:14.624Z","dependency_job_id":"e4309dba-c9c0-4d99-91f5-f6aa8e207ee0","html_url":"https://github.com/rakibhossain72/ctrip","commit_stats":null,"previous_names":["rakibmia7254/ctrip","rakibhossain72/ctrip"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rakibhossain72/ctrip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhossain72%2Fctrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhossain72%2Fctrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhossain72%2Fctrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhossain72%2Fctrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rakibhossain72","download_url":"https://codeload.github.com/rakibhossain72/ctrip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rakibhossain72%2Fctrip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32017911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["cryptocurrency-payment-gateway","fastapi","payment-gateway","web3py"],"created_at":"2025-03-11T07:25:30.100Z","updated_at":"2026-04-19T18:32:28.713Z","avatar_url":"https://github.com/rakibhossain72.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cTrip Payment Gateway\n\ncTrip is a high-performance, multi-chain cryptocurrency payment gateway built with FastAPI. It supports automated payment detection, confirmation monitoring, and funds sweeping across multiple EVM-compatible blockchains.\n\n## Features\n\n- **Multi-Chain Support**: Native support for BSC, Ethereum, and local testing environments (Anvil).\n- **Automated Detection**: Real-time scanning of blockchain blocks to detect incoming payments.\n- **Async Architecture**: Fully asynchronous API and database operations using SQLAlchemy and FastAPI.\n- **Background Workers**: Async task processing using ARQ and Redis with built-in cron scheduling.\n- **Secure Address Management**: HD Wallet integration for generating unique payment addresses.\n- **Webhooks**: Automated notifications for payment status changes.\n- **Migration System**: Robust database migrations using Alembic with a custom helper script.\n\n## Tech Stack\n\n- **Framework**: [FastAPI](https://fastapi.tiangolo.com/)\n- **Database**: [PostgreSQL](https://www.postgresql.org/) / [SQLite](https://www.sqlite.org/) (Dev)\n- **ORM**: [SQLAlchemy 2.0](https://www.sqlalchemy.org/)\n- **Task Queue**: [ARQ](https://arq-docs.helpmanual.io/) with Redis\n- **Blockchain**: [Web3.py](https://web3py.readthedocs.io/)\n- **Migrations**: [Alembic](https://alembic.sqlalchemy.org/)\n\n## Prerequisites\n\n- Python 3.10+\n- Docker \u0026 Docker Compose\n- Redis (for background workers)\n- PostgreSQL (for production)\n\n## Configuration\n\n1. Create a `.env` file from the environment template.\n2. Configure your chains in `chains.yaml`.\n3. Set your HD Wallet mnemonic in the environment variables.\n\n## Quick Start\n\n### Using Docker (Recommended)\n\n```bash\ndocker-compose up --build\n```\n\nThis will start the API, PostgreSQL, Redis, and background workers.\n\n### Local Development\n\n1. **Install Dependencies**:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate\n   pip install -r requirements.txt\n   ```\n\n2. **Run Migrations**:\n   ```bash\n   python migrate.py upgrade\n   ```\n\n3. **Start the API**:\n   ```bash\n   uvicorn server:app --reload\n   ```\n\n4. **Start Workers**:\n   ```bash\n   python run_worker.py\n   ```\n\n## Project Structure\n\n- `app/api/`: API endpoints and routes.\n- `app/blockchain/`: Multi-chain implementation and Web3 logic.\n- `app/db/`: Database models, schemas, and session management.\n- `app/workers/`: Dramatiq actors for background tasks.\n- `app/services/`: Core business logic for scanning and sweeping.\n- `migrate.py`: Helper script for managing database migrations.\n\n## Documentation\n\nFor more detailed information, see [Documentation](https://ctrip-docs.readthedocs.io/).\n\n## License\n\nThis project is licensed under the terms included in the [LICENSE.txt](LICENSE.txt) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibhossain72%2Fctrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frakibhossain72%2Fctrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frakibhossain72%2Fctrip/lists"}