{"id":38912458,"url":"https://github.com/24greyhat/xdotpay.com","last_synced_at":"2026-01-17T15:21:41.259Z","repository":{"id":326940134,"uuid":"1107209334","full_name":"24greyhat/xdotpay.com","owner":"24greyhat","description":"Opensource non-custodial usdc payment gateway infrastructure provider.","archived":false,"fork":false,"pushed_at":"2025-12-02T18:49:22.000Z","size":1592,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-03T04:31:46.580Z","etag":null,"topics":["api","community-project","django","django-ninja-api","free-api","nextjs","payment-gateway","saas","usdc","usdc-pay-button"],"latest_commit_sha":null,"homepage":"https://xdotpay.com","language":"JavaScript","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/24greyhat.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-30T19:30:37.000Z","updated_at":"2025-12-02T19:04:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/24greyhat/xdotpay.com","commit_stats":null,"previous_names":["24greyhat/xdotpay.com"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/24greyhat/xdotpay.com","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24greyhat%2Fxdotpay.com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24greyhat%2Fxdotpay.com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24greyhat%2Fxdotpay.com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24greyhat%2Fxdotpay.com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/24greyhat","download_url":"https://codeload.github.com/24greyhat/xdotpay.com/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/24greyhat%2Fxdotpay.com/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"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":["api","community-project","django","django-ninja-api","free-api","nextjs","payment-gateway","saas","usdc","usdc-pay-button"],"created_at":"2026-01-17T15:21:40.515Z","updated_at":"2026-01-17T15:21:41.251Z","avatar_url":"https://github.com/24greyhat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XDotPay - Non-Custodial USDC Payment API\n\n\u003e **Transparent. Open Source. Non-Custodial.**\n\nXDotPay is a payment gateway API for accepting USDC cryptocurrency payments. We are **NOT a Virtual Asset Service Provider (VASP)** - we don't intercept, hold, or control funds. All payments go directly from payer to merchant's wallet.\n\n---\n\n## 🚀 Quick Start\n\n### Production API\n- **API Base URL**: `https://api.xdotpay.com`\n- **API Documentation**: [https://api.xdotpay.com/api/docs](https://api.xdotpay.com/api/docs)\n- **Full Documentation**: [https://xdotpay.com](https://xdotpay.com)\n\n---\n\n## 📚 What is XDotPay?\n\nXDotPay is a SaaS platform that provides:\n\n✅ **Non-custodial USDC payments** - Funds go directly to your wallet  \n✅ **Complete API** - Full REST API for invoice creation and payment verification  \n✅ **Dashboard Frontend** - Next.js-based merchant dashboard  \n✅ **Blockchain verification** - On-chain payment confirmation via Ethereum RPC  \n✅ **No intermediaries** - Direct peer-to-peer transactions  \n\n---\n\n## 🔑 How It Works\n\n### 1. **Sign Up** → Create a merchant account\n```bash\nPOST https://api.xdotpay.com/api/auth/signup\n```\n\n### 2. **Create Invoice** → Generate a payment request\n```bash\nPOST https://api.xdotpay.com/api/v1/new/invoice\n```\n\n### 3. **Customer Pays** → User sends USDC via MetaMask directly to your wallet\n\n### 4. **Verify Payment** → Confirm the transaction on-chain\n```bash\nGET https://api.xdotpay.com/api/v1/verify?invoice_id={id}\u0026tx_hash={hash}\n```\n\n---\n\n## 🛠️ Key Features\n\n### Authentication\n- **Signup** - Register new merchants\n- **Login** - Authenticate and receive bearer token\n- **Account Management** - Update merchant wallet address, email, etc.\n\n### Payment Gateway\n- **Create Invoices** - Generate payment requests with custom metadata\n- **View Invoices** - Retrieve single or multiple invoices\n- **Pay Invoice** - Record payment details (from_address, tx_hash)\n- **Verify Payment** - Blockchain verification of USDC transactions\n- **Dashboard Stats** - Revenue, completed, and pending payment statistics\n\n---\n\n## 📖 API Documentation\n\n### Full Interactive Docs\nVisit **[https://xdotpay.com](https://xdotpay.com)** for:\n- Complete endpoint documentation\n- Interactive code examples (cURL, JavaScript, Python)\n- Request/Response schemas\n- Setup guides for Dashboard and API\n\n### OpenAPI Specification\nAccess the OpenAPI spec at **[https://api.xdotpay.com/api/docs](https://api.xdotpay.com/api/docs)**\n\n---\n\n## 🏗️ Running Locally\n\n### Prerequisites\n- **Backend**: Django, Python 3.x, Ethereum RPC node access\n- **Frontend**: Next.js, Node.js, npm/yarn\n\n### Backend Setup (Django API)\n\n1. **Clone the repository**\n```bash\ngit clone https://github.com/24greyhat/xdotpay.com.git\ncd xdotpay.com/xdotpayApi\n```\n\n2. **Create `.env` file** with required variables:\n```env\nETH_RPC=https://your-ethereum-rpc-node.com\nDATABASE_URL=your-database-url\nSECRET_KEY=your-secret-key\n```\n\n3. **Install dependencies and run**\n```bash\npip install -r requirements.txt\npython manage.py migrate\npython manage.py runserver\n```\n\n### Frontend Setup (Next.js Dashboard)\n\n1. **Clone the repository**\n```bash \ngit clone https://github.com/24greyhat/xdotpay.com.git\ncd xdotpay.com/dashboard\n```\n\n2. **Create `.env` file**:\n```env\nNEXT_PUBLIC_API_URL=https://api.xdotpay.com/api/\n```\n\n3. **Install dependencies and run**\n```bash\nnpm install\nnpx next dev --turbo\n```\n\nVisit the setup guides at **[https://xdotpay.com](https://xdotpay.com)** for detailed instructions.\n\n---\n\n## 🔐 Authentication\n\nAll authenticated endpoints require a **Bearer token** in the Authorization header:\n\n```bash\nAuthorization: Bearer \u003cyour-token\u003e\n```\n\nGet your token by calling the `/api/auth/login` endpoint.\n\n---\n\n## 💰 Payment Flow Example\n\n### Step 1: Create an Invoice\n```bash\ncurl -X POST https://api.xdotpay.com/api/v1/new/invoice \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"amount\": 100.50,\n    \"metadata\": {\n      \"order_id\": \"ORDER-123\",\n      \"customer_email\": \"customer@example.com\"\n    }\n  }'\n```\n\n### Step 2: Customer Pays via MetaMask\nThe customer sends USDC directly to your merchant wallet address using MetaMask.\n\n### Step 3: Verify the Payment\n```bash\ncurl -X GET \"https://api.xdotpay.com/api/v1/verify?invoice_id=1\u0026tx_hash=0xabc123...\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\"\n```\n\nThe API verifies the transaction on the Ethereum blockchain and confirms the payment.\n\n**Note:** To see this in action, spin up the **dashboard** locally and see how i implemented the frontend side of the payment handling.\n\n---\n\n## ⚖️ Legal \u0026 Compliance\n\n### VASP Clarification\n\n**XDotPay is NOT a Virtual Asset Service Provider (VASP)**\n\nWe do not:\n- ❌ Intercept funds\n- ❌ Hold custody of funds\n- ❌ Control or manage user wallets\n- ❌ Act as an intermediary in transactions\n\nWe only:\n- ✅ Provide API infrastructure for invoice management\n- ✅ Verify blockchain transactions\n- ✅ Facilitate direct peer-to-peer payments\n\n**All USDC payments go directly from the payer's wallet to the merchant's wallet.**\n\nFor full legal details, visit:\n- [Terms of Service](https://xdotpay.com/terms-of-service)\n- [Privacy Policy](https://xdotpay.com/privacy-policy)\n\n---\n\n## 🌐 Resources\n\n- **Production API**: [https://api.xdotpay.com](https://api.xdotpay.com)\n- **Documentation**: [https://xdotpay.com](https://xdotpay.com)\n- **OpenAPI Spec**: [https://api.xdotpay.com/api/docs](https://api.xdotpay.com/api/docs)\n- **Support**: Contact via documentation site\n\n---\n\n## 🧑‍💻 Technology Stack\n\n- **Backend**: Django + NinjaAPI\n- **Frontend**: Next.js + React\n- **Blockchain**: Ethereum (USDC on Ethereum)\n- **Authentication**: Bearer Token (HTTP)\n- **Database**: PostgreSQL (recommended)\n\n---\n\n## 📝 License\n\nThis project is open source and transparent. See full terms at [https://xdotpay.com/terms-of-service](https://xdotpay.com/terms-of-service).\n\n---\n\n## 🤝 Support\n\nFor questions, issues, or support:\n1. Visit the documentation at **[https://xdotpay.com](https://xdotpay.com)**\n2. Check the API reference at **[https://api.xdotpay.com/api/docs](https://api.xdotpay.com/api/docs)**\n3. Review the setup guides for detailed instructions\n\n---\n\n**Built with ❤️ for transparent, non-custodial cryptocurrency payments**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F24greyhat%2Fxdotpay.com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F24greyhat%2Fxdotpay.com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F24greyhat%2Fxdotpay.com/lists"}