Skip to content

πŸ’° Free, open-source & self-hosted cryptocurrency merchant platform for accepting crypto payments

License

Notifications You must be signed in to change notification settings

dv-net/dv-merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ DV.net Merchant Backend


πŸ‡¬πŸ‡§ English β€’ πŸ‡·πŸ‡Ί Русский β€’ πŸ‡¨πŸ‡³ δΈ­ζ–‡

Website β€’ Docs β€’ API β€’ Support


πŸ’‘ Overview

DV.net Merchant Backend is a high-load, self-hosted payments platform for accepting, processing, and sending cryptocurrency. The stack is fully open source, runs on your own infrastructure, and keeps you in control of every transaction.

πŸ”’ Non-custodial β€” private keys always stay on your side

⚑ High-performance β€” Go 1.24, Fiber v3, PostgreSQL & Redis

🌐 Wide coverage β€” multiple blockchains and centralized exchanges

🧱 Modular β€” clean architecture with delivery β†’ service β†’ storage


✨ Highlights

🎯 Business capabilities

  • βœ… Accept and send crypto without mandatory KYC/KYB
  • βœ… Notifications, webhooks, and flexible event routing
  • βœ… Fee management plus TRON/EVM resource optimization
  • βœ… Integrations with major CEXs (Binance, OKX, HTX, KuCoin, Bybit, etc.)

πŸ”§ Technical features

  • βœ… Fiber v3 HTTP API with Casbin-based RBAC
  • βœ… Async workers and schedulers in internal/app
  • βœ… Service layer with DI and business logic (internal/service)
  • βœ… PostgreSQL / Redis repositories (internal/storage)
  • βœ… Automated SQL generation (sqlc, pgxgen)
  • βœ… Rich helper packages in pkg (clients, retry, OTP, AML)

🧭 Architecture at a Glance

cmd/                CLI entrypoints (server, migrations, utilities)
configs/            Config templates and Casbin policies
internal/app        App bootstrap and background jobs
internal/delivery   HTTP handlers, middleware, routing
internal/service    Business logic, integrations, events
internal/storage    PostgreSQL/Redis repositories
pkg/                External clients and shared libraries
sql/                SQL modules, migrations, code generation

Diagrams and Swagger specs live in docs/ (swagger.yaml, swagger.json).


πŸš€ Getting Started

Self-hosted install (one command)

sudo bash -c "$(curl -fsSL https://dv.net/install.sh)"

Developer Docker bundle

git clone --recursive https://github.com/dv-net/dv-bundle.git
cd dv-bundle && cp .env.example .env
docker compose up -d

Manual backend build

git clone https://github.com/dv-net/dv-merchant.git
cd dv-merchant

make build

The binary github.com/dv-net/dv-merchant will appear in .bin/ once the build finishes.


πŸ§ͺ Development & Testing

Pre-commit checklist

  • Run linting and formatting to keep the codebase consistent.
  • Execute unit tests and make sure critical flows are covered.
  • Add or update tests when shipping new features or fixes.
# Static analysis & formatting
make lint
go fmt ./...

# Unit tests
make test

ℹ️ Extended workflows (make run, Docker Compose, etc.) are documented in the dv-bundle repo (README.md) and on https://docs.dv.net.


πŸ›  CLI Commands

  • .bin/dv-merchant start β€” run the HTTP API server.
  • .bin/dv-merchant migrate up|down β€” apply or roll back DB migrations.
  • .bin/dv-merchant seed up|down β€” load or drop seed data.
  • .bin/dv-merchant config β€” validate config and generate env/flags.
  • .bin/dv-merchant permission β€” manage roles and Casbin policies.
  • .bin/dv-merchant transactions β€” tooling for transaction operations.
  • .bin/dv-merchant users β€” manage users from the console.

πŸ“š Documentation

  • πŸ“– Full guide β€” installation, configuration, scenarios.
  • πŸ”Œ API reference β€” request/response schemas.
  • 🧾 Swagger spec β€” shipped with the repository.

πŸ” Security Features

  1. πŸ”“ Non-custodial design β€” you control keys and addresses.
  2. 🧠 Multisig support and TRON resource delegation.
  3. πŸ›‘οΈ Casbin RBAC with flexible configs/rbac_* policies.
  4. πŸ“œ Full audit trail: events, logging, Prometheus metrics.

🀝 Contributing

# Before submitting a PR
make lint
go test ./...
  • ⭐ Star the repo if it helps your project.
  • πŸ› Report bugs via Issues.
  • πŸ’‘ Propose new features and use cases.
  • πŸ”§ Pull Requests are welcome!

πŸ“ž Contact

Telegram: @dv_net_support_bot β€’ Telegram Chat: @dv_net_support_chat β€’ Discord: discord.gg/Szy2XGsr

Email: support@dv.net β€’ Website: dv.net β€’ Documentation: docs.dv.net


Β© 2025 DV.net β€’ DV Technologies Ltd.

Built with ❀️ for the crypto community

About

πŸ’° Free, open-source & self-hosted cryptocurrency merchant platform for accepting crypto payments

Resources

License

Contributing

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages