Code: Select all
$this->response =& $locator->get('request');
$this->session =& $locator->get('response');
Code: Select all
$this->response =& $locator->get('response');
$this->session =& $locator->get('session');
because on line 31 it uses the codeFatal error: Call to undefined method Response::get() in /catalog/extension/payment/paypal.php on line 31
Code: Select all
..... $this->session->get('payment_address_id') ....
BTW.: The Google Checkout payment extension, which is quite similar in program logic to the Paypal module, has the same bug.
Bruce, you are the expert on this because you were involved in the original creation of the Paypal Improved module which I believe is being used by OpenCart 0.7.9RC3. Can you confirm that this is indeed a bug before I enter it into the http://code.google.com/p/open-cart/issues/list?
And talking about Paypal and Google payment modules: Perhaps it is a good idea to insert the missing 'Paid Unconfirmed' order_status line into the /install/opencart.sql file, the cleaned-up code for creating the order_status should look like this:
Code: Select all
DROP TABLE IF EXISTS `order_status`;
CREATE TABLE `order_status` (
`order_status_id` int(11) NOT NULL auto_increment,
`language_id` int(11) NOT NULL default '1',
`name` varchar(32) collate utf8_unicode_ci NOT NULL default '',
PRIMARY KEY (`order_status_id`,`language_id`),
KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('1', '1', 'Canceled');
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('2', '1', 'Complete');
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('3', '1', 'Paid Unconfirmed');
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('4', '1', 'Pending');
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('5', '1', 'Processing');
INSERT INTO `order_status` (`order_status_id`, `language_id`, `name`) VALUES ('6', '1', 'Shipped');