Iridiumcorp_Tpg - Version 1.12.4

Version Notes

The following bugs are fixed:
- incorrect/missing validation on the payment form
- cart is empty after failed payment
- incorrect Payment Method wording in the confirmation email

Download this release

Release Info

Developer Magento Core Team
Extension Iridiumcorp_Tpg
Version 1.12.4
Comparing to
See all releases


Code changes from version 1.12.1 to 1.12.4

app/code/local/Iridiumcorp/Sales/Model/Service/Quote.php CHANGED
@@ -56,7 +56,8 @@ class Iridiumcorp_Sales_Model_Service_Quote extends Mage_Sales_Model_Service_Quo
56
  }
57
  $order->addItem($orderItem);
58
  }
59
- $quote->setIsActive(false);
 
60
 
61
  $transaction->addObject($order);
62
  $transaction->addCommitCallback(array($order, 'place'));
56
  }
57
  $order->addItem($orderItem);
58
  }
59
+ // make sure the cart is not emptied
60
+ //$quote->setIsActive(false);
61
 
62
  $transaction->addObject($order);
63
  $transaction->addCommitCallback(array($order, 'place'));
app/code/local/Iridiumcorp/Tpg/Model/Common/PaymentFormHelper.php CHANGED
@@ -506,27 +506,5 @@
506
 
507
  return $boMatch;
508
  }
509
-
510
- // TODO : REMOVE
511
- /**
512
- * Transform the string Magento version number into an integer ready for comparison
513
- *
514
- * @param unknown_type $nVersion
515
- * @return unknown
516
- */
517
- /*public static function getVersion($magentoVersion)
518
- {
519
- //$nVersion = Mage::getVersion();
520
- $pattern = '/[^\d]/';
521
- $magentoVersion = preg_replace($pattern, '', $magentoVersion);
522
-
523
- while(strlen($magentoVersion) < 4)
524
- {
525
- $magentoVersion .= '0';
526
- }
527
- $magentoVersion = (int)$magentoVersion;
528
-
529
- return $magentoVersion;
530
- }*/
531
  }
532
  ?>
506
 
507
  return $boMatch;
508
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
509
  }
510
  ?>
app/code/local/Iridiumcorp/Tpg/Model/Direct.php CHANGED
@@ -831,7 +831,7 @@ class Iridiumcorp_Tpg_Model_Direct extends Mage_Payment_Model_Method_Abstract
831
  break;
832
  case "20":
833
  Mage::log("Duplicate ".$szWording."transaction. ".$message);
834
- $message = $message.". A duplicate transaction means that a transaction with these details has already been processed by the payment provider. The details of the original transaction - Previous Transaction Response: ".szPreviousMessage;
835
  if($szPreviousStatusCode != "0")
836
  {
837
  $error = true;
831
  break;
832
  case "20":
833
  Mage::log("Duplicate ".$szWording."transaction. ".$message);
834
+ $message = $message.". A duplicate transaction means that a transaction with these details has already been processed by the payment provider. The details of the original transaction - Previous Transaction Response: ".$szPreviousMessage;
835
  if($szPreviousStatusCode != "0")
836
  {
837
  $error = true;
app/code/local/Iridiumcorp/Tpg/sql/iridiumcorp_tpg_setup/mysql4-install-0.1.0.php CHANGED
@@ -5,12 +5,12 @@ $installer = $this;
5
  $installer->startSetup();
6
 
7
  $installer->run("
8
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_failed_hosted_payment');
9
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_failed_threed_secure');
10
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_paid');
11
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_pending');
12
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_pending_hosted_payment');
13
- DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE ('status'='irc_pending_threed_secure');
14
 
15
  INSERT INTO `magento_1_5_0`.`sales_order_status` (`status`, `label`) VALUES ('irc_failed_hosted_payment', 'Iridiumcorp - Failed Payment');
16
  INSERT INTO `magento_1_5_0`.`sales_order_status` (`status`, `label`) VALUES ('irc_failed_threed_secure', 'Iridiumcorp - Failed 3D Secure');
5
  $installer->startSetup();
6
 
7
  $installer->run("
8
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`status`='irc_failed_hosted_payment');
9
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`status`='irc_failed_threed_secure');
10
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`status`='irc_paid');
11
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`statusv='irc_pending');
12
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`status`='irc_pending_hosted_payment');
13
+ DELETE FROM `magento_1_5_0`.`sales_order_status` WHERE (`statusv='irc_pending_threed_secure');
14
 
15
  INSERT INTO `magento_1_5_0`.`sales_order_status` (`status`, `label`) VALUES ('irc_failed_hosted_payment', 'Iridiumcorp - Failed Payment');
16
  INSERT INTO `magento_1_5_0`.`sales_order_status` (`status`, `label`) VALUES ('irc_failed_threed_secure', 'Iridiumcorp - Failed 3D Secure');
app/design/adminhtml/base/default/template/tpg/form.phtml CHANGED
@@ -16,13 +16,13 @@
16
  <li>
17
  <div class="input-box">
18
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
19
- <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
20
  </div>
21
  </li>
22
  <li>
23
  <div class="input-box">
24
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
25
- <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="required-entry input-text" value=""/>
26
  </div>
27
  </li>
28
  <li>
@@ -71,13 +71,13 @@
71
  <li>
72
  <div class="input-box">
73
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
74
- <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
75
  </div>
76
  </li>
77
  <li>
78
  <div class="input-box">
79
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
80
- <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" style="width:50px;" value=""/></div>
81
  &nbsp;
82
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
83
  </div>
16
  <li>
17
  <div class="input-box">
18
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
19
+ <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="input-text required-entry validate-length maximum-length-100" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
20
  </div>
21
  </li>
22
  <li>
23
  <div class="input-box">
24
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
25
+ <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="input-text required-entry validate-digits validate-length maximum-length-20" value=""/>
26
  </div>
27
  </li>
28
  <li>
71
  <li>
72
  <div class="input-box">
73
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
74
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-digits validate-length maximum-length-2" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
75
  </div>
76
  </li>
77
  <li>
78
  <div class="input-box">
79
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
80
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="input-text required-entry validate-digits validate-length minimum-length-3 maximum-length-4" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" style="width:50px;" value=""/></div>
81
  &nbsp;
82
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
83
  </div>
app/design/adminhtml/base/default/template/tpg/info.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
- <?php echo $this->__('You will be redirected to a secure payment page'); ?>
5
  <?php } else {?>
6
- <?php echo $this->__('No card information is available'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
+ <?php echo $this->__('Iridiumcorp Hosted Payment'); ?>
5
  <?php } else {?>
6
+ <?php echo $this->__('Iridiumcorp Transparent Redirect'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
app/design/adminhtml/default/default/template/tpg/form.phtml CHANGED
@@ -16,13 +16,13 @@
16
  <li>
17
  <div class="input-box">
18
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
19
- <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
20
  </div>
21
  </li>
22
  <li>
23
  <div class="input-box">
24
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
25
- <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="required-entry input-text" value=""/>
26
  </div>
27
  </li>
28
  <li>
@@ -71,13 +71,13 @@
71
  <li>
72
  <div class="input-box">
73
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
74
- <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" style="width:50px;" value="" /></div>
75
  </div>
76
  </li>
77
  <li>
78
  <div class="input-box">
79
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
80
- <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" style="width:50px;" value=""/></div>
81
  &nbsp;
82
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
83
  </div>
16
  <li>
17
  <div class="input-box">
18
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
19
+ <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="input-text required-entry validate-length maximum-length-100" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
20
  </div>
21
  </li>
22
  <li>
23
  <div class="input-box">
24
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
25
+ <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="input-text required-entry validate-digits validate-length maximum-length-20" value=""/>
26
  </div>
27
  </li>
28
  <li>
71
  <li>
72
  <div class="input-box">
73
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
74
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-digits validate-length maximum-length-2" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" style="width:50px;" value="" /></div>
75
  </div>
76
  </li>
77
  <li>
78
  <div class="input-box">
79
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
80
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="input-text required-entry validate-digits validate-length minimum-length-3 maximum-length-4" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" style="width:50px;" value=""/></div>
81
  &nbsp;
82
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
83
  </div>
app/design/adminhtml/default/default/template/tpg/info.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
- <?php echo $this->__('You will be redirected to a secure payment page'); ?>
5
  <?php } else {?>
6
- <?php echo $this->__('No card information is available'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
+ <?php echo $this->__('Iridiumcorp Hosted Payment'); ?>
5
  <?php } else {?>
6
+ <?php echo $this->__('Iridiumcorp Transparent Redirect'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
app/design/frontend/base/default/template/tpg/form.phtml CHANGED
@@ -19,13 +19,13 @@
19
  <li>
20
  <div class="input-box">
21
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
22
- <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
23
  </div>
24
  </li>
25
  <li>
26
  <div class="input-box">
27
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
28
- <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="required-entry input-text" value=""/>
29
  </div>
30
  </li>
31
  <li>
@@ -74,13 +74,13 @@
74
  <li>
75
  <div class="input-box">
76
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
77
- <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
78
  </div>
79
  </li>
80
  <li>
81
  <div class="input-box">
82
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
83
- <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="required-entry input-text" style="width:50px;" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" value=""/></div>
84
  &nbsp;
85
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
86
  </div>
19
  <li>
20
  <div class="input-box">
21
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
22
+ <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="input-text required-entry validate-length maximum-length-100" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
23
  </div>
24
  </li>
25
  <li>
26
  <div class="input-box">
27
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
28
+ <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="input-text required-entry validate-digits validate-length maximum-length-20" value=""/>
29
  </div>
30
  </li>
31
  <li>
74
  <li>
75
  <div class="input-box">
76
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
77
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-digits validate-length maximum-length-2" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
78
  </div>
79
  </li>
80
  <li>
81
  <div class="input-box">
82
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
83
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="input-text required-entry validate-digits validate-length minimum-length-3 maximum-length-4" style="width:50px;" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" value=""/></div>
84
  &nbsp;
85
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
86
  </div>
app/design/frontend/base/default/template/tpg/info.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
- <?php echo $this->__('You will be redirected to a secure payment page'); ?>
5
  <?php } else {?>
6
- <?php echo $this->__('No card information is available'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
+ <?php echo $this->__('Iridiumcorp Hosted Payment'); ?>
5
  <?php } else {?>
6
+ <?php echo $this->__('Iridiumcorp Transparent Redirect'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
app/design/frontend/default/default/template/tpg/form.phtml CHANGED
@@ -19,13 +19,13 @@
19
  <li>
20
  <div class="input-box">
21
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
22
- <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="required-entry input-text" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
23
  </div>
24
  </li>
25
  <li>
26
  <div class="input-box">
27
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
28
- <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="required-entry input-text" value=""/>
29
  </div>
30
  </li>
31
  <li>
@@ -74,13 +74,13 @@
74
  <li>
75
  <div class="input-box">
76
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
77
- <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
78
  </div>
79
  </li>
80
  <li>
81
  <div class="input-box">
82
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
83
- <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="required-entry input-text" style="width:50px;" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" value=""/></div>
84
  &nbsp;
85
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
86
  </div>
19
  <li>
20
  <div class="input-box">
21
  <label for="<?php echo $_code; ?>_cc_owner"><?php echo $this->__('Name On Card') ?> <span class="required">*</span></label><br/>
22
+ <input type="text" title="<?php echo $this->__('Name On Card') ?>" class="input-text required-entry validate-length maximum-length-100" id="<?php echo $_code; ?>_cc_owner" name="payment<?php echo $fieldCode; ?>[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>"/>
23
  </div>
24
  </li>
25
  <li>
26
  <div class="input-box">
27
  <label for="<?php echo $_code; ?>_cc_number"><?php echo $this->__('Card Number') ?> <span class="required">*</span></label><br/>
28
+ <input type="text" id="<?php echo $_code; ?>_cc_number" name="payment<?php echo $fieldCode; ?>[cc_number]" title="<?php echo $this->__('Card Number') ?>" class="input-text required-entry validate-digits validate-length maximum-length-20" value=""/>
29
  </div>
30
  </li>
31
  <li>
74
  <li>
75
  <div class="input-box">
76
  <label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
77
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-digits validate-length maximum-length-2" style="width:50px;" id="<?php echo $_code ?>_cc_ss_issue" name="payment<?php echo $fieldCode; ?>[cc_ss_issue]" value="" /></div>
78
  </div>
79
  </li>
80
  <li>
81
  <div class="input-box">
82
  <label for="<?php echo $_code; ?>_cc_cid"><?php echo $this->__('CV2') ?> <span class="required">*</span></label><br/>
83
+ <div class="v-fix"><input type="text" title="<?php echo $this->__('CV2') ?>" class="input-text required-entry validate-digits validate-length minimum-length-3 maximum-length-4" style="width:50px;" id="<?php echo $_code; ?>_cc_cid" name="payment<?php echo $fieldCode; ?>[cc_cid]" value=""/></div>
84
  &nbsp;
85
  <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
86
  </div>
app/design/frontend/default/default/template/tpg/info.phtml CHANGED
@@ -1,9 +1,9 @@
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
- <?php echo $this->__('You will be redirected to a secure payment page'); ?>
5
  <?php } else {?>
6
- <?php echo $this->__('No card information is available'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
1
  <?php $direct = Mage::getModel('tpg/direct'); ?>
2
  <?php if ($direct->getConfigData('mode') != Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_DIRECT_API) {?>
3
  <?php if ($direct->getConfigData('mode') == Iridiumcorp_Tpg_Model_Source_PaymentMode::PAYMENT_MODE_HOSTED_PAYMENT_FORM) {?>
4
+ <?php echo $this->__('Iridiumcorp Hosted Payment'); ?>
5
  <?php } else {?>
6
+ <?php echo $this->__('Iridiumcorp Transparent Redirect'); ?>
7
  <?php }?>
8
  <?php } else {?>
9
  <?php if($_info = $this->getInfo()): ?>
package.xml CHANGED
@@ -1,19 +1,21 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iridiumcorp_Tpg</name>
4
- <version>1.12.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Iridiumcorp payment extension compatible with Magento v 1.3, 1.4, 1.5</summary>
10
  <description>Fully supports 3D secure transactions. Also supports all of the integration methods provided by Iridiumcorp.</description>
11
- <notes>Added CrossReference to each transaction stored in the additional_data column of the sales_flat_order_payment table.&#xD;
12
- Added SQL script to create custom order statuses for installations under Magento v1.5 and above.</notes>
13
- <authors><author><name>benjib98</name><user>auto-converted</user><email>support@iridiumcorp.co.uk</email></author></authors>
14
- <date>2011-04-04</date>
15
- <time>16:49:32</time>
16
- <contents><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="images"><file name="iridium_corporation.jpg" hash="589faaa1b7e80b32a425175ecfc3b455"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="images"><file name="iridium_corporation.jpg" hash="589faaa1b7e80b32a425175ecfc3b455"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="769856c926b394465359ac1a5d66e189"/><file name="info.phtml" hash="3164afadd87c4811b5f7d0879537f10e"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="b53f59851a6b8c7ec727fb4734837b34"/><file name="info.phtml" hash="3164afadd87c4811b5f7d0879537f10e"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="d6a451b03746c92bf1c4f2d827d66e79"/><file name="info.phtml" hash="7d72d07f3afa018d0402219e50573439"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="a24df4cbcb6bfba8269facd75a3247be"/><file name="info.phtml" hash="7d72d07f3afa018d0402219e50573439"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iridiumcorp_All.xml" hash="f1a85eaa7631af1906f461b662519732"/></dir></target><target name="magelocal"><dir name="Iridiumcorp"><dir name="Tpg"><dir name="Block"><file name="Error.php" hash="905367210beb53a0bc68dc6033e24127"/><file name="Form.php" hash="4b1d51aa84982486f3139510c41a221a"/><file name="Info.php" hash="f88445c4880bfe14914252bc76b6fc28"/><file name="Redirect.php" hash="a91a8a8f8b5ad887ed2cdd8d52732b8b"/><file name="Threedsecure.php" hash="5e753e1e1bbf0ada18f7292d4031da97"/></dir><dir name="controllers"><file name="PaymentController.php" hash="397c199299971205fca325a4607920ac"/></dir><dir name="etc"><file name="config.xml" hash="a22141f14f4b641de6088d0ead20ba49"/><file name="system.xml" hash="13531b8280be72392ae8abbd47f00adf"/></dir><dir name="Helper"><file name="Data.php" hash="a72fba87e718c94d993a57199e20ca96"/></dir><dir name="Model"><dir name="Common"><dir name="ThePaymentGateway"><file name="PaymentSystem.php" hash="4ad38bdb85f865e967153d9f253390cd"/><file name="SOAP.php" hash="504dcb0cb7c60c134b25652881349cc3"/><file name="TPG_Common.php" hash="df1033ef855c7e0e715076a105acb84a"/></dir><file name="GlobalErrors.php" hash="a9c7bab60ebfe87967c794194e1e7208"/><file name="ISOCountries.php" hash="fc63d76fbe25458ba351f114782074cb"/><file name="ISOCurrencies.php" hash="89ac1e124e89c0713ef43a0cf6dd0e2b"/><file name="PaymentFormHelper.php" hash="d1a9cb006cafdb13c2d368620630aaf3"/></dir><dir name="Source"><file name="HashMethod.php" hash="36d7fb4fc762feae459f0e67d51006f4"/><file name="OrderStatus.php" hash="95eb926db39d4afeb26784a9396f7b18"/><file name="PaymentAction.php" hash="bd8dc40852b9ff8c80c08fc01f35a988"/><file name="PaymentMode.php" hash="6849defade8a7da4cfaeff3227ae5b83"/><file name="ResultDeliveryMethod.php" hash="05f3806f2ff4bd5b1568bfb1681b2242"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="d75ce704c7f0161f0bea4aa780679af8"/></dir></dir></dir><file name="Direct.php" hash="19664be15d9201da0e50b89a5366cd6a"/><file name="Request.php" hash="a96e462ed3c1882048ea45f2c3a6662c"/></dir><dir name="sql"><dir name="iridiumcorp_tpg_setup"><file name="mysql4-install-0.1.0.php" hash="c2b17158be0b10b708ed10e585827785"/></dir></dir></dir><dir name="Checkout"><dir name="Block"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="47de7ef027476c184a01f6c249a56065"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="aaa95b6e1d6e145940bf9ba9bbe1dc0f"/></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="8d4eba732d98062a7a326cc2b0102b9b"/></dir></dir></dir><dir name="Sales"><dir name="etc"><file name="config.xml" hash="6e5a6db08b9bbaf959ec31a20ec5ffc2"/></dir><dir name="Model"><dir name="Order"><file name="Invoice.php" hash="1d4318c7b307f40b4a208dcb116fa14b"/><file name="Payment.php" hash="cd56b85013bbae52bb9bfe1984721045"/></dir><dir name="Service"><file name="Quote.php" hash="d1b341b13a74ea6db2b87f098b4caf9a"/></dir><file name="Order.php" hash="a57c4bd661dbc322d5bd18aa2f51dd67"/></dir></dir></dir></target></contents>
 
 
17
  <compatible/>
18
  <dependencies/>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iridiumcorp_Tpg</name>
4
+ <version>1.12.4</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Iridiumcorp payment extension compatible with Magento v 1.3, 1.4 and 1.5</summary>
10
  <description>Fully supports 3D secure transactions. Also supports all of the integration methods provided by Iridiumcorp.</description>
11
+ <notes>The following bugs are fixed:
12
+ - incorrect/missing validation on the payment form
13
+ - cart is empty after failed payment
14
+ - incorrect Payment Method wording in the confirmation email</notes>
15
+ <authors><author><name>iridium.support</name><user>auto-converted</user><email>support@iridiumcorp.co.uk</email></author></authors>
16
+ <date>2011-05-31</date>
17
+ <time>12:06:14</time>
18
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="8b0d05b93432af9f2ea43bb1796e30de"/><file name="info.phtml" hash="38bfb7011b9cb1b3f48fa1ed3ea8b1e7"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="b0838917ecb3a7d1167dd94c10981c9f"/><file name="info.phtml" hash="38bfb7011b9cb1b3f48fa1ed3ea8b1e7"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="67bafa692aaf8f50ea441c239ea9cbdc"/><file name="info.phtml" hash="e9011580324f811d71aeb8c0b0f64734"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="1a31dba428e0952e8827918962805e4b"/><file name="info.phtml" hash="e9011580324f811d71aeb8c0b0f64734"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="iridium_corporation.jpg" hash="589faaa1b7e80b32a425175ecfc3b455"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><file name="iridium_corporation.jpg" hash="589faaa1b7e80b32a425175ecfc3b455"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Iridiumcorp"><dir name="Checkout"><dir name="Block"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="47de7ef027476c184a01f6c249a56065"/></dir></dir></dir><dir name="etc"><file name="config.xml" hash="aaa95b6e1d6e145940bf9ba9bbe1dc0f"/></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="8d4eba732d98062a7a326cc2b0102b9b"/></dir></dir></dir><dir name="Sales"><dir name="etc"><file name="config.xml" hash="6e5a6db08b9bbaf959ec31a20ec5ffc2"/></dir><dir name="Model"><dir name="Order"><file name="Invoice.php" hash="1d4318c7b307f40b4a208dcb116fa14b"/><file name="Payment.php" hash="cd56b85013bbae52bb9bfe1984721045"/></dir><dir name="Service"><file name="Quote.php" hash="fbeac3e28f152fe6ee0419620188bab1"/></dir><file name="Order.php" hash="a57c4bd661dbc322d5bd18aa2f51dd67"/></dir></dir><dir name="Tpg"><dir name="Block"><file name="Error.php" hash="905367210beb53a0bc68dc6033e24127"/><file name="Form.php" hash="4b1d51aa84982486f3139510c41a221a"/><file name="Info.php" hash="f88445c4880bfe14914252bc76b6fc28"/><file name="Redirect.php" hash="a91a8a8f8b5ad887ed2cdd8d52732b8b"/><file name="Threedsecure.php" hash="5e753e1e1bbf0ada18f7292d4031da97"/></dir><dir name="controllers"><file name="PaymentController.php" hash="397c199299971205fca325a4607920ac"/></dir><dir name="etc"><file name="config.xml" hash="a22141f14f4b641de6088d0ead20ba49"/><file name="system.xml" hash="13531b8280be72392ae8abbd47f00adf"/></dir><dir name="Helper"><file name="Data.php" hash="a72fba87e718c94d993a57199e20ca96"/></dir><dir name="Model"><dir name="Common"><dir name="ThePaymentGateway"><file name="PaymentSystem.php" hash="4ad38bdb85f865e967153d9f253390cd"/><file name="SOAP.php" hash="504dcb0cb7c60c134b25652881349cc3"/><file name="TPG_Common.php" hash="df1033ef855c7e0e715076a105acb84a"/></dir><file name="GlobalErrors.php" hash="a9c7bab60ebfe87967c794194e1e7208"/><file name="ISOCountries.php" hash="fc63d76fbe25458ba351f114782074cb"/><file name="ISOCurrencies.php" hash="89ac1e124e89c0713ef43a0cf6dd0e2b"/><file name="PaymentFormHelper.php" hash="f75b9bcc9c09bd359a24f8e8b2702a07"/></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="d75ce704c7f0161f0bea4aa780679af8"/></dir></dir></dir><dir name="Source"><file name="HashMethod.php" hash="36d7fb4fc762feae459f0e67d51006f4"/><file name="OrderStatus.php" hash="95eb926db39d4afeb26784a9396f7b18"/><file name="PaymentAction.php" hash="bd8dc40852b9ff8c80c08fc01f35a988"/><file name="PaymentMode.php" hash="6849defade8a7da4cfaeff3227ae5b83"/><file name="ResultDeliveryMethod.php" hash="05f3806f2ff4bd5b1568bfb1681b2242"/></dir><file name="Direct.php" hash="1df0ae084d98406931c2f2f78c80154c"/><file name="Request.php" hash="a96e462ed3c1882048ea45f2c3a6662c"/></dir><dir name="sql"><dir name="iridiumcorp_tpg_setup"><file name="mysql4-install-0.1.0.php" hash="6dc82dc94b3b87f2376bf678c4a4abf8"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iridiumcorp_All.xml" hash="f1a85eaa7631af1906f461b662519732"/></dir></target></contents>
19
  <compatible/>
20
  <dependencies/>
21
  </package>