Crypto payment integration: deposit wallets, callbacks (IPN), on-chain configuration (split). All content is self-contained in this file (HTML + CSS + JS).
General information
Item
Detail
Format
JSON — Content-Type: application/json for request bodies
Encodage
UTF-8
CORS
Access-Control-Allow-Origin: * with appropriate headers
Preflight
OPTIONS → 200 empty body
Base URL
Replace {BASE_URL} according to environment.
Environment
URL
Production
https://nxtgatew.com
Local (ex. MAMP)
http://localhost:8888/nxtgatew
API paths: POST{BASE_URL}/api/v1/wallets/create · GET{BASE_URL}/api/v1/wallets/check-config
Authentication
Each request must include:
Header
Required
Description
X-API-Key
Yes
API key (merchant, psp, or admin)
X-API-Secret
Yes
Matching API secret
Credentials are created at signup (merchant / PSP; admin possible for operations). Do not publish the secret. Accounts must be active with role merchant, psp, or admin — otherwise 401.
HTTP codes & errors
Typical error schema:
Example
{
"success": false,
"error": "Human-readable message explaining the issue"
}
Additional fields may include: hint, json_error_code, raw_input_preview, debug, etc.
Platform-generated receive address, IPN callback, optional affiliates. On Ethereum / Polygon, split_config in the 201 response is only for admin API keys; merchants use GET check-config.
POST{BASE_URL}/api/v1/wallets/create
Key
Value
Content-Type
application/json
X-API-Key
Your API key
X-API-Secret
Your API secret
Field
Type
Req.
Description
address
string
Yes
Merchant wallet (destination after split). Format per network.
callback
string
Yes
IPN notification URL. Alias: callback_url.
network
string
No
ethereum | polygon | tron | solana — default ethereum
affiliate_address
string
No
Affiliate address — with affiliate_percent ou affiliate_percent_bps
subaff_address
string
No
Sub-affiliate — with subaff_percent ou subaff_percent_bps
affiliate_percent
number
No
% of gross (e.g. 1 = 1%) — takes precedence over affiliate_percent_bps
subaff_percent
number
No
Same for sub-affiliate
split_amounts_unit
string
No
bps (default) or percent: if percent, *_percent_bps = % of gross, not bps
affiliate_percent_bps
int
No
Bps of gross (100 = 1%) unless split_amounts_unit = percent
subaff_percent_bps
int
No
Same for sub-affiliate
ipn_token
string
No
Your correlation token; otherwise generated (64 hex)
Formats: EVM 0x + 40 hex · Tron T + 34 chars · Solana base58 (32–44 chars)
Affiliate and sub-affiliate
Shares as % of gross amount (stored internally as bps). Example JSON fields: