ePages 6.11.0 - DE_EPAGES/Shop/API/Url.pm

Package DE_EPAGES::Shop::API::Url

Some functions to build shop urls.

@EXPORT_OK
BuildShopUrl

Functions

BuildShopUrl

BuildShopUrl

Builds an epages url for a given shop object with the given get parameters

Syntax
$url = BuildShopUrl($PaymentMethod, {'ChangeAction' => 'Callback', 'ViewAction' => 'ViewResult'});
Example
$url = BuildShopUrl($Shop, {'ChangeAction' => 'SaveDate', 'ViewAction' => 'ViewResult'});
$url = BuildShopUrl($PaymentMethod, {'ChangeAction' => ['BlockMonitor', 'Callback'], 'ViewAction' => 'ViewResult'});
Input
$Object (object)
any object that belongs to a shop
$hParams (ref.hash)
url get parameters; values may be strings or arrays of strings
$hOptions (ref.hash)
with following keys:
  • Type - one of 'sf' or 'admin', defaults to 'sf' - string
  • UseSSL - use https as protocol if SSL enabled for shop / database (optional, defaults to 0) - boolean
  • UseObjectPath - use object path rather than objectid (optional, defaults to 0) - boolean
  • AddToken - add security token or not (optional, defaults to 0) - boolean
  • AddCookies - add cookies to url or not (optional, defaults to 0) - boolean
  • NoUTF8 - do not use utf8 for encoding get parameters (optional, defaults to 0) - boolean
$Servlet (object)
the current servlet (optional, but required if either AddToken or AddCookies is true)
Return
$url (integer)
string