  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: payment.php 533 2006-04-26 07:32:54Z hpdl $ |
| |
| 3 | + | $Id: payment.php 547 2006-04-29 01:23:20Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
176 | 176 | | return $this->_sort_order; |
| |
177 | 177 | | } |
| |
178 | 178 | | |
  |
179 | | - | /* The following method is needed in the checkout_confirmation.php page |
| |
180 | | - | due to a chicken and egg problem with the payment class and order class. |
| |
181 | | - | The payment modules needs the order destination data for the dynamic status |
| |
182 | | - | feature, and the order class needs the payment module title. |
| |
183 | | - | The following method is a work-around to implementing the method in all |
| |
184 | | - | payment modules available which would break the modules in the contributions |
| |
185 | | - | section. This should be looked into again post 2.2. |
| |
186 | | - | */ |
| |
187 | | - | function update_status() { |
| |
188 | | - | if (is_array($this->_modules)) { |
| |
189 | | - | if (isset($GLOBALS[$this->selected_module]) && is_object($GLOBALS[$this->selected_module])) { |
| |
190 | | - | if (method_exists($GLOBALS[$this->selected_module], 'update_status')) { |
| |
191 | | - | $GLOBALS[$this->selected_module]->update_status(); |
| |
192 | | - | } |
| |
193 | | - | } |
| |
194 | | - | } |
| |
| 179 | + | function getJavascriptBlock() { |
|
195 | 180 | | } |
| |
196 | 181 | | |
  |
197 | | - | function javascript_validation() { |
| |
| 182 | + | function getJavascriptBlocks() { |
|
198 | 183 | | global $osC_Language; |
| |
199 | 184 | | |
| |
200 | 185 | | $js = ''; |
| |
|
|
 |
… |
|
218 | 203 | | |
| |
219 | 204 | | foreach ($this->_modules as $module) { |
| |
220 | 205 | | if ($GLOBALS['osC_Payment_' . $module]->isEnabled()) { |
  |
221 | | - | $js .= $GLOBALS['osC_Payment_' . $module]->javascript_validation(); |
| |
| 206 | + | $js .= $GLOBALS['osC_Payment_' . $module]->getJavascriptBlock(); |
  |
222 | 207 | | } |
| |
223 | 208 | | } |
| |
224 | 209 | | |