17 require_once SQ_INCLUDE_PATH.
'/asset_management.inc';
42 require_once dirname(__FILE__).
'/sagepay_processor.inc';
44 $default_card_types = implode(
'|', array_keys($supported_card_types));
51 'description' =>
'The Sage Pay Direct Protocol (2.23 is the version when this payment gateway is created)',
57 'description' =>
'Vendor Login Name that is used to authenticate your site',
63 'description' =>
'How long to wait for a response, in seconds, before returning an error',
64 'parameters' => Array(
65 'allow_negative' => FALSE,
66 'allow_empty' => FALSE,
71 'type' =>
'selection',
73 'description' =>
'The currency used in all the e-commerce transactions',
74 'parameters' => Array(
76 'allow_empty' => FALSE,
87 'description' => Array(
90 'default' =>
'The total amount',
91 'description' =>
'The free text description of goods or services being purchased',
93 'delivery_addr_is_billing_addr' => Array(
97 'description' =>
'The flag to indicate if delivery address is billing address',
98 'parameters' => Array(
99 'allow_empty' => FALSE,
102 'hide_delivery_addr' => Array(
106 'description' =>
'The flag to indicate if delivery address is hidden',
107 'parameters' => Array(
108 'allow_empty' => FALSE,
111 'supported_card_types' => Array(
113 'type' =>
'selection',
114 'default' => $default_card_types,
115 'description' =>
'The card types supported by this payment gateway',
116 'parameters' => Array(
118 'allow_empty' => FALSE,
119 'options' => $supported_card_types,
122 'threeds_enabled' => Array(
126 'description' =>
'The flag to enable 3-D Secure check for the transactions',
127 'parameters' => Array(
128 'allow_empty' => FALSE,
131 'avscv2_enabled' => Array(
135 'description' =>
'The flag to enable AVS/CV2 check for the transactions',
136 'parameters' => Array(
137 'allow_empty' => FALSE,
140 'giftaid_var_name' => Array(
144 'description' =>
'The pass through variable name of Gift Aid',
146 'firstname_var_name' => Array(
150 'description' =>
'The pass through variable name of First Name',
152 'surname_var_name' => Array(
156 'description' =>
'The pass through variable name of Surname',
158 'addr1_var_name' => Array(
162 'description' =>
'The pass through variable name of Address 1',
164 'addr2_var_name' => Array(
168 'description' =>
'The pass through variable name of Address 2',
170 'city_var_name' => Array(
174 'description' =>
'The pass through variable name of City',
176 'postcode_var_name' => Array(
180 'description' =>
'The pass through variable name of Postcode',
182 'country_var_name' => Array(
186 'description' =>
'The pass through variable name of Country',
188 'submit_text' => Array(
191 'default' =>
' Pay ',
192 'description' =>
'Submit button text',
193 'is_contextable' => TRUE,
195 'reset_text' => Array(
198 'default' =>
'Reset',
199 'description' =>
'Reset button text',
200 'is_contextable' => TRUE,
202 'cancel_text' => Array(
205 'default' =>
'Cancel',
206 'description' =>
'Cancel button text',
207 'is_contextable' => TRUE,
211 'type' =>
'selection',
212 'default' =>
'Simulator',
213 'description' =>
'The run mode of this Payment Gateway',
214 'parameters' => Array(
216 'allow_empty' => FALSE,
218 'Simulator' =>
'Simulator',
255 'event_name' =>
'requestKeywords',
256 'broadcast_type_code' =>
'content_type',
257 'broadcast_strict_type_code' => FALSE,
259 'side_of_link' =>
'major',
261 'is_exclusive' => NULL,
264 'link_type' => SQ_LINK_TYPE_2,