PAYBETA API
    • Bill Payment API
    • Webhook
    • Airtime
      • Providers
        GET
      • Payment
        POST
    • Data Bundle
      • Get Providers
        GET
      • Get Data Bundles
        POST
      • Payment
        POST
    • Cable TV
      • Get Providers
        GET
      • Get Bouquet
        POST
      • Validate Account
        POST
      • Payment
        POST
    • Electricity
      • Get Providers
        GET
      • Validate Account
        POST
      • Payment
        POST
    • Showmax
      • Get Bouquets
        GET
      • Payment
        POST
    • Gaming
      • Get Providers
        GET
      • Validate Account
        POST
      • Payment
        POST
    • Wallet
      • Balance
        GET
    • Education
      • Get Providers
        GET
      • Get Exam Types
        POST
    • Transaction Query
      POST

    Webhook

    Paybeta webhooks include a cryptographic signature in the Signature header to ensure the webhook originated from Paybeta and hasn't been tampered with.

    Signature Generation#

    The value passed inside the Signature header is calculated using a Hash-based Message Authentication Code (HMAC) with a SHA-256 hashing algorithm.
    Algorithm: HMAC-SHA256
    Key: Your API Secret Key (keep this hidden on your backend server environment).
    Data: The reference value located inside the transaction data block (data.reference).

    How to Verify the Signature#

    Capture the incoming raw JSON payload and extract the data.reference string.
    Read the value present inside the Signature request header.
    Compute an HMAC-SHA256 hash using the transaction reference as the data string and your merchant secret key as the signing key.
    Compare your locally computed string with the header value using a constant-time string comparison method to safeguard against timing analysis side-channel attacks.
    Code Verification Code Examples
    PHP / Laravel
    Node.js (Express)
    C# (.NET Core / ASP.NET)
    Java (Spring Boot)
    Python (Flask)
    Modified at 2026-05-17 16:55:27
    Previous
    Bill Payment API
    Next
    Providers
    Built with