Skip to main content

Callback Receiver Example (FastAPI, v3)

The example below is a minimal sample that receives and verifies the v3 callback sent by qtg. Runnable example files:
  • Receiver server: examples/callback_receiver_fastapi.py
  • Local test sender: examples/send_signed_callback.py

Delivered Headers (v3)

  • X-QTG-Callback-Timestamp
  • X-QTG-Callback-Nonce
  • X-QTG-Callback-Signature-Version: v3
  • X-QTG-Callback-Signature

Signature Rule (v3)

Canonical string:
signature:

Local Run Quickstart

  1. Run the receiver server
  1. Send a signed callback

Important Notes

  • This example shows a minimal nonce ledger.
  • If the receiver runs in multiple instances in production, you must use nonce recording based on a shared DB/store + unique constraint.