webhook_secret when you create the client, then pass the unmodified request body and headers to construct_event.
Before implementing verification, configure a notification URL and review the webhook delivery and security model.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Verify incoming UQPAY webhook signatures with the Python SDK.
webhook_secret when you create the client, then pass the unmodified request body and headers to construct_event.
Before implementing verification, configure a notification URL and review the webhook delivery and security model.
client = UQPayClient(
client_id="your-client-id",
api_key="your-api-key",
webhook_secret="your-webhook-secret",
)
# In your HTTP handler:
from uqpay import UQPayWebhookError
try:
event = client.webhooks.construct_event(
raw_body=request.get_data(),
headers=dict(request.headers),
)
print(event["event_type"], event["data"])
except UQPayWebhookError as e:
return str(e), 400
