forked from OpenMage/magento-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import Magento Release 1.6.1.0-beta1
URL: http://www.magentocommerce.com/getmagento/1.6.1.0-beta1/magento-1.6.1.0-beta1.tar.bz2 SHA1: 25ee015f44e4deea6c63b566f29771fb40efd7ed
- Loading branch information
1 parent
b37626f
commit 16738b2
Showing
50 changed files
with
489 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,9 @@ | |
/** | ||
* Centinel Index Controller | ||
* | ||
* @category Mage | ||
* @package Mage_Centinel | ||
* @author Magento Core Team <[email protected]> | ||
*/ | ||
class Mage_Centinel_Adminhtml_Centinel_IndexController extends Mage_Adminhtml_Controller_Action | ||
{ | ||
|
@@ -43,12 +46,9 @@ public function validatePaymentDataAction() | |
if (!$validator) { | ||
throw new Exception('This payment method does not have centinel validation.'); | ||
} | ||
$validator->reset(); | ||
$this->_getPayment()->importData($paymentData); | ||
if ($validator->shouldAuthenticate()) { | ||
$result['authenticationUrl'] = $validator->getAuthenticationStartUrl(); | ||
} else { | ||
Mage::throwException(Mage::helper('centinel')->__('This card has failed validation, but it is possible to place the order.')); | ||
} | ||
$result['authenticationUrl'] = $validator->getAuthenticationStartUrl(); | ||
} catch (Mage_Core_Exception $e) { | ||
$result['message'] = $e->getMessage(); | ||
} catch (Exception $e) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.