ePages 7.21.0 - DE_EPAGES/ServiRed/API/PaymentSHA256.pm

Package DE_EPAGES::ServiRed::API::PaymentSHA256

Payment functions for ServiRed version HMAC SHA256

Functions

collectData
getSecretKey
isSha256Key
new

collectData

Get plain RedSys/Servired parameters

Syntax
$hMerchantPlainData = $paymentSha256->collectData();
Return
(ref hash)
$hMerchantPlainData

getSecretKey

Get secret key from RedSys payment RedSys

Syntax
getSecretKey();
Return
$hTransferData (refhash)
hTransferData

isSha256Key

It checks if MBO secret key field is ready for new HMAC-SHA256 or old SHA1 flow

Syntax
$isSha256Key = PaymentSHA256->isSha256Key();
Return
(boolean)
$isSha256Key

new

Creates a new RedSys HMAC SHA256 object .

Syntax
$RedSys = DE_EPAGES::ServiRed::API::PaymentSHA256->new($Servlet);
Input
$Servlet (object)
servlet object
Return
$RedSys (object)
redsys object