// Context part 27

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7812 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-29 14:29:57 +00:00
parent 35748d1b8f
commit 5d090a25b3
66 changed files with 532 additions and 813 deletions
+3 -7
View File
@@ -31,13 +31,11 @@ class PaypalExpress extends Paypal
public function getAuthorisation()
{
global $cookie;
// Getting cart informations
$cart = new Cart((int)($cookie->id_cart));
$cart = $this->context->cart;
if (!Validate::isLoadedObject($cart))
$this->_logs[] = $this->l('Not a valid cart');
$currency = new Currency((int)($cart->id_currency));
$currency = new Currency($cart->id_currency);
if (!Validate::isLoadedObject($currency))
$this->_logs[] = $this->l('Not a valid currency');
@@ -85,10 +83,8 @@ class PaypalExpress extends Paypal
public function getCustomerInfos()
{
global $cookie;
// Making request
$request = '&TOKEN='.urlencode(strval($cookie->paypal_token));
$request = '&TOKEN='.urlencode(strval($this->context->cookie->paypal_token));
// Calling PayPal API
include(_PS_MODULE_DIR_.'paypal/api/paypallib.php');