[+] MO : Uptdate module to store payment cc information
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9683 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -123,5 +123,20 @@ class CashTicket extends PrepaidServices
|
||||
|
||||
return $error_msg[$error_code];
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the detail of a payment - Call before the validate order init
|
||||
* correctly the pcc object
|
||||
* See Authorize documentation to know the associated key => value
|
||||
* @param array fields
|
||||
*/
|
||||
public function setTransactionDetail($response)
|
||||
{
|
||||
// If Exist we can store the details
|
||||
if (isset($this->pcc))
|
||||
{
|
||||
$this->pcc->transaction_id = (string)$response['transaction_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -88,8 +88,10 @@ if ($state != Configuration::get('PS_OS_ERROR'))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$module->validateOrder((int)($cart->id), $state, (float)($cart->getOrderTotal(true, Cart::BOTH)), $module->displayName, $message, NULL, (int)($currency->id), false, $cart->secure_key);
|
||||
$module->setTransactionDetail(array(
|
||||
'transaction_id', $disposition['mtid']));
|
||||
$module->validateOrder((int)($cart->id), $state, (float)($cart->getOrderTotal(true, Cart::BOTH)),
|
||||
$module->displayName, $message, NULL, (int)($currency->id), false, $cart->secure_key);
|
||||
|
||||
if ($state == Configuration::get('PS_OS_ERROR'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user