Cash Payment Service

A self-hostable Bitcoin Cash BIP70 and JSON Payment Protocol Gateway.

A public instance is available at: https://v1.pay.infra.cash

Administrative Interface for debugging is available at: https://admin.v1.pay.infra.cash

Documentation: REST-API Documentation | Webhooks Documentation | Internal API (UNSTABLE)

Quickstart

Create a docker-compose.yml file and adjust according to your needs:

version: "3.3"

networks:
  internal:
    external: false

services:

  mongo:
    image: mongo
    restart: always
    networks:
      - internal
    volumes:
      - ./mongo:/data/db
    environment:
      MONGO_INITDB_DATABASE: app

  cash-pay-server:
    image: "developerscash/cash-pay-server:v1-latest"
    restart: always
    environment:
      - DOMAIN=v1.pay.infra.cash # (Required)
      - WIF=L3pajCnJrxicPsPQmV7KLkyeQ9q5vr1tygSK4LshQgUWALjJJ5T4 # (Required)
      - MONGODB=mongodb://mongo:27017/app # (Required)
    depends_on:
      - mongo
    networks:
      - internal

Run docker-compose up to start Cash Pay Server.

By default, Cash Pay Server will run on port 8080. You will also need to configure your Reverse Proxy (e.g. Nginx, Apache or Traefik) with a valid SSL certificate.

Environment Variables

# (REQUIRED) The public facing domain of your service
DOMAIN=pay.your-service.com

# (REQUIRED) Private Key in WIF format (to sign webhooks)
WIF=L3pajCnJrxicPsPQmV7KLkyeQ9q5vr1tygSK4LshQgUWALjJJ5T4

# (REQUIRED) MongoDB connection URL
MONGODB=mongodb://mongo:27017/app

# Port to run CashPayServer on
PORT=8080 # (default: 8080)

# Currency Exchange Rates refresh interval (in seconds)
RATES_REFRESH=300 # (default: 300)

# Base Currency that Cash Pay Server should store conversions in
BASE_CURRENCY=USD # (default: USD)

# A comma-separated list of whitelisted API Keys if this Cash Pay Server is private
API_KEYS=RandomAPIKey123,RandomAPIKey456 # (default: null)