SignatureVerifier
in package
PayU request signature verifier class.
Table of Contents
- $signatureKey : string
- __construct() : mixed
- Construct.
- isValid() : bool
- Validate incoming signature with message body.
- calculatedSignature() : string
- Calculate signature from request content.
Properties
$signatureKey
private
string
$signatureKey
Signature key retrieved from payU account details
Methods
__construct()
Construct.
public
__construct(string $signatureKey) : mixed
Parameters
- $signatureKey : string
-
Signature key retrieved from payU account details
Return values
mixed —isValid()
Validate incoming signature with message body.
public
isValid(string $incomingSignature, string $messageBody, string $algorithm) : bool
Parameters
- $incomingSignature : string
- $messageBody : string
- $algorithm : string
Return values
bool —calculatedSignature()
Calculate signature from request content.
private
calculatedSignature(string $messageBody, string $algorithm) : string
Parameters
- $messageBody : string
- $algorithm : string