ePages 7.37.0 - DE_EPAGES/TrustedShops/API/Tools.pm

Package DE_EPAGES::TrustedShops::API::Tools

Utility functions for TrustedShops.

@EXPORT_OK
LogTrustedShops
SendShopChangesToUnity
TrustedShopsLogContext
UnusedCertificateLanguages

Functions

LogTrustedShops
SendShopChangesToUnity
TrustedShopsLogContext
UnusedCertificateLanguages

LogTrustedShops

Logs a structure to the communication.log.

Syntax
LogTrustedShops($Name, $Debug, $Section);
Example
LogTrustedShops('SendRequestHash', \%Hash, 'Send');
Input
$Name (string)
name of data
$Debug (hash)
data to be logged
$Section (string)
name of the section to be logged

SendShopChangesToUnity

Sends a Trustbadge JavaScript snippet to Unity.

Syntax
SendShopChangesToUnity( $hParams );
Input
$hParams (ref_hash
changes on a certificate page. It contains
the JavaScript snippet mentioned above.)
Hash structure generated after saving

TrustedShopsLogContext

Customised LogContext for Trusted Shops.

Syntax
TrustedShopsLogContext($TrustedShopsCertificate, $FunctionPointer);
Input
$TrustedShopsCertificate (object)
Trusted Shops Certificate
$FunctionPointer
Function Pointer

UnusedCertificateLanguages

Retruns all languages which are not used for a TS-certificate

Syntax
UnusedCertificateLanguages( $Shop );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop object
Return
$aPossibleLanguagesForCertificates (refarray)
a list of possible languages for certificates