guide

Webhook Configuration

Location: Settings → Payments → Webhook

Updated: 3/9/2026

Location: Settings → Payments → Webhook

Webhooks allow QuantaPay to notify your server in real time when a payment is completed.

Fields

FieldDescription
Webhook URLThe HTTPS endpoint on your server that will receive POST requests when payment events occur. Must be a publicly accessible URL.
Webhook Secret KeyAuto-generated secret included in the webhook JSON payload as the key field. Use this to verify that incoming webhooks are genuinely from QuantaPay.

Setup

  1. Enter your webhook endpoint URL (e.g., https://yoursite.com/webhook/quantapay)
  2. The Webhook Secret Key is automatically generated. Click the refresh button to regenerate if needed.
  3. Save settings.

How It Works

When a payment is completed (status C), QuantaPay sends an HTTP POST request to your Webhook URL with:

  • A JSON body containing { "key": "your-secret", "transaction": { ... } }
  • Verify the key field matches your Webhook Secret Key to confirm authenticity

For the full webhook payload format, signature verification code, and best practices, see API Reference: Webhooks.

Testing

To test your webhook:

  1. Create a test checkout session via the API
  2. Complete a small payment
  3. Check your server logs for the incoming webhook

Tip: Use a service like webhook.site during development to inspect incoming webhook payloads.