Overview

Getting started with our webhooks

TradPay Webhooks allow developers to monitor TradPay payment events and verify transactions in real-time through backend services.

Create Webhook

To create a webhook on TradPay:

  1. Go to Dashboard → Developers → Webhooks

  2. Choose from two types:

    • PayLink Webhook – applies to all or individual Paylinks&Checkout links

    • PayCard Webhook applies to all or individual Paycard links

In the dashboard, you can:

  • View and edit all created webhooks

  • See all triggered events

  • Access key details like status and delivery time

Payload Structure

Important Information

  1. Webhook Event Types:

    • PayLink & Checkout: Pending, Completed, Failed

    • Paycard: Created, Pending, Paid, Completed, Canceled, Declined, or Failed

  2. Signature Verification: Each webhook request includes a signature in the x-tx-signature header to verify it's from TradPay.

  3. Delivery Order: Webhooks are delivered in sequence when possible, but order is not guaranteed due to network delays. Handle events based on their type.

  4. Idempotency: Implement idempotent handling to manage duplicate deliveries from retries or network issues.

Retry Policy

TradPay uses the HTTP status code in your response to determine if a retry is needed. For more on status codes, see: HTTP Response Status Codes.

Retries are triggered in these cases:

  • HTTP response status code is not 200

  • HTTP response/connection times out (15s timeout)

Retry intervals:

  1. 15s

  2. 1m

  3. 5m

  4. 15m

  5. 30m

  6. 60m

After a total of 6 attempts, there will be no resends.

TradPay does not parse response content. Retries are triggered solely based on HTTP status codes.

Last updated