// MERGE with trunk revision 7754

This commit is contained in:
rMalie
2011-07-27 12:48:42 +00:00
parent 21017fb5d8
commit 233c0076b7
182 changed files with 6179 additions and 1333 deletions
+6 -6
View File
@@ -42,7 +42,7 @@ if (Tools::getValue('hash') != md5(Configuration::get($module->prefix.'SALT') +
die(Tools::displayError());
$result = $module->getDispositionState((int)($cart->id));
$state = _PS_OS_ERROR_;
$state = Configuration::get('PS_OS_ERROR');
$disposition = Disposition::getByCartId((int)($cart->id));
@@ -53,7 +53,7 @@ if ($result[0] == 0)
if ($state == PrepaidServicesAPI::DISPOSITION_DISPOSED || $state == PrepaidServicesAPI::DISPOSITION_DEBITED)
{
$state = _PS_OS_PAYMENT_;
$state = Configuration::get('PS_OS_PAYMENT');
$message .= $module->getL('disposition_created');
}
else
@@ -66,7 +66,7 @@ else
$message .= 'payment_error'.' '.$result[2];
}
if ($state != _PS_OS_ERROR_)
if ($state != Configuration::get('PS_OS_ERROR'))
{
$state = (int)(Configuration::get($module->prefix.'ORDER_STATE_ID'));
@@ -78,12 +78,12 @@ if ($state != _PS_OS_ERROR_)
if ($result[0] != 0)
{
$message .= $module->getL('payment_error').' '.$result[2];
$state = _PS_OS_ERROR_;
$state = Configuration::get('PS_OS_ERROR');
}
else
{
$message .= $module->getL('payment_accepted');
$state = _PS_OS_PAYMENT_;
$state = Configuration::get('PS_OS_PAYMENT');
}
}
}
@@ -91,7 +91,7 @@ if ($state != _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);
if ($state == _PS_OS_ERROR_)
if ($state == Configuration::get('PS_OS_ERROR'))
{
include(dirname(__FILE__).'/../../header.php');
echo $message;