Quickstart
This guide will help you get the Phoenix Java Middleware running quickly using the pre-built JAR file or by building from source.Prerequisites
Before you begin, ensure you have:- Java 17 or higher (OpenJDK recommended)
- Phoenix API credentials from Interswitch Uganda
- A text editor for configuration
The middleware runs on port 8081 by default. Make sure this port is available.
Option 1: Run the pre-built JAR
The fastest way to get started is using the pre-built JAR from the/dist folder.
Configure your credentials
Update the See the Configuration guide for all available settings.
dist/application.properties file with your Phoenix API credentials:Option 2: Build from source
If you want to build the middleware yourself or make custom modifications:Build with Maven
Use the Maven wrapper to build the project:The JAR will be created in the
target/ directory.Verify the installation
Once the application is running, verify it’s working correctly:Test the key generation endpoint
Generate RSA keys for client registration:You should receive a response with public and private keys:
The middleware automatically handles key exchange before payment operations, so you don’t need to call it manually for each transaction.
Available endpoints
The middleware exposes the following REST endpoints:Authentication
GET /isw/auth/generateKeys- Generate RSA key pairsPOST /isw/auth/registerClient- Register a new clientGET /isw/auth/keyExchange- Perform key exchange
Payments
POST /isw/payments/validation- Validate customer accountPOST /isw/payments/pay- Process paymentGET /isw/payments/checkStatus- Check transaction statusGET /isw/payments/balance- Get wallet balance
Billers
GET /isw/payments/billerCategories- Get biller categoriesGET /isw/payments/categoryBillers- Get billers by categoryGET /isw/payments/billerItems- Get payment items
Next steps
Configuration
Configure all application settings
Authentication
Learn about the authentication flow
Process payments
Start processing payments
API reference
Explore the complete API