🕸️ Webhooks
HeedPay uses webhooks to notify your application asynchronously when events occur on your merchant profile context. When a payment transaction resolves successfully, an HTTP POST payload is delivered directly to your pre-configured endpoint listener directory.
Critical Integration Security Implementation
Because callback server targets are exposed to the public internet, you must rigorously validate incoming packet origins to eliminate structural risk vectors. Follow this sequence ruleset strictly upon incoming packet registration:
Verify Request Signature Matrix
Compute the internal authorization payload signature context and validate against the X-HeedPay-Signature transmission block values beforehand to establish explicit authenticity.
Mitigate Race-Conditions & Duplicate Requests
Log and check the unique transaction reference keys on your data persistence layer to safely enforce idempotency and avoid processing duplicate events.
Perform Explicit Server-Side Re-queries
Always execute an isolated outbound handshake request targeting our transaction fetch verification endpoint to confidently pull current truth matrix states before modifying critical system values.
Notification Payload Sample
Typical structural representation delivered to your target server route path on event fires.
Signature Verification Example
Sample validation script implementation for native PHP runtime setups.
Documentation last updated 1 year ago