Docs · Overview

Developers

Accept payments with one API call

Your server creates an order, the buyer pays on the PayerNex hosted checkout, and PayerNex sends your server a signed notification once the payment is confirmed. The money goes straight to your own Binance, bank, crypto wallet or gateway account. PayerNex only checks and confirms it.

How it works #

01
Create order
Your server calls POST /api/v1/create-order with the amount.
02
Redirect buyer
Send the buyer to the checkout_url you get back.
03
Buyer pays
They choose one of your active gateways and pay you directly.
04
PayerNex confirms
It matches the payment (Binance, SMS/email bank alert, on-chain or gateway API).
05
You get a webhook
A signed POST hits your server. You mark the invoice paid.

PayerNex has no test mode or sandbox. Each API key is live, so test with a small real payment (for example 1 USDT).

Quickstart #

  1. Create an account and choose a plan Register and verify your email. To create orders through the API your account needs an active subscription. Without one, create-order returns 403 Merchant subscription expired. Please renew your plan. See pricing.
  2. Connect at least one gateway In the dashboard, open Gateway settings and add a Binance Pay, bank, TRC20/BEP20 wallet, Stripe or other supported gateway. The checkout shows the buyer your active gateways.
  3. Copy your API key and webhook secret Open Dashboard → Developer (API Keys & Webhooks). The API key is a 54-character hex string and the Webhook Secret is a 64-character hex string. Keep both on your server only. Regenerate API Key stops the old key from working straight away.
  4. Create an order from your server Send the amount, your own reference and the URLs PayerNex should use for this order.
curl -X POST https://payernex.com/api/v1/create-order \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 25.00,
    "currency": "USDT",
    "customer_id": "user_1042",
    "description": "Invoice #1042",
    "ipn_url": "https://your-site.com/payernex/webhook",
    "success_url": "https://your-site.com/orders/1042/thanks",
    "cancel_url": "https://your-site.com/orders/1042"
  }'
Response · 201 Created
{
  "success": true,
  "data": {
    "order_ref": "ORD-9F2C61D04B7A3E58",
    "note_code": "48213",
    "amount": 25,
    "currency": "USDT",
    "status": "pending",
    "checkout_url": "https://payernex.com/checkout/…",
    "expires_at": "2026-10-25T10:32:41.000Z"
  }
}
  1. Redirect the buyer to checkout_url The order expires 30 minutes after it is created (expires_at). After the payment is confirmed the checkout sends the buyer to your success_url. If the order expires, it sends them to your cancel_url.
  2. Receive the webhook and check the signature When the order becomes paid, PayerNex POSTs a JSON payment.completed event to your ipn_url. If you didn't send one, it goes to the Callback URL saved in Dashboard → Developer. The X-Signature header is HMAC-SHA256(raw body, webhook secret) in hex. See verifying signatures.
  3. Re-fetch the order before you fulfil it Call GET /api/v1/order/{order_ref} and use its status and paid_amount. The official plugins always do this. Respond to the webhook with any 2xx.

Using WooCommerce, WHMCS or Dhru Fusion? You don't need to write any code. Install the official plugin and paste your API key and webhook secret.

Key concepts #

ConceptWhat it means
Base URLhttps://payernex.com. Every API path starts with /api/v1.
AuthenticationAuthorization: Bearer YOUR_API_KEY on every request. One key per merchant account. Details
order_refPayerNex's ID for an order, for example ORD-9F2C61D04B7A3E58 (ORD- + 16 uppercase hex characters). Use it to look up or cancel the order.
note_codeA 6-digit code the buyer types into the Binance Pay note/memo so PayerNex can match their payment to your order.
Order statuspending → paid, or manual_review, expired, cancelled, rejected. Full list
WebhookA signed server-to-server POST sent when an order is paid. Webhooks reference
Rate limit60 requests per minute per IP address across /api/*. Details

Next steps #