ePages 6.11.0 - DE_EPAGES/ServiRed/API/Payment.pm

Package DE_EPAGES::ServiRed::API::Payment

Payment functions for ServiRed.

@EXPORT_OK
CalculateHash
CaptureAmount

Functions

CalculateHash
CaptureAmount

CalculateHash

calculate the ServiRed hash

Syntax
my $hash = CalculateHash($data1, $data2, $data3, $secret);
Input
@data (array)
list of values to calculate the hash from (including the secret at the end)
Return
$hash (string)
sha1 hash

CaptureAmount

at the moment unused - unclear how capture works

Syntax
if (!CaptureAmount($PaymentLineItem)) {...
Input
$PaymentLineItem (object)
LineItemPaymentServiRed
Return
$status (boolean)
1 - success, 0 - failure