@tax1driver/ts-tpay
    Preparing search index...

    Class TPayNotificationsModule

    TPayNotificationsModule provides methods for validating webhook notifications from Tpay. Validates JWS (JSON Web Signature) signatures using X.509 certificates.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    apiClient_: AxiosInstance

    Methods

    • Validate JWS signature for Tpay notification

      Parameters

      • body: string | Buffer<ArrayBufferLike>

        Raw request body (as string or Buffer)

      • jwsSignature: string

        X-JWS-Signature header value

      Returns Promise<NotificationValidationResult>

      Promise resolving to validation result with parsed notification data

    • Validate notification from HTTP request headers and body

      Parameters

      • headers: Record<string, string | string[] | undefined>

        Request headers object

      • body: string | Buffer<ArrayBufferLike>

        Raw request body (as string or Buffer)

      Returns Promise<NotificationValidationResult>

      Promise resolving to validation result