Free & Open Source - AGPL Licensed

Download OwnPay

Install the self-hosted payment gateway on your own server. No vendor lock-in, no transaction fees, no recurring costs.

Quick start

Get running in three steps

OwnPay runs on any PHP 8.3+ server with MariaDB 10.6+. Shared hosting, VPS, Docker, or bare metal - your choice.

1

Download & Extract

Clone the repository or download the ZIP archive and extract it to your web server.

git clone https://github.com/own-pay/ownpay.git
cd ownpay
composer install --no-dev --optimize-autoloader
2

Configure Environment

Copy the example environment file and configure your database, SMTP, and gateway credentials.

cp .env.example .env
# Edit .env with your database credentials
# DB_HOST=127.0.0.1
# DB_DATABASE=ownpay
# DB_USERNAME=your_user
# DB_PASSWORD=your_pass
3

Initialize & Launch

Import the database schema, create your admin account, and point your web server to the public/ directory.

# Import the database schema
mysql -u root ownpay < database/schema.sql

# Create admin account
php database/seeds/admin.php

# Point your web root to the public/ directory
Requirements

Server Requirements

OwnPay is designed to run on affordable shared hosting or a small VPS. No special hardware required.

PHP 8.3+

With extensions: PDO, pdo_mysql, mbstring, json, openssl, bcmath, gd (optional for OG images), curl.

MariaDB 10.6+

Or MySQL 8.0+. A single database with the op_ table prefix. InnoDB engine, utf8mb4 charset.

Web Server

Apache with mod_rewrite or Nginx. Point document root to the public/ directory. HTTPS strongly recommended.

Composer

PHP dependency manager for installing phpdotenv and PHPMailer. Run composer install after cloning.

Installation methods

Choose your preferred method

Git Clone

Clone directly from GitHub. Easy to update with git pull.

git clone https://github.com/own-pay/ownpay.git
cd ownpay && composer install --no-dev

ZIP Archive

Download the latest release as a ZIP file. Extract and upload to your server.

Download ZIP

Docker (Coming Soon)

Run OwnPay in a Docker container for quick local testing and deployment.

# Docker support planned for v0.2.0
# Follow the repo for updates
Need help?

Resources and Support

Everything you need to get started and keep running.

Documentation

Complete installation and configuration guides.

Read Docs

API Reference

Merchant API endpoints and integration details.

API Docs

Try Demo

See OwnPay running live before installing.

Open Demo