OxaPay Alternative — Migrate to NearPayments
NearPayments implements an OxaPay-compatible REST API. Migrating is as simple as changing the base URL and swapping your API key.
Step 1: Create a Storefront
Section titled “Step 1: Create a Storefront”Open @NearPayments_bot on Telegram and create a storefront.
Step 2: Configure Wallets
Section titled “Step 2: Configure Wallets”Set up your settlement addresses. You can either:
- Enter addresses manually for each chain
- Use Import from HD Wallet to auto-configure all chains from a BIP-39 seed phrase
Step 3: Generate an API Key
Section titled “Step 3: Generate an API Key”Go to the API tab in your storefront and generate a new key.
Step 4: Update Your Code
Section titled “Step 4: Update Your Code”Change the base URL:
const BASE_URL = "https://api.oxapay.com/v1";const BASE_URL = "https://api.nearpayments.io/oxapay/v1";Use the same API key in the merchant_api_key header:
headers: { "merchant_api_key": "YOUR_OXAPAY_KEY" }headers: { "merchant_api_key": "YOUR_NEARPAYMENTS_KEY" }What’s Compatible
Section titled “What’s Compatible”| Endpoint | Method | Supported |
|---|---|---|
/payment/invoice | POST | Yes |
/payment/white-label | POST | Yes |
/payment/{track_id} | GET | Yes |
/payment/ | GET | Yes |
/payment/accepted-currencies | GET | Yes |
/common/prices | GET | Yes |
/common/currencies | GET | Yes |
/common/networks | GET | Yes |
/common/monitor | GET | Yes |
What’s Different
Section titled “What’s Different”- Zero platform fees — NearPayments doesn’t charge percentage-based fees
- Self-custody — payments go directly to your wallet addresses, not to a custodial account
- Telegram management — storefront management is done through a Telegram Mini App instead of a web dashboard