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

Package DE_EPAGES::GestPay::API::Payment

Payment functions for GestPay.

@EXPORT_OK
DecryptRequestData
EncryptRequestData

Functions

DecryptRequestData
EncryptRequestData

DecryptRequestData

decrypt request data using the webservice API

Syntax
my $hResult = DecryptRequestData($MerchantID, $EncryptedString);
Input
$MerchantID (string)
merchant id (shop login)
$EncryptedString (integer)
encrypted string received from GestPay
Return
$hResult (ref.hash)
result received from Decrypter; keys: ErrorCode, ErrorDescription, etc; undef on error

EncryptRequestData

crypt payment data using the webservice API the languageid will be ignored because Basic accounts do not allow the languageid to be sent

Syntax
my $hResult = EncryptRequestData($MerchantID, $CurrencyID, $Amount, $TransID, $LanguageID);
Input
$MerchantID (string)
merchant id (shop login)
$CurrencyID (integer)
GestPay numeric currencyid
$Amount (float)
amount
$TransID (string)
transaction id
$LanguageID (integer)
GestPay numeric language id (unused)
Return
$hResult (ref.hash)
result received from Encrypter; keys: ErrorCode, ErrorDescription, EncryptedString; undef on error