1. Webhooks
MaxelPay Guide V2
  • ⚒️ Developer
    • 🔑 API Documentation
      • Getting Started
      • Account Creation
      • Wallet Configuration
      • API Key
      • Payments
        • Create payment session
        • Get session status
      • Payouts
        • Request Payout
      • Webhooks
        • Webhooks
  1. Webhooks

Webhooks

Webhooks allow MaxelPay to notify your server automatically when payment-related events occur.
This is the recommended and most reliable method for handling payment confirmations and status updates.

Setting Up Webhooks#

Create an Endpoint#

Set up a secure HTTPS endpoint on your server to receive webhook event notifications from MaxelPay.

Configure Webhook URL#

Provide your webhook URL when generating an API key or include it while creating a payment session.
This ensures your server receives real-time payment updates.

Webhook Payload#

When a payment event occurs, MaxelPay sends a JSON payload to your configured webhook endpoint.
{
  "event": "payment.completed",
  "timestamp": "2024-01-15T10:30:00Z",
  "data": {
    "sessionId": "sess_abc123xyz",
    "orderId": "ORDER-12345",
    "status": "paid",
    "amount": 99.99,
    "currency": "USD",
    "paidAmount": 99.99,
    "totalPaidUsd": 99.99,
    "txHash": "0x123...abc",
    "network": "Ethereum Sepolia",
    "tokenSymbol": "USDT",
    "customerEmail": "customer@example.com",
    "metadata": {
      "userId": "user_123"
    }
  }
}

Verify Signatures#

Always verify webhook signatures to confirm that incoming requests are genuinely sent by MaxelPay.
Signature verification protects your system from unauthorized or malicious requests.
Each webhook request includes a signature in the X-MaxelPay-Signature header.

Webhook Events#

payment.completed#

Payment has been fully confirmed on the blockchain.

payment.partial#

Partial payment received (less than the required amount).

payment.overpaid#

Customer paid more than the required amount.

payment.expired#

Payment session has expired without receiving payment.
Modified at 2026-03-02 10:20:57
Previous
Request Payout
Built with