ePages 6.14.0 - DE_EPAGES/HSBC/API/Tools.pm

Package DE_EPAGES::HSBC::API::Tools

utility functions

@EXPORT_OK
CreateOrderHash
replaceSpecialCharacters

Functions

CreateOrderHash
replaceSpecialCharacters

CreateOrderHash

creates the OrderHash from the given Input-Arguments and the CPI Secret

Syntax
$OrderHash = CreateOrderHash( {'OrderId' => '123456', 'CpiDirectResultUrl' => '...'}
                              'dP/7KdtiuALL8ofLqCjlKDK7NBNfbmCa' );
Input
$Hash
Contains all HSBC CPI Payment Arguments
$CPIHashKey
CPI Secret
$Shop (Object)
Shop (optional, needed for debugging)
Return
(CPI-OrderHash (Check Sum of all Arguments))
$OrderHash

replaceSpecialCharacters

replaces ß, ä, ö, ü, Ä, Ö, Ü by ss, ae, oe, ue, Ae, Oe, Ue, respectively

Syntax
$string = replaceSpecialCharacters($inputstring);
Input
$inputstring (string)
string to replace chars in
Return
$string (string)
string with chars replaced