[+] MO : Update Paypal to use the new system to store payment cc details
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9718 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -482,11 +482,19 @@ class PayPal extends PaymentModule
|
||||
|
||||
}
|
||||
|
||||
public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false, Shop $shop = null)
|
||||
public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL,
|
||||
$extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false, Shop $shop = null)
|
||||
{
|
||||
if (!$this->active)
|
||||
return;
|
||||
|
||||
// Set transaction details if pcc is defiend in PaymentModule class_exists
|
||||
if ($this->pcc)
|
||||
{
|
||||
$this->pcc->transaction_id = (isset($extraVars['transaction_id']) ?
|
||||
$extraVars['transaction_id'] : '');
|
||||
}
|
||||
|
||||
parent::validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod, $message, $extraVars, $currency_special, $dont_touch_amount, $secure_key);
|
||||
|
||||
if (array_key_exists('transaction_id', $extraVars) AND array_key_exists('payment_status', $extraVars))
|
||||
|
||||
Reference in New Issue
Block a user