About This File
Phoenix.lol — Solana (SOL) Payment Gateway for Invision Community
Accept native SOL payments directly on your IPS-powered forum or marketplace — no third-party processors, no middlemen, no KYC. Funds go straight to your wallet.
Overview
This module integrates Solana as a payment method inside Invision Community's Nexus commerce system. When a customer checks out, they are shown a dedicated payment page with the exact SOL amount, a scannable QR code, and a live confirmation tracker. The order is marked as paid automatically once the required number of on-chain confirmations is reached.
How it works
- Customer selects Solana (SOL) at checkout.
- The gateway converts the invoice total to SOL in real time using live market data from Binance or CoinGecko.
- The customer is redirected to a clean payment page showing the exact amount, wallet address, and QR code.
-
The gateway polls the official Solana JSON-RPC (
api.mainnet-beta.solana.com) every few seconds. - The moment a matching transfer is detected, a live confirmation progress bar appears.
- Once the configured number of slot confirmations is reached, the order and invoice are marked as Paid automatically and the customer is redirected.
No webhooks. No external payment processors. No API keys required.
Features
Blockchain & verification
- Uses the official Solana mainnet JSON-RPC — free, no API key needed
-
Detects payments via
getSignaturesForAddress+getTransactionbalance delta analysis -
Tracks confirmation status:
processed → confirmed → finalized - Accepts payments up to 1% below the invoiced amount to account for exchange rounding
- Searches transactions up to (timeout + 60) minutes back, so late senders from exchanges are still detected
Live payment page
- Real-time progress bar showing slot confirmations out of the required threshold
- Animated confirmation counter with stage-aware icons and status badges
- Countdown timer with color-coded urgency (green → amber → red)
- One-click copy for the wallet address
- QR code compatible with Phantom, Solflare, and any Solana-native wallet app
- Direct link to Solscan for transaction verification
- Fully responsive — works on mobile and desktop
Admin controls (ACP)
- Wallet address with base58 format validation
- Configurable confirmation threshold (default: 32 slots ≈ 13 seconds)
- Payment timeout window: 10 minutes to 24 hours
- Exchange rate source: Binance or CoinGecko (with 5-minute cache)
- Optional custom RPC endpoint for dedicated nodes or premium providers (Helius, QuickNode, etc.)
-
Debug endpoint (
?debug=1) for live RPC inspection without touching orders
Currency support
- Accepts any IPS store currency — USD, EUR, GBP, RUB, and more
- Two-step conversion: fiat → USD → SOL at live market rates
- Rate cached for 5 minutes to reduce external API calls
Requirements
- Invision Community 4.x with Nexus (Commerce) installed
- PHP 7.4 or higher
-
Outbound HTTPS access to
api.mainnet-beta.solana.comfrom your server - A Solana wallet address you control
Installation
-
Download the
.tararchive. - In your ACP go to System → Applications → Upload Application.
- Upload the archive and follow the on-screen steps.
- Go to Commerce → Payments → Payment Methods → Add Method, select Solana (SOL), and enter your wallet address.
- Save. The payment method is now live at checkout.
Configuration tips
| Setting | Recommended | Notes |
|---|---|---|
| Confirmation threshold | 32 slots | ~13 seconds. Raise to 64+ for higher-value orders |
| Payment timeout | 60 min | Give exchange users extra time |
| Exchange rate source | Binance | Falls back to CoinGecko automatically |
| Custom RPC | leave blank | Use a dedicated node for high-volume stores |
Security notes
- Each payment page URL is protected by an HMAC-style hash tied to the transaction ID and your site's unique key — it cannot be guessed or replayed.
- The gateway never stores private keys or seeds. It is read-only: it only queries the public blockchain.
- Expired payment windows are automatically closed and the transaction is marked as refused.
What's New in Version 1.0.2 See changelog
Released
v1.0.2 — Current release
- Switched from Solscan to the official Solana JSON-RPC for payment detection (no API key required)
- Added live slot confirmation progress bar with animated UI
- Added processed / confirmed / finalized status badges
- Faster polling: 8-second interval while waiting, 4-second while confirming
- Added custom RPC endpoint setting for dedicated node support
- Fixed fiat-to-SOL conversion for non-USD store currencies
- QR Code — Solana logo replaced The center icon on the payment QR code has been updated. The previous placeholder (a generic purple triangle) has been replaced with the official Solana logo — three gradient parallelograms in the correct green → teal → purple → magenta color scheme, matching Solana's brand identity exactly. The icon sits on a white rounded background with a subtle shadow so it reads cleanly against any QR pattern without interfering with scannability.
