Skip to content

SebaSco2/algobizsuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

AlgoBizSuite - Odoo 19 with Algorand Payments

Docker-based Odoo 19 development environment featuring Algorand Pera Wallet payment integration for accepting ALGO and USDC payments in your e-commerce store.

Table of Contents

Algorand Pera Payment Module

Accept cryptocurrency payments (ALGO and USDC) in your Odoo store via Pera Wallet.

Algorand Payment in Action

Key Features

  • βœ… ALGO Payments - Native Algorand cryptocurrency
  • βœ… USDC Payments - Stablecoin via Algorand Standard Assets
  • βœ… Fast Transactions - ~3.7 second confirmation
  • βœ… Low Fees - Less than $0.01 per transaction
  • βœ… TestNet & MainNet - Full testing environment support

Documentation

Comprehensive guides available in addons/algorand_pera_payment/readme/:

Full API documentation: README.rst

Quick Configuration

πŸ“Έ Complete Configuration Guide β†’

Configure Algorand Provider

5 Simple Steps:

  1. Login to Odoo - Access your admin panel
  2. Navigate to Payment Providers - Website β†’ Configuration β†’ Payment Providers
  3. Select Algorand Pera Wallet - Choose from available providers
  4. Configure Merchant Address - Set your wallet address and node URL
  5. Publish Provider - Enable for customers

Basic Configuration Steps:

  1. Configure merchant address:

    • Go to Website β†’ Configuration β†’ Payment Providers
    • Select "Algorand Pera Wallet"
    • Set your Algorand wallet address (58 characters)
    • Click "Check USDC Opt-in Status" and "Verify Node"
  2. Choose network:

    • TestNet (testing): https://testnet-api.algonode.cloud
    • MainNet (production): https://mainnet-api.algonode.cloud
  3. For USD payments: Opt-in to USDC

    • TestNet USDC: Asset ID 10458941
    • MainNet USDC: Asset ID 31566704

πŸ‘‰ See the Complete Configuration Guide with Screenshots for detailed instructions

Customer Payment Flow

πŸ“Έ Complete Payment Flow Guide β†’

Payment Confirmation

6-Step Payment Journey:

  1. Browse & Shop β†’ Customer browses products and adds items to cart
  2. Checkout β†’ Review order and proceed to payment
  3. Connect Wallet β†’ Scan QR code or connect Pera Wallet via web
  4. Review Payment β†’ See payment details, merchant address, and amount
  5. Complete Payment β†’ Sign transaction in Pera Wallet (for USDC: opt-in if needed)
  6. Confirmation β†’ Instant confirmation with blockchain transaction hash

Key Benefits:

  • ⚑ Fast: ~3.7 seconds confirmation time
  • πŸ’° Low Cost: Less than $0.01 per transaction
  • πŸ”’ Secure: Cryptographically verified on Algorand blockchain
  • βœ… Easy: Simple QR code or web wallet connection
  • πŸ“± Mobile-Friendly: Works seamlessly with Pera mobile app

Transaction Details Included:

  • Transaction note contains: host, amount, currency, and order reference
  • View full transaction on Algorand Explorer
  • Automatic order confirmation and email notification

πŸ‘‰ See the Complete Payment Flow with Screenshots for the full customer journey

Quick Start

Prerequisites: Docker 20.10+, Docker Compose 2.0+

Automated Installation (Recommended)

One-time setup - installs and configures everything! πŸš€

git clone https://github.com/SebaSco2/algobizsuite.git
cd algobizsuite
./install.sh

The install.sh script automatically:

  • βœ… Checks Docker is running
  • βœ… Creates configuration files from examples
  • βœ… Installs Algorand Pera Payment module
  • βœ… Starts all services
  • βœ… Displays configuration instructions

Then open http://localhost:8069 and you're ready to go!

πŸ’‘ Note: Uses default passwords. Change them in .env for production use.

Managing Services After Installation

Once installed, use these commands to manage your Odoo instance:

# Start services
docker-compose up -d

# Stop services
docker-compose down

# View logs
docker-compose logs -f odoo19

# Restart services
docker-compose restart

# Stop and remove all data (fresh start)
docker-compose down -v

Configuration

Environment Variables

⚠️ Important: Configuration files are not included in the repository for security. You must create them from the examples.

Required files:

  • .env - Environment variables (from .env.example)
  • docker-compose.yml - Docker config (from docker-compose.yml.example)
  • etc/odoo.conf - Odoo config (from etc/odoo.conf.example)

Default settings:

All passwords are configured via .env file for security.

Python Dependencies

Automatically installed on startup from etc/requirements.txt:

  • py-algorand-sdk==2.11.1 - Algorand blockchain SDK
  • inotify, watchdog - File system monitoring

Development

Common Commands

# Start/stop
docker-compose up -d
docker-compose down

# View logs
docker-compose logs -f odoo19

# Restart after code changes
docker-compose restart odoo19

# Access container
docker-compose exec odoo19 bash

# Access database
docker-compose exec db psql -U odoo -d postgres

Adding Custom Addons

Place addons in addons/ directory, restart, and update apps list in Odoo

Docker Commands Reference

# Build custom image
docker build -t odoo:19-custom .

# Rebuild and restart
docker-compose up -d --build

# Clean slate (⚠️ deletes all data)
docker-compose down -v
rm -rf postgresql/* test_installation/*

Manual Setup

If you prefer manual setup instead of using install.sh:

  1. Clone the repository:

    git clone https://github.com/SebaSco2/algobizsuite.git
    cd algobizsuite
  2. Set up environment variables:

    # Copy the example environment file
    cp .env.example .env
    
    # Edit .env and set your passwords
    nano .env

    Update these values in .env:

    POSTGRES_PASSWORD=your_secure_password
    ODOO_ADMIN_PASSWORD=your_admin_password
    DB_PASSWORD=your_secure_password
  3. Set up configuration files:

    # Copy example configuration files
    cp docker-compose.yml.example docker-compose.yml
    cp etc/odoo.conf.example etc/odoo.conf
    
    # Edit etc/odoo.conf and update passwords to match your .env
    nano etc/odoo.conf

    Update these values in etc/odoo.conf to match your .env:

    admin_passwd = your_admin_password
    db_password = your_secure_password
  4. Start the environment:

    docker-compose up -d
  5. Access Odoo:

  6. Install the Algorand module:

    • Go to Apps β†’ Update Apps List
    • Search "Algorand Pera Payment" β†’ Install
    • See Installation Guide

Troubleshooting

Services stopped after reboot: Restart them with docker-compose up -d

Missing configuration files: Run ./install.sh or create them manually:

cp .env.example .env
cp docker-compose.yml.example docker-compose.yml
cp etc/odoo.conf.example etc/odoo.conf
# Edit .env with your passwords

Container won't start: Check logs with docker-compose logs odoo19

Port conflicts: Modify ports in docker-compose.yml

Module not visible: Restart container and update apps list in Odoo

Permission errors: chmod +x install.sh entrypoint.sh

Fresh start:

docker-compose down -v
rm -rf postgresql/* test_installation/*
./install.sh

Resources

License

AGPL-3.0 - see LICENSE file.

Support


Made with ❀️ for the Odoo and Algorand communities

About

Odoo 19 development environment with Algorand Pera Wallet payment integration. Accept ALGO and USDC payments in your e-commerce store.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors