-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Transaction id posting for Auth.Net
Order will also update payment info if transaction data comes later (usually due to settings)
- Loading branch information
Showing
11 changed files
with
175 additions
and
14 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
17 changes: 17 additions & 0 deletions
17
www/magento/app/code/community/Signifyd/Connect/Model/Authnet.php
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
class Signifyd_Connect_Model_Authnet extends Mage_Paygate_Model_Authorizenet | ||
{ | ||
protected function _registercard(varien_object $response, mage_sales_model_order_payment $payment) | ||
{ | ||
Mage::log(">: ".$response->getTransactionId(), null, 'signifyd_connect.log'); | ||
$card = parent::_registercard($response,$payment); | ||
$card->setCcAvsResultCode($response->getAvsResultCode()); | ||
$card->setCcResponseCode($response->getCardCodeResponseCode()); | ||
$payment->setCcAvsStatus($response->getAvsResultCode()); | ||
$payment->setCcCidStatus($response->getCardCodeResponseCode()); | ||
$payment->setCcTransId($response->getTransactionId()); | ||
$payment->getCcTransId(); | ||
return $card; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
.../app/code/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-install-3.12.0.php
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
$this->startSetup(); | ||
$this->register(); | ||
$this->run(" | ||
DROP TABLE IF EXISTS `{$this->getTable('signifyd_connect_case')}`; | ||
DROP TABLE IF EXISTS `{$this->getTable('signifyd_connect_retries')}`; | ||
CREATE TABLE IF NOT EXISTS `{$this->getTable('signifyd_connect_case')}` ( | ||
`order_increment` varchar(255) NOT NULL, | ||
`signifyd_status` varchar(64) NOT NULL DEFAULT 'PENDING', | ||
`code` varchar(255) NOT NULL, | ||
`score` float DEFAULT NULL, | ||
`guarantee` VARCHAR( 64 ) NOT NULL DEFAULT 'N/A', | ||
`entries` text NOT NULL, | ||
`transaction_id` varchar(64) NULL, | ||
`created` timestamp NULL DEFAULT NULL, | ||
`updated` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`order_increment`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; | ||
CREATE TABLE IF NOT EXISTS `{$this->getTable('signifyd_connect_retries')}` ( | ||
`order_increment` varchar(255) NOT NULL, | ||
`created` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`order_increment`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; | ||
"); | ||
$this->endSetup(); |
8 changes: 8 additions & 0 deletions
8
...de/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.10.0-3.10.1.php
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
8 changes: 8 additions & 0 deletions
8
...de/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.10.1-3.11.0.php
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
8 changes: 8 additions & 0 deletions
8
...de/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.11.0-3.11.1.php
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
17 changes: 17 additions & 0 deletions
17
...de/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.11.1-3.12.0.php
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->run(" | ||
ALTER TABLE `{$this->getTable('signifyd_connect_case')}` ADD `transaction_id` VARCHAR(64) NULL; | ||
CREATE TABLE IF NOT EXISTS `{$this->getTable('signifyd_connect_retries')}` ( | ||
`order_increment` varchar(255) NOT NULL, | ||
`created` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`order_increment`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ; | ||
"); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
8 changes: 8 additions & 0 deletions
8
...code/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.8.0-3.9.0.php
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
8 changes: 8 additions & 0 deletions
8
...ode/community/Signifyd/Connect/sql/signifyd_connect_setup/mysql4-upgrade-3.9.0-3.10.0.php
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
try { | ||
$this->startSetup(); | ||
$this->endSetup(); | ||
} catch (Exception $e) { | ||
Mage::log('Signifyd_Connect upgrade: ' . $e->__toString(), null, 'signifyd_connect.log'); | ||
} |
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