Class OrderSignatureCalculator
Will do the same job as Team3\PayU\SignatureCalculator\SignatureCalculatorInterface
but doesn't need data as array. It will turn Team3\PayU\Order\Model\OrderInterface
array of alphabetical sorted parameters and pass it to signature calculator.
Class OrderSignatureCalculator
- Team3\PayU\SignatureCalculator\OrderSignatureCalculator implements Team3\PayU\SignatureCalculator\OrderSignatureCalculatorInterface
Namespace: Team3\PayU\SignatureCalculator
Package: Team3\PayU\SignatureCalculator
Located at Team3/PayU/SignatureCalculator/OrderSignatureCalculator.php
Package: Team3\PayU\SignatureCalculator
Located at Team3/PayU/SignatureCalculator/OrderSignatureCalculator.php
Methods summary
public
|
#
__construct(
|
public
string
|
#
calculate(
Calculates signature only for model which implements OrderInterface. Signature for order is string with multiple variables described in SIGNATURE_FORMAT. It uses SignatureCalculatorInterface to calculate one of the parameters. |
Magic methods summary
Constants summary
string |
SIGNATURE_FORMAT
|
#
'signature=%s;algorithm=%s;sender=%s'
|