Migrate from NOWPayments
NearPayments implements the same REST API as NOWPayments. Migrating is as simple as changing the base URL.
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”const BASE_URL = "https://api.nowpayments.io/v1";const BASE_URL = "https://api.nearpayments.io/v1";Replace your NOWPayments API key with your new NearPayments key:
headers: { "x-api-key": "YOUR_NOWPAYMENTS_KEY" }headers: { "x-api-key": "YOUR_NEARPAYMENTS_KEY" }What’s Compatible
Section titled “What’s Compatible”| Feature | NOWPayments | NearPayments |
|---|---|---|
| REST API paths | /v1/* | /v1/* (identical) |
| Authentication | x-api-key header | x-api-key header |
| Payment creation | POST /v1/payment | Same |
| Payment status | GET /v1/payment/{id} | Same |
| Invoices | POST /v1/invoice | Same |
| IPN callbacks | POST to your URL | Same payload format |
| Currencies | Ticker codes | Same codes |
| Estimates | GET /v1/estimate | Same |
What’s Different
Section titled “What’s Different”- Zero platform fees — NearPayments doesn’t charge percentage-based fees
- NEAR Intents — cross-chain settlement is handled via NEAR Protocol’s intent system
- Telegram-first — storefront management is done through a Telegram Mini App
- Self-custody — payments go directly to your wallet addresses