Transparent. Open Source. Non-Custodial.
XDotPay 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.
- API Base URL:
https://api.xdotpay.com - API Documentation: https://api.xdotpay.com/api/docs
- Full Documentation: https://xdotpay.com
XDotPay is a SaaS platform that provides:
β
Non-custodial USDC payments - Funds go directly to your wallet
β
Complete API - Full REST API for invoice creation and payment verification
β
Dashboard Frontend - Next.js-based merchant dashboard
β
Blockchain verification - On-chain payment confirmation via Ethereum RPC
β
No intermediaries - Direct peer-to-peer transactions
POST https://api.xdotpay.com/api/auth/signupPOST https://api.xdotpay.com/api/v1/new/invoiceGET https://api.xdotpay.com/api/v1/verify?invoice_id={id}&tx_hash={hash}- Signup - Register new merchants
- Login - Authenticate and receive bearer token
- Account Management - Update merchant wallet address, email, etc.
- Create Invoices - Generate payment requests with custom metadata
- View Invoices - Retrieve single or multiple invoices
- Pay Invoice - Record payment details (from_address, tx_hash)
- Verify Payment - Blockchain verification of USDC transactions
- Dashboard Stats - Revenue, completed, and pending payment statistics
Visit https://xdotpay.com for:
- Complete endpoint documentation
- Interactive code examples (cURL, JavaScript, Python)
- Request/Response schemas
- Setup guides for Dashboard and API
Access the OpenAPI spec at https://api.xdotpay.com/api/docs
- Backend: Django, Python 3.x, Ethereum RPC node access
- Frontend: Next.js, Node.js, npm/yarn
- Clone the repository
git clone https://github.com/24greyhat/xdotpay.com.git
cd xdotpay.com/xdotpayApi- Create
.envfile with required variables:
ETH_RPC=https://your-ethereum-rpc-node.com
DATABASE_URL=your-database-url
SECRET_KEY=your-secret-key- Install dependencies and run
pip install -r requirements.txt
python manage.py migrate
python manage.py runserver- Clone the repository
git clone https://github.com/24greyhat/xdotpay.com.git
cd xdotpay.com/dashboard- Create
.envfile:
NEXT_PUBLIC_API_URL=https://api.xdotpay.com/api/- Install dependencies and run
npm install
npx next dev --turboVisit the setup guides at https://xdotpay.com for detailed instructions.
All authenticated endpoints require a Bearer token in the Authorization header:
Authorization: Bearer <your-token>Get your token by calling the /api/auth/login endpoint.
curl -X POST https://api.xdotpay.com/api/v1/new/invoice \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"amount": 100.50,
"metadata": {
"order_id": "ORDER-123",
"customer_email": "customer@example.com"
}
}'The customer sends USDC directly to your merchant wallet address using MetaMask.
curl -X GET "https://api.xdotpay.com/api/v1/verify?invoice_id=1&tx_hash=0xabc123..." \
-H "Authorization: Bearer YOUR_TOKEN"The API verifies the transaction on the Ethereum blockchain and confirms the payment.
Note: To see this in action, spin up the dashboard locally and see how i implemented the frontend side of the payment handling.
XDotPay is NOT a Virtual Asset Service Provider (VASP)
We do not:
- β Intercept funds
- β Hold custody of funds
- β Control or manage user wallets
- β Act as an intermediary in transactions
We only:
- β Provide API infrastructure for invoice management
- β Verify blockchain transactions
- β Facilitate direct peer-to-peer payments
All USDC payments go directly from the payer's wallet to the merchant's wallet.
For full legal details, visit:
- Production API: https://api.xdotpay.com
- Documentation: https://xdotpay.com
- OpenAPI Spec: https://api.xdotpay.com/api/docs
- Support: Contact via documentation site
- Backend: Django + NinjaAPI
- Frontend: Next.js + React
- Blockchain: Ethereum (USDC on Ethereum)
- Authentication: Bearer Token (HTTP)
- Database: PostgreSQL (recommended)
This project is open source and transparent. See full terms at https://xdotpay.com/terms-of-service.
For questions, issues, or support:
- Visit the documentation at https://xdotpay.com
- Check the API reference at https://api.xdotpay.com/api/docs
- Review the setup guides for detailed instructions
Built with β€οΈ for transparent, non-custodial cryptocurrency payments