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

Package DE_EPAGES::TrustedShops::API::Tools

Utility functions for TrustedShops.

@EXPORT_OK
LogTrustedShops
SendShopChangesToUnity
TrustedShopsLogContext

Functions

LogTrustedShops
SendShopChangesToUnity
TrustedShopsLogContext

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