17 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
41 'merchant_id' => Array(
45 'description' =>
'Gateway Merchant ID for the e-commerce transaction',
51 'description' =>
'Turn this ON for test mode',
52 'parameters' => Array(
53 'allow_empty' => FALSE,
60 'is_contextable' => TRUE,
62 'display_ccv' => Array(
66 'description' =>
'Enables CCV field in the form',
67 'parameters' => Array(
68 'allow_empty' => FALSE,
71 'submit_text' => Array(
75 'description' =>
'Submit button text',
76 'is_contextable' => TRUE,
78 'reset_text' => Array(
82 'description' =>
'Reset button text',
83 'is_contextable' => TRUE,
85 'cancel_text' => Array(
88 'default' =>
'Cancel',
89 'description' =>
'Cancel button text',
90 'is_contextable' => TRUE,
108 $res = parent::_upgrade($current_version);
110 if (version_compare($current_version,
'0.3',
'<')) {
111 pre_echo(
'UPGRADING TO v0.3');
112 $assetid_list = $GLOBALS[
'SQ_SYSTEM']->am->getTypeAssetids(
'payment_gateway_esec', FALSE);
113 $default_content = translate(
'default_bodycopy_content');
114 foreach ($assetid_list as $assetid) {
115 $asset =& $GLOBALS[
'SQ_SYSTEM']->am->getAsset($assetid);
116 $content = $default_content;
117 $message = $asset->attr(
'message');
118 if (!empty($message)) {
119 $content =
'<div>'.$message.
'</div>'.$content;
122 if (!$asset->_createBodycopy($content)) {
123 trigger_error(
'Error creating bodycopy for Gateway #'.$assetid, E_USER_WARNING);
126 $GLOBALS[
'SQ_SYSTEM']->am->forgetAsset($asset);
128 pre_echo(count($assetid_list).
' UPDATED');
163 'event_name' =>
'requestKeywords',
164 'broadcast_type_code' =>
'content_type',
165 'broadcast_strict_type_code' => FALSE,
167 'side_of_link' =>
'major',
169 'is_exclusive' => NULL,
172 'link_type' => SQ_LINK_TYPE_2,