Version Notes
Update to fix issue when the Gateway Password was incorrect
Download this release
Release Info
Developer | IridiumCorp |
Extension | PayVector_Tpg |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/local/PayVector/Tpg/Model/Direct.php +16 -5
- app/design/adminhtml/base/default/template/tpg/form.phtml +23 -21
- app/design/adminhtml/default/default/template/tpg/form.phtml +23 -21
- app/design/frontend/base/default/template/tpg/form.phtml +23 -21
- app/design/frontend/default/default/template/tpg/form.phtml +23 -21
- package.xml +6 -6
- skin/adminhtml/default/default/tpg.js +0 -35
app/code/local/PayVector/Tpg/Model/Direct.php
CHANGED
@@ -1425,17 +1425,28 @@ class PayVector_Tpg_Model_Direct extends Mage_Payment_Model_Method_Abstract
|
|
1425 |
else
|
1426 |
{
|
1427 |
$currentTimestamp = Mage::getSingleton('core/date')->gmtDate();
|
1428 |
-
$gatewayEntryPointsListXML = $todTransactionOutputData->getGatewayEntryPoints()->toXmlString();
|
1429 |
|
1430 |
-
|
1431 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1432 |
|
|
|
1433 |
$szLogMessage = "Transaction could not be completed for OrderID: " . $szOrderID . ". Result details: ";
|
1434 |
$szNotificationMessage = 'Payment Processor Response: ' . $troTransactionResultObject->getMessage();
|
1435 |
-
$szCrossReference = $todTransactionOutputData->getCrossReference();
|
1436 |
/* serve out the CrossReference as the TransactionId - this need to be done to enable the "Refund" button
|
1437 |
in the Magento CreditMemo internal refund mechanism */
|
1438 |
-
$payment->setTransactionId($szCrossReference);
|
1439 |
switch($troTransactionResultObject->getStatusCode())
|
1440 |
{
|
1441 |
case 0:
|
1425 |
else
|
1426 |
{
|
1427 |
$currentTimestamp = Mage::getSingleton('core/date')->gmtDate();
|
|
|
1428 |
|
1429 |
+
if (!empty($todTransactionOutputData))
|
1430 |
+
{
|
1431 |
+
$szCrossReference = $todTransactionOutputData->getCrossReference();
|
1432 |
+
$payment->setTransactionId($szCrossReference);
|
1433 |
+
|
1434 |
+
$gatewayEntryPoints = $todTransactionOutputData->getGatewayEntryPoints();
|
1435 |
+
|
1436 |
+
if (!empty($gatewayEntryPoints))
|
1437 |
+
{
|
1438 |
+
$gatewayEntryPointsListXML = $todTransactionOutputData->getGatewayEntryPoints()->toXmlString();
|
1439 |
+
|
1440 |
+
$gatewayEntryPointsTable = Mage::getResourceModel('tpg/gatewayentrypoints');
|
1441 |
+
$gatewayEntryPointsTable->saveEntryPoints($gatewayEntryPointsListXML, $currentTimestamp);
|
1442 |
+
}
|
1443 |
+
}
|
1444 |
|
1445 |
+
|
1446 |
$szLogMessage = "Transaction could not be completed for OrderID: " . $szOrderID . ". Result details: ";
|
1447 |
$szNotificationMessage = 'Payment Processor Response: ' . $troTransactionResultObject->getMessage();
|
|
|
1448 |
/* serve out the CrossReference as the TransactionId - this need to be done to enable the "Refund" button
|
1449 |
in the Magento CreditMemo internal refund mechanism */
|
|
|
1450 |
switch($troTransactionResultObject->getStatusCode())
|
1451 |
{
|
1452 |
case 0:
|
app/design/adminhtml/base/default/template/tpg/form.phtml
CHANGED
@@ -25,6 +25,29 @@
|
|
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>
|
29 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
30 |
<div class="input-box">
|
@@ -47,27 +70,6 @@
|
|
47 |
</div>
|
48 |
</div>
|
49 |
</li>
|
50 |
-
<li>
|
51 |
-
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
52 |
-
<div class="input-box">
|
53 |
-
<div class="v-fix">
|
54 |
-
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
55 |
-
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
56 |
-
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
57 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
58 |
-
<?php endforeach ?>
|
59 |
-
</select>
|
60 |
-
</div>
|
61 |
-
<div class="v-fix">
|
62 |
-
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
63 |
-
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
64 |
-
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
65 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
66 |
-
<?php endforeach ?>
|
67 |
-
</select>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
-
</li>
|
71 |
<li>
|
72 |
<div class="input-box">
|
73 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></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>
|
29 |
+
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
30 |
+
<div class="input-box">
|
31 |
+
<div class="v-fix">
|
32 |
+
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
33 |
+
<option value=""></option>
|
34 |
+
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
35 |
+
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
36 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
37 |
+
<?php endforeach ?>
|
38 |
+
</select>
|
39 |
+
</div>
|
40 |
+
<div class="v-fix">
|
41 |
+
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
42 |
+
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
43 |
+
<option value=""></option>
|
44 |
+
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
45 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
46 |
+
<?php endforeach ?>
|
47 |
+
</select>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
<li>
|
52 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
53 |
<div class="input-box">
|
70 |
</div>
|
71 |
</div>
|
72 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<li>
|
74 |
<div class="input-box">
|
75 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
app/design/adminhtml/default/default/template/tpg/form.phtml
CHANGED
@@ -25,6 +25,29 @@
|
|
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>
|
29 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
30 |
<div class="input-box">
|
@@ -47,27 +70,6 @@
|
|
47 |
</div>
|
48 |
</div>
|
49 |
</li>
|
50 |
-
<li>
|
51 |
-
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
52 |
-
<div class="input-box">
|
53 |
-
<div class="v-fix">
|
54 |
-
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
55 |
-
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
56 |
-
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
57 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
58 |
-
<?php endforeach ?>
|
59 |
-
</select>
|
60 |
-
</div>
|
61 |
-
<div class="v-fix">
|
62 |
-
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
63 |
-
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
64 |
-
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
65 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
66 |
-
<?php endforeach ?>
|
67 |
-
</select>
|
68 |
-
</div>
|
69 |
-
</div>
|
70 |
-
</li>
|
71 |
<li>
|
72 |
<div class="input-box">
|
73 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></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>
|
29 |
+
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
30 |
+
<div class="input-box">
|
31 |
+
<div class="v-fix">
|
32 |
+
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
33 |
+
<option value=""></option>
|
34 |
+
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
35 |
+
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
36 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
37 |
+
<?php endforeach ?>
|
38 |
+
</select>
|
39 |
+
</div>
|
40 |
+
<div class="v-fix">
|
41 |
+
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
42 |
+
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
43 |
+
<option value=""></option>
|
44 |
+
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
45 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
46 |
+
<?php endforeach ?>
|
47 |
+
</select>
|
48 |
+
</div>
|
49 |
+
</div>
|
50 |
+
</li>
|
51 |
<li>
|
52 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiration Date') ?> <span class="required">*</span></label><br/>
|
53 |
<div class="input-box">
|
70 |
</div>
|
71 |
</div>
|
72 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<li>
|
74 |
<div class="input-box">
|
75 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
app/design/frontend/base/default/template/tpg/form.phtml
CHANGED
@@ -85,6 +85,29 @@ else:
|
|
85 |
<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 validate-cc-number" value=""/>
|
86 |
</div>
|
87 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
<li class="new_card">
|
89 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiry Date') ?> <span class="required">*</span></label><br/>
|
90 |
<div class="input-box">
|
@@ -107,27 +130,6 @@ else:
|
|
107 |
</div>
|
108 |
</div>
|
109 |
</li>
|
110 |
-
<li class="new_card">
|
111 |
-
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
112 |
-
<div class="input-box">
|
113 |
-
<div class="v-fix">
|
114 |
-
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
115 |
-
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
116 |
-
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
117 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
118 |
-
<?php endforeach ?>
|
119 |
-
</select>
|
120 |
-
</div>
|
121 |
-
<div class="v-fix" style="padding-left:5px;">
|
122 |
-
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
123 |
-
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
124 |
-
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
125 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
126 |
-
<?php endforeach ?>
|
127 |
-
</select>
|
128 |
-
</div>
|
129 |
-
</div>
|
130 |
-
</li>
|
131 |
<li class="new_card">
|
132 |
<div class="input-box">
|
133 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
85 |
<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 validate-cc-number" value=""/>
|
86 |
</div>
|
87 |
</li>
|
88 |
+
<li class="new_card">
|
89 |
+
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
90 |
+
<div class="input-box">
|
91 |
+
<div class="v-fix">
|
92 |
+
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
93 |
+
<option value=""></option>
|
94 |
+
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
95 |
+
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
96 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
97 |
+
<?php endforeach ?>
|
98 |
+
</select>
|
99 |
+
</div>
|
100 |
+
<div class="v-fix" style="padding-left:5px;">
|
101 |
+
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
102 |
+
<option value=""></option>
|
103 |
+
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
104 |
+
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
105 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
106 |
+
<?php endforeach ?>
|
107 |
+
</select>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</li>
|
111 |
<li class="new_card">
|
112 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiry Date') ?> <span class="required">*</span></label><br/>
|
113 |
<div class="input-box">
|
130 |
</div>
|
131 |
</div>
|
132 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
<li class="new_card">
|
134 |
<div class="input-box">
|
135 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
app/design/frontend/default/default/template/tpg/form.phtml
CHANGED
@@ -31,6 +31,29 @@
|
|
31 |
<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 validate-cc-number" value=""/>
|
32 |
</div>
|
33 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
<li>
|
35 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiry Date') ?> <span class="required">*</span></label><br/>
|
36 |
<div class="input-box">
|
@@ -53,27 +76,6 @@
|
|
53 |
</div>
|
54 |
</div>
|
55 |
</li>
|
56 |
-
<li>
|
57 |
-
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
58 |
-
<div class="input-box">
|
59 |
-
<div class="v-fix">
|
60 |
-
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
61 |
-
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
62 |
-
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
63 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
64 |
-
<?php endforeach ?>
|
65 |
-
</select>
|
66 |
-
</div>
|
67 |
-
<div class="v-fix">
|
68 |
-
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
69 |
-
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
70 |
-
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
71 |
-
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
72 |
-
<?php endforeach ?>
|
73 |
-
</select>
|
74 |
-
</div>
|
75 |
-
</div>
|
76 |
-
</li>
|
77 |
<li>
|
78 |
<div class="input-box">
|
79 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
31 |
<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 validate-cc-number" value=""/>
|
32 |
</div>
|
33 |
</li>
|
34 |
+
<li>
|
35 |
+
<label for="<?php echo $_code; ?>_cc_ss_start_month"><?php echo $this->__('Start Date') ?></label><br />
|
36 |
+
<div class="input-box">
|
37 |
+
<div class="v-fix">
|
38 |
+
<select id="<?php echo $_code; ?>_cc_ss_start_month" name="payment<?php echo $fieldCode; ?>[cc_ss_start_month]" class="month">
|
39 |
+
<option value=""></option>
|
40 |
+
<?php $_ccStartMonth = $this->getInfoData('cc_ss_start_month') ?>
|
41 |
+
<?php foreach ($this->getCcStartMonths() as $k=>$v): ?>
|
42 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
43 |
+
<?php endforeach ?>
|
44 |
+
</select>
|
45 |
+
</div>
|
46 |
+
<div class="v-fix">
|
47 |
+
<?php $_ccStartYear = $this->getInfoData('cc_ss_start_year') ?>
|
48 |
+
<select id="<?php echo $_code ?>_cc_ss_start_year" name="payment<?php echo $fieldCode; ?>[cc_ss_start_year]" class="year">
|
49 |
+
<option value=""></option>
|
50 |
+
<?php foreach ($this->getCcStartYears() as $k=>$v): ?>
|
51 |
+
<option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccStartYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
|
52 |
+
<?php endforeach ?>
|
53 |
+
</select>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
<li>
|
58 |
<label for="<?php echo $_code; ?>_expiration"><?php echo $this->__('Expiry Date') ?> <span class="required">*</span></label><br/>
|
59 |
<div class="input-box">
|
76 |
</div>
|
77 |
</div>
|
78 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
<li>
|
80 |
<div class="input-box">
|
81 |
<label for="<?php echo $_code; ?>_cc_ss_issue"><?php echo $this->__('Issue Number') ?></label><br />
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>PayVector_Tpg</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>PayVector payment extension compatible with Magento v 1.3, 1.4, 1.5, 1.6, 1.7, 1.8 and 1.9</summary>
|
10 |
<description>Fully supports 3D secure and CrossReference transactions. Also supports all of the integration methods provided by PayVector.</description>
|
11 |
-
<notes>Update to fix
|
12 |
<authors><author><name>PayVector</name><user>IridiumCorp</user><email>support@iridiumcorp.net</email></author></authors>
|
13 |
-
<date>2014-
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>PayVector_Tpg</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>PayVector payment extension compatible with Magento v 1.3, 1.4, 1.5, 1.6, 1.7, 1.8 and 1.9</summary>
|
10 |
<description>Fully supports 3D secure and CrossReference transactions. Also supports all of the integration methods provided by PayVector.</description>
|
11 |
+
<notes>Update to fix issue when the Gateway Password was incorrect</notes>
|
12 |
<authors><author><name>PayVector</name><user>IridiumCorp</user><email>support@iridiumcorp.net</email></author></authors>
|
13 |
+
<date>2014-11-18</date>
|
14 |
+
<time>17:51:15</time>
|
15 |
+
<contents><target name="magelocal"><dir name="PayVector"><dir name="Checkout"><dir name="Block"><dir name="Onepage"><dir name="Payment"><file name="Methods.php" hash="13be37e32795a710327ada3dfc91a22f"/></dir></dir></dir><dir name="Model"><dir name="Type"><file name="Onepage.php" hash="7c7c4a2ec9004b142f7094d93a456ba7"/></dir></dir><dir name="etc"><file name="config.xml" hash="2a388d8d243e5e9ed3954bd268ec084f"/></dir></dir><dir name="Sales"><dir name="Model"><dir name="Order"><file name="Invoice.php" hash="de5bb58bbb153c63cc60169f23461f6b"/><file name="Payment.php" hash="6cee2578e3d43006f8cad756e4ef43ce"/></dir><file name="Order.php" hash="c7d5bc41ac7e9e59d6fdb725acda4f58"/><dir name="Service"><file name="Quote.php" hash="b4a316a007255d8c3a4752daaf38b725"/></dir></dir><dir name="etc"><file name="config.xml" hash="bc7c6ba07a063b64cbc7917d0611b5e0"/></dir></dir><dir name="Tpg"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="Payment.php" hash="eaff6b529038745549a714edb92ea1df"/></dir></dir></dir><file name="Error.php" hash="a1e3040eb95d6fcdf3855d77f42fbde6"/><file name="Form.php" hash="4f537f6a45a1a95f7cf27c45739ee9ba"/><file name="Info.php" hash="0eac4e7b36a800224852f2a445ba7ae6"/><file name="Redirect.php" hash="9e1577b80807592f56e62db6f21cfe3f"/><file name="Threedsecure.php" hash="2b25adce59c4ea485caa7b49499bfc32"/></dir><dir name="Helper"><file name="Data.php" hash="bae2102ea62785f6145ecfd00a5f2fb4"/></dir><dir name="Model"><dir name="Common"><file name="GlobalErrors.php" hash="09dd5e1cc01a6e4265d85cc903b91284"/><file name="ISOCountries.php" hash="2b6447781fb33853dd7447916fd98829"/><file name="ISOCurrencies.php" hash="4450b69c528863b95206bbcbd1360ede"/><file name="PaymentFormHelper.php" hash="24048b009ff8ea6382ea2bb12e622867"/><dir name="ThePaymentGateway"><file name="PaymentSystem.php" hash="246422bf2e2e0d20fb0f35532f8896d3"/><file name="SOAP.php" hash="860646be97216087262b11c5818fcec3"/><file name="TPG_Common.php" hash="4ef394ae6384e015e8c197a58106f2c7"/><file name="cacert.pem" hash="36c2e174ffa1e4739e5ce879d660dd6a"/></dir></dir><file name="Direct.php" hash="9c993dd385cd8e1719f88e091d5ec0cd"/><file name="Gatewayentrypoints.php" hash="f32d905a9b6c9ba8b742e340fc86049f"/><file name="Request.php" hash="75a23ed2d447674c823cfd3cc3602f68"/><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="410116bc6a8d327a2232512c13561c8a"/></dir></dir><dir name="Gatewayentrypoints"><file name="Collection.php" hash="79bb8b43312451d7577c58bf60428366"/></dir><file name="Gatewayentrypoints.php" hash="a5033400ece4a661f0416c577df827b9"/><file name="Setup.php" hash="9a8cbc132f29cd61b82c36aac9d51407"/></dir><dir name="Source"><file name="HashMethod.php" hash="3077605f52458e6c6d88dc773a228c38"/><file name="OrderStatus.php" hash="95d343f1c2419edbf63847a357ae4076"/><file name="PaymentAction.php" hash="f3444cbbf95ffbcd5bc845110fd8ac0c"/><file name="PaymentMode.php" hash="671768ed91f1ca1178b67b8afd269ca9"/><file name="ResultDeliveryMethod.php" hash="7b6088293650fcf8bcb9aa23b2be1671"/></dir></dir><dir name="controllers"><file name="PaymentController.php" hash="cd40b0031ab96704f1316637045176e0"/></dir><dir name="etc"><file name="config.xml" hash="e563ec1c6df680deb91e4508e8ffe7cb"/><file name="system.xml" hash="0d1f30630d84daba413e4f2c8dd4edc0"/></dir><dir name="sql"><dir name="tpg_setup"><file name="install-0.1.0.php" hash="767431a50e2a891fe7d4adb930df2953"/><file name="mysql4-install-0.1.0.php" hash="9b478c72f89b327866ec12e7054bcc85"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="payvector.png" hash="e61e1555ca69863a79afb59382e3d16f"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><file name="payvector.png" hash="e61e1555ca69863a79afb59382e3d16f"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="tpg.js" hash=""/></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="78974743b3c46b3c1729897097bcfaf5"/><file name="info.phtml" hash="990a20f78e5085db5fcc792028b75d99"/></dir><dir name="payment"><dir name="info"><file name="cc_tpg.phtml" hash="f0182a45341820f6ce2d1738e67f5399"/></dir></dir></dir><dir name="layout"><file name="tpg.xml" hash="5327d6e72f7bd8aee9bc460cc9550b21"/></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="884969288a32838cca11eadc08023c84"/><file name="info.phtml" hash="990a20f78e5085db5fcc792028b75d99"/></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="8beb8e973a662968947af96f88f1467f"/><file name="info.phtml" hash="b64d8592a41455f2c5fd011db6d15a21"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="template"><dir name="tpg"><file name="form.phtml" hash="db5c7601edb7035a2fcb4ac7011a6f8e"/><file name="info.phtml" hash="512b9cee213170fb226cd2bf59daa761"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PayVector_All.xml" hash="a2a4129d302737eaf0dce99ac3dbbedc"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><extension><name>SimpleXML</name><min></min><max></max></extension><extension><name>curl</name><min></min><max></max></extension></required></dependencies>
|
18 |
</package>
|
skin/adminhtml/default/default/tpg.js
DELETED
@@ -1,35 +0,0 @@
|
|
1 |
-
function IRC_runCrossReferenceTransaction(szActionURL, szOrderID, szCrossReference, szTransactionType)
|
2 |
-
{
|
3 |
-
var szConfirmMessage;
|
4 |
-
var szText;
|
5 |
-
|
6 |
-
if (szActionURL == "")
|
7 |
-
{
|
8 |
-
alert("Error: Invalid action URL");
|
9 |
-
}
|
10 |
-
|
11 |
-
if (szTransactionType == "VOID")
|
12 |
-
{
|
13 |
-
szConfirmMessage = "Are you sure you would like to void this payment?";
|
14 |
-
szText = "<ul class='messages'><li class='success-msg'><ul><li>Payment successfully voided</li></ul></li></ul>";
|
15 |
-
}
|
16 |
-
else if (szTransactionType == "COLLECTION")
|
17 |
-
{
|
18 |
-
szConfirmMessage = "Are you sure you would like to collect this authorized payment?";
|
19 |
-
szText = "<ul class='messages'><li class='success-msg'><ul><li>Authorized payment successfully collected</li></ul></li></ul>";
|
20 |
-
}
|
21 |
-
else
|
22 |
-
{
|
23 |
-
alert("Error: Unknown transaction type to run for this action: " + szTransactionType);
|
24 |
-
return;
|
25 |
-
}
|
26 |
-
|
27 |
-
if (confirm(szConfirmMessage))
|
28 |
-
{
|
29 |
-
new Ajax.Request(szActionURL,
|
30 |
-
{ method: "post",
|
31 |
-
parameters: { OrderID: szOrderID, CrossReference: szCrossReference },
|
32 |
-
onSuccess: function (result) { var szMessage = result.responseText; if (szMessage == "0") { location.href = location.href; /* cheating with displaying a success message before the page is refreshed */ $('messages').update(szText); } else { alert(szMessage); } }
|
33 |
-
});
|
34 |
-
}
|
35 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|