Self-hosted and self-custodial XMR payment gateway in C#
  • C# 99.1%
  • Dockerfile 0.9%
Find a file
2026-11-22 21:11:53 +01:00
caishenpay-cs fix(callback): avoid logging retry after final attempt 2026-11-22 21:11:53 +01:00
caishenpay-cs.Tests test: remove duplicate invoice-not-found test 2026-11-22 21:10:47 +01:00
.dockerignore Add dockerfile 2026-10-09 11:56:07 +02:00
.gitignore Ad sqlite db 2026-10-10 19:55:08 +02:00
caishenpay-cs.sln Add unit tests 2026-10-29 23:36:08 +01:00
Dockerfile fix(docker): fix data vol persistence 2026-11-03 11:09:01 +01:00
LICENSE Add license 2026-09-12 15:06:00 +02:00
README.md Rename project to Open-CPay 2026-11-06 14:05:34 +01:00

Open-CPay

C# crypto payment gateway for processing XMR transactions.

Currently only supports single merchant private use as the signing encryption key is global. Multi-tenant support is in the works.

Requirements

  • monero wallet generated
  • monero-wallet-rpc
  • .NET 10+

Running

git pull https://git.blackruby.hu/blackruby/open-cpay.git
dotnet run --project caishenpay-cs

Listens on http://localhost:5094 and reads appsettings.Development.json. Override any setting with an environment variable or by editing the appsettings.json file.

Using Docker

docker build -t caishenpay-cs .
docker run --rm -p 8080:8080 \
  -e SecurityKey=01HSGVBSF99SK6XMJQJYF0X3WQ \
  -e Wallets__Monero__RpcUri=http://example.local:18088 \
  -e Wallets__Monero__RpcUsername=rpcusername \
  -e Wallets__Monero__RpcPassword=rpcpassword \
  caishenpay-cs

Add -e IsPollerNode=false to run a web-only worker without the poller.

Authentication

For protected endpoints an X-API-KEY must be supplied in the request header, defined in settings.json as 'SecurityKey.'

Multiple SecurityKeys can be provided in the SecurityKey settings separated by ;,