MageBase_DpsPaymentExpress - Version 1.1.1

Version Notes

Fix missing files

Download this release

Release Info

Developer Magento Core Team
Extension MageBase_DpsPaymentExpress
Version 1.1.1
Comparing to
See all releases


Code changes from version 1.1.0 to 1.1.1

app/design/adminhtml/default/default/template/magebase/dps/pxpay/form.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+
23
+ ?>
24
+ <ul id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
25
+ <li><?php echo Mage::helper('payment')->__('Please take payment through the DPS website and manually invoice the order in Magento.') ?>
26
+ </li>
27
+ </ul>
app/design/adminhtml/default/default/template/magebase/dps/pxpay/info.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
24
+ <table width="100%" border="0">
25
+ <tr><td width="45%" class="label"><?php echo $this->__('Card Type') ?></td><td><?php echo $this->getAdditionalData('CardName') ?></td>
26
+ <tr><td width="45%" class="label"><?php echo $this->__('Name on Card') ?></td><td><?php echo $this->getAdditionalData('CardHolderName') ?></td>
27
+ <tr><td width="45%" class="label"><?php echo $this->__('Amount Settled') ?></td><td><?php echo $this->getAdditionalData('AmountSettlement') ?></td>
28
+ <tr><td width="45%" class="label"><?php echo $this->__('Settlement Currency') ?></td><td><?php echo $this->getAdditionalData('CurrencySettlement') ?></td>
29
+ </table>
30
+ <p id="magebasedps_txn_click"><a href="#"><span onclick="$$('#magebasedps_txn_details').first().show(); $$('#magebasedps_txn_click').first().hide();return false;">click to view transaction details</span></a</p>
31
+ <div id="magebasedps_txn_details" style="display:none;">
32
+ <table width="100%" border="0">
33
+ <tr><td width="45%" class="label"><?php echo $this->__('CardNumber') ?></td><td><?php echo $this->getAdditionalData('CardNumber') ?></td>
34
+ <tr><td width="45%" class="label"><?php echo $this->__('Authentication Code') ?></td><td><?php echo $this->getAdditionalData('AuthCode') ?></td>
35
+ <tr><td width="45%" class="label"><?php echo $this->__('Transaction Type') ?></td><td><?php echo $this->getAdditionalData('TxnType') ?></td>
36
+ <tr><td width="45%" class="label"><?php echo $this->__('Transaction Id') ?></td><td><?php echo $this->getAdditionalData('TxnId') ?></td>
37
+ <tr><td width="45%" class="label"><?php echo $this->__('DPS Transaction Reference') ?></td><td><?php echo $this->getAdditionalData('DpsTxnRef') ?></td>
38
+ <tr><td width="45%" class="label"><?php echo $this->__('Response Text') ?></td><td><?php echo $this->getAdditionalData('ResponseText') ?></td>
39
+ </table>
40
+ </div>
app/design/adminhtml/default/default/template/magebase/dps/pxpay/pdf/pxpay.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+
23
+ ?>
24
+ <?php echo $this->getMethod()->getTitle() ?>
25
+ {{pdf_row_separator}}
26
+ <?php echo Mage::helper('magebasedps')->__('Card Type') ?>: <?php echo $this->getAdditionalData('CardName') ?>
27
+ {{pdf_row_separator}}
28
+ <?php echo Mage::helper('magebasedps')->__('Name on Card') ?>: <?php echo $this->getAdditionalData('CardHolderName') ?>
29
+ {{pdf_row_separator}}
app/design/adminhtml/default/default/template/magebase/dps/pxpost/form.phtml ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <?php $_code=$this->getMethodCode() ?>
24
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none">
25
+ <li>
26
+ <div class="input-box">
27
+ <label for="<?php echo $_code ?>_cc_type"><?php echo Mage::helper('payment')->__('Credit Card Type') ?> <span class="required">*</span></label><br/>
28
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
29
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
30
+ <option value=""></option>
31
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
32
+ <option value="<?php echo $_typeCode ?>" <?php if($_typeCode==$_ccType): ?>selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
33
+ <?php endforeach ?>
34
+ </select>
35
+ </div>
36
+ </li>
37
+ <li>
38
+ <div class="input-box">
39
+ <label for="<?php echo $_code ?>_cc_number"><?php echo Mage::helper('payment')->__('Credit Card Number') ?> <span class="required">*</span></label><br/>
40
+ <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo Mage::helper('payment')->__('Credit Card Number') ?>" class="input-text validate-cc-number" value="<?php echo $this->getInfoData('cc_number')?>"/>
41
+ </div>
42
+ </li>
43
+ <li>
44
+ <div class="input-box">
45
+ <label for="<?php echo $_code ?>_expiration"><?php echo Mage::helper('payment')->__('Expiration Date') ?> <span class="required">*</span></label><br/>
46
+ <select id="<?php echo $_code ?>_expiration" style="width:140px;" name="payment[cc_exp_month]" class="validate-cc-exp required-entry">
47
+ <?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
48
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
49
+ <option value="<?php echo $k ?>" <?php if($k==$_ccExpMonth): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
50
+ <?php endforeach ?>
51
+ </select>
52
+ <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
53
+ <select id="<?php echo $_code ?>_expiration_yr" style="width:103px;" name="payment[cc_exp_year]" class="required-entry">
54
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
55
+ <option value="<?php echo $k ? $k : '' ?>" <?php if($k==$_ccExpYear): ?>selected="selected"<?php endif ?>><?php echo $v ?></option>
56
+ <?php endforeach ?>
57
+ </select>
58
+ </div>
59
+ </li>
60
+ <?php if($this->hasVerification()): ?>
61
+ <li>
62
+ <div class="input-box">
63
+ <label for="<?php echo $_code ?>_cc_cid"><?php echo Mage::helper('payment')->__('Card Verification Number') ?> <span class="required">*</span></label><br/>
64
+ <input type="text" title="<?php echo Mage::helper('payment')->__('Card Verification Number') ?>" class="required-entry input-text validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" style="width:3em;" value="<?php echo $this->getInfoData('cc_cid')?>"/>
65
+ </div>
66
+ </li>
67
+ <?php endif; ?>
68
+ </ul>
app/design/adminhtml/default/default/template/magebase/dps/pxpost/info.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
24
+ <table width="100%" border="0">
25
+ <tr><td width="45%" class="label"><?php echo $this->__('Card Type') ?></td><td><?php echo $this->getAdditionalData('CardName') ?></td>
26
+ <tr><td width="45%" class="label"><?php echo $this->__('Name on Card') ?></td><td><?php echo $this->getAdditionalData('CardHolderName') ?></td>
27
+ <tr><td width="45%" class="label"><?php echo $this->__('Amount Settled') ?></td><td><?php echo $this->getAdditionalData('Amount') ?></td>
28
+ <tr><td width="45%" class="label"><?php echo $this->__('Settlement Currency') ?></td><td><?php echo $this->getAdditionalData('CurrencyName') ?></td>
29
+ </table>
30
+ <p id="magebasedps_txn_click"><a href="#"><span onclick="$$('#magebasedps_txn_details').first().show(); $$('#magebasedps_txn_click').first().hide();return false;">click to view transaction details</span></a</p>
31
+ <div id="magebasedps_txn_details" style="display:none;">
32
+ <table width="100%" border="0">
33
+ <tr><td width="45%" class="label"><?php echo $this->__('CardNumber') ?></td><td><?php echo $this->getAdditionalData('CardNumber') ?></td>
34
+ <tr><td width="45%" class="label"><?php echo $this->__('Authentication Code') ?></td><td><?php echo $this->getAdditionalData('AuthCode') ?></td>
35
+ <tr><td width="45%" class="label"><?php echo $this->__('Transaction Type') ?></td><td><?php echo $this->getAdditionalData('TxnType') ?></td>
36
+ <tr><td width="45%" class="label"><?php echo $this->__('Transaction Id') ?></td><td><?php echo $this->getAdditionalData('TransactionId') ?></td>
37
+ <tr><td width="45%" class="label"><?php echo $this->__('DPS Transaction Reference') ?></td><td><?php echo $this->getAdditionalData('DpsTxnRef') ?></td>
38
+ <tr><td width="45%" class="label"><?php echo $this->__('Response Text') ?></td><td><?php echo $this->getAdditionalData('ResponseText') ?></td>
39
+ </table>
40
+ </div>
app/design/adminhtml/default/default/template/magebase/dps/pxpost/pdf/pxpost.phtml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <?php echo $this->getMethod()->getTitle() ?>
24
+ {{pdf_row_separator}}
25
+ <?php echo Mage::helper('magebasedps')->__('Card Type') ?>: <?php echo $this->getAdditionalData('CardName') ?>
26
+ {{pdf_row_separator}}
27
+ <?php echo Mage::helper('magebasedps')->__('Name on Card') ?>: <?php echo $this->getAdditionalData('CardHolderName') ?>
28
+ {{pdf_row_separator}}
29
+
app/design/frontend/base/default/template/magebase/dps/pxpay/form.phtml ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <?php $_logos = $this->getLogosToDisplay();?>
24
+ <ul class="form-list" id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none;">
25
+ <li class="dps">
26
+ <div class="dps-text"><?php echo Mage::helper('magebasedps')->__('After clicking Place Order in the next step you will be redirected to the DPS Payment Express website.') ?></div>
27
+ <div class="dps-logos">
28
+ <img src="<?php echo $this->getSkinUrl('images/magebase/dps/dpspxlogo.png'); ?>" alt="" />
29
+ <?php if (count($_logos) > 0): ?>
30
+ <?php foreach($_logos as $_logo): ?>
31
+ <?php if ($_logo) : ?>
32
+ <img src="<?php echo $this->getSkinUrl('images/magebase/dps/'.$_logo); ?>" alt="" />
33
+ <?php endif; ?>
34
+ <?php endforeach ?>
35
+ <?php endif;?>
36
+ </div>
37
+ </li>
38
+ </ul>
app/design/frontend/base/default/template/magebase/dps/pxpay/info.phtml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
24
+ <?php if($this->getAdditionalData('CardName')) :?>
25
+ <table width="100%" border="0">
26
+ <tr><td width="35%"><?php echo $this->__('Card Type') ?></td><td><?php echo $this->getAdditionalData('CardName') ?></td>
27
+ <?php if($this->getAdditionalData('CardHolderName')) :?>
28
+ <tr><td width="35%"><?php echo $this->__('Name on Card') ?></td><td><?php echo $this->getAdditionalData('CardHolderName') ?></td>
29
+ <?php endif;?>
30
+ </table>
31
+ <?php else:?>
32
+ <img src="<?php echo $this->getSkinUrl('images/magebase/dps/dpslogo.png'); ?>" alt="" />
33
+ <?php endif;?>
app/design/frontend/base/default/template/magebase/dps/pxpost/form.phtml ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
19
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
20
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
21
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
22
+ */
23
+ ?>
24
+
25
+ <?php $_code=$this->getMethodCode() ?>
26
+ <?php $_logos = $this->getLogosToDisplay();?>
27
+ <ul class="form-list" id="payment_form_<?php echo $_code ?>" style="display:none;">
28
+ <li>
29
+ <label for="<?php echo $_code ?>_cc_owner" class="required"><em>*</em><?php echo $this->__('Name on Card') ?></label>
30
+ <div class="input-box">
31
+ <input type="text" title="<?php echo $this->__('Name on Card') ?>" class="input-text required-entry" id="<?php echo $_code ?>_cc_owner" name="payment[cc_owner]" value="<?php echo $this->htmlEscape($this->getInfoData('cc_owner')) ?>" />
32
+ </div>
33
+ </li>
34
+ <li>
35
+ <label for="<?php echo $_code ?>_cc_type" class="required"><em>*</em><?php echo $this->__('Credit Card Type') ?></label>
36
+ <div class="input-box">
37
+ <select id="<?php echo $_code ?>_cc_type" name="payment[cc_type]" class="required-entry validate-cc-type-select">
38
+ <option value=""><?php echo $this->__('--Please Select--')?></option>
39
+ <?php $_ccType = $this->getInfoData('cc_type') ?>
40
+ <?php foreach ($this->getCcAvailableTypes() as $_typeCode => $_typeName): ?>
41
+ <option value="<?php echo $_typeCode ?>"<?php if($_typeCode==$_ccType): ?> selected="selected"<?php endif ?>><?php echo $_typeName ?></option>
42
+ <?php endforeach ?>
43
+ </select>
44
+ </div>
45
+ </li>
46
+ <li>
47
+ <label for="<?php echo $_code ?>_cc_number" class="required"><em>*</em><?php echo $this->__('Credit Card Number') ?></label>
48
+ <div class="input-box">
49
+ <input type="text" id="<?php echo $_code ?>_cc_number" name="payment[cc_number]" title="<?php echo $this->__('Credit Card Number') ?>" class="input-text validate-cc-number validate-cc-type" value="" />
50
+ </div>
51
+ </li>
52
+ <li id="<?php echo $_code ?>_cc_type_exp_div">
53
+ <label for="<?php echo $_code ?>_expiration" class="required"><em>*</em><?php echo $this->__('Expiration Date') ?></label>
54
+ <div class="input-box">
55
+ <div class="v-fix">
56
+ <select id="<?php echo $_code ?>_expiration" name="payment[cc_exp_month]" class="month validate-cc-exp required-entry">
57
+ <?php $_ccExpMonth = $this->getInfoData('cc_exp_month') ?>
58
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
59
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpMonth): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
60
+ <?php endforeach ?>
61
+ </select>
62
+ </div>
63
+ <div class="v-fix">
64
+ <?php $_ccExpYear = $this->getInfoData('cc_exp_year') ?>
65
+ <select id="<?php echo $_code ?>_expiration_yr" name="payment[cc_exp_year]" class="year required-entry">
66
+ <?php foreach ($this->getCcYears() as $k=>$v): ?>
67
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$_ccExpYear): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
68
+ <?php endforeach ?>
69
+ </select>
70
+ </div>
71
+ </div>
72
+ </li>
73
+ <?php echo $this->getChildHtml() ?>
74
+ <?php if($this->hasVerification()): ?>
75
+ <li id="<?php echo $_code ?>_cc_type_cvv_div">
76
+ <label for="<?php echo $_code ?>_cc_cid" class="required"><em>*</em><?php echo $this->__('Card Verification Number') ?></label>
77
+ <div class="input-box">
78
+ <div class="v-fix">
79
+ <input type="text" title="<?php echo $this->__('Card Verification Number') ?>" class="input-text cvv required-entry validate-cc-cvn" id="<?php echo $_code ?>_cc_cid" name="payment[cc_cid]" value="" />
80
+ </div>
81
+ <a href="#" class="cvv-what-is-this"><?php echo $this->__('What is this?') ?></a>
82
+ </div>
83
+ </li>
84
+ <?php endif; ?>
85
+
86
+ <?php if ($this->hasSsCardType()): ?>
87
+ <li id="<?php echo $_code ?>_cc_type_ss_div">
88
+ <ul class="inner-form">
89
+ <li class="form-alt"><label for="<?php echo $_code ?>_cc_issue" class="required"><em>*</em><?php echo $this->__('Switch/Solo Only') ?></label></li>
90
+ <li>
91
+ <label for="<?php echo $_code ?>_cc_issue"><?php echo $this->__('Issue Number') ?>:</label>
92
+ <span class="input-box">
93
+ <input type="text" title="<?php echo $this->__('Issue Number') ?>" class="input-text validate-cc-ukss cvv" id="<?php echo $_code ?>_cc_issue" name="payment[cc_ss_issue]" value="" />
94
+ </span>
95
+ </li>
96
+
97
+ <li>
98
+ <label for="<?php echo $_code ?>_start_month"><?php echo $this->__('Start Date') ?>:</label>
99
+ <div class="input-box">
100
+ <div class="v-fix">
101
+ <select id="<?php echo $_code ?>_start_month" name="payment[cc_ss_start_month]" class="validate-cc-ukss month">
102
+ <?php foreach ($this->getCcMonths() as $k=>$v): ?>
103
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_month')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
104
+ <?php endforeach ?>
105
+ </select>
106
+ </div>
107
+ <div class="v-fix">
108
+ <select id="<?php echo $_code ?>_start_year" name="payment[cc_ss_start_year]" class="validate-cc-ukss year">
109
+ <?php foreach ($this->getSsStartYears() as $k=>$v): ?>
110
+ <option value="<?php echo $k?$k:'' ?>"<?php if($k==$this->getInfoData('cc_ss_start_year')): ?> selected="selected"<?php endif ?>><?php echo $v ?></option>
111
+ <?php endforeach ?>
112
+ </select>
113
+ </div>
114
+ </div>
115
+ </li>
116
+ <li class="adv-container">&nbsp;</li>
117
+ </ul>
118
+ <script type="text/javascript">
119
+ //<![CDATA[
120
+ var SSChecked<?php echo $_code ?> = function() {
121
+ var elm = $('<?php echo $_code ?>_cc_type');
122
+ if (elm.value=='SS') {
123
+ $('<?php echo $_code ?>_cc_type_ss_div').show();
124
+ $('<?php echo $_code ?>_cc_type_cvv_div').hide();
125
+ $('<?php echo $_code ?>_cc_type_exp_div').hide();
126
+ } else {
127
+ $('<?php echo $_code ?>_cc_type_ss_div').hide();
128
+ $('<?php echo $_code ?>_cc_type_cvv_div').show();
129
+ $('<?php echo $_code ?>_cc_type_exp_div').show();
130
+ }
131
+ };
132
+
133
+ Event.observe($('<?php echo $_code ?>_cc_type'), 'change', SSChecked<?php echo $_code ?>);
134
+ SSChecked<?php echo $_code ?>();
135
+
136
+ Validation.addAllThese([
137
+ ['validate-cc-ukss', 'Please enter issue number or start date for switch/solo card type.', function(v,elm) {
138
+ var endposition;
139
+
140
+ if (elm.id.match(/(.)+_cc_issue$/)) {
141
+ endposition = elm.id.indexOf('_cc_issue');
142
+ } else if (elm.id.match(/(.)+_start_month$/)) {
143
+ endposition = elm.id.indexOf('_start_month');
144
+ } else {
145
+ endposition = elm.id.indexOf('_start_year');
146
+ }
147
+
148
+ var prefix = elm.id.substr(0,endposition);
149
+
150
+ var ccTypeContainer = $(prefix + '_cc_type');
151
+
152
+ if (!ccTypeContainer) {
153
+ return true;
154
+ }
155
+ var ccType = ccTypeContainer.value;
156
+
157
+ if(ccType!='SS'){
158
+ return true;
159
+ }
160
+
161
+ $(prefix + '_cc_issue').advaiceContainer
162
+ = $(prefix + '_start_month').advaiceContainer
163
+ = $(prefix + '_start_year').advaiceContainer
164
+ = $(prefix + '_cc_type_ss_div').down('ul li.adv-container');
165
+
166
+ var ccIssue = $(prefix + '_cc_issue').value;
167
+ var ccSMonth = $(prefix + '_start_month').value;
168
+ var ccSYear = $(prefix + '_start_year').value;
169
+
170
+ if((!ccIssue && !ccSMonth && !ccSYear) ||
171
+ (!ccIssue && !ccSMonth && ccSYear) ||
172
+ (!ccIssue && ccSMonth && !ccSYear)
173
+ ){
174
+ return false;
175
+ }
176
+
177
+ return true;
178
+
179
+ }]
180
+ ]);
181
+ //]]>
182
+ </script>
183
+ </li>
184
+ <?php endif; ?>
185
+ <?php if (count($_logos) > 0): ?>
186
+ <li>
187
+ <?php foreach($_logos as $_logo): ?>
188
+ <img src="<?php echo $this->getSkinUrl('images/magebase/dps/'.$_logo); ?>" alt="" />
189
+ <?php endforeach ?>
190
+ </li>
191
+ <?php endif;?>
192
+ </ul>
app/design/frontend/base/default/template/magebase/dps/pxpost/info.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MageBase DPS Payment Express
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is bundled with Magento in the file LICENSE.txt.
9
+ * It is also available through the world-wide-web at this URL:
10
+ * http://opensource.org/licenses/osl-3.0.php
11
+ * If you did not receive a copy of the license and are unable to
12
+ * obtain it through the world-wide-web, please send an email
13
+ * to license@magentocommerce.com so we can send you a copy immediately.
14
+ *
15
+ * @category MageBase
16
+ * @package MageBase_DpsPaymentExpress
17
+ * @author Kristof Ringleff
18
+ * @copyright Copyright (c) 2010 MageBase (http://www.magebase.com)
19
+ * @copyright Copyright (c) 2010 Fooman Ltd (http://www.fooman.co.nz)
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ ?>
23
+ <p><?php echo $this->getMethod()->getTitle() ?></p>
24
+ <table width="100%" border="0">
25
+ <tr><td width="35%"><?php echo $this->__('Card Type') ?></td><td><?php echo $this->getAdditionalData('CardName') ?></td>
26
+ <tr><td width="35%"><?php echo $this->__('Name on Card') ?></td><td><?php echo $this->getAdditionalData('CardHolderName') ?></td>
27
+ </table>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageBase_DpsPaymentExpress</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</summary>
10
  <description>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</description>
11
- <notes>First stable release</notes>
12
  <authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>info@magebase.com</email></author></authors>
13
- <date>2010-06-25</date>
14
- <time>02:01:54</time>
15
- <contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="MageBase_DpsPaymentExpress.xml" hash="fae6ba260c006016d14d9a508d17cf14"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magebase"><dir name="dps"><file name="AmexLogo.png" hash="775a3f26a4b5f7a6201b1331e4fe5579"/><file name="DinersLogo.png" hash="64500fdde86e960ac894f7cf0c44b2d8"/><file name="dpslogo.png" hash="8cc607a6a0bb32cea44d71fdc6086970"/><file name="dpspxlogo.png" hash="2f4e2d293b1e67f4a380f034bb49c788"/><file name="JCBLogo.png" hash="73f9e8b87c6c2dbf252bbb0de43591bc"/><file name="MasterCardLogo.png" hash="801014f81e405cec951076f4080b04f5"/><file name="MCSecureCodeLogo.png" hash="9f31e5ccadd98dc15d0110d0e3b450f7"/><file name="VisaLogo.png" hash="17173fb8723d34cea61a50c01c4845ed"/><file name="VisaVerifiedLogo.png" hash="af7f6a27a6449a50d1d623d925585c47"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="MageBase"><dir name="DpsPaymentExpress"><dir name="Block"><dir name="Form"><file name="Pxpay.php" hash="cfee1e51334484335b8f4b6640a502c6"/><file name="Pxpost.php" hash="d16ec81082d5a3c3f7a9f0ec017c1138"/></dir><dir name="Info"><file name="Pxpay.php" hash="9807aac8b02f40efa157c0afceb54438"/><file name="Pxpost.php" hash="cca613e91361f3411e4bcd56bc02b56f"/></dir><dir name="Pxpay"><file name="Form.php" hash="0513bd45150f03dab2c2b08dc0456de8"/><file name="Info.php" hash="68328c0824a4666c618cf3742dd4baff"/><file name="Redirect.php" hash="6b14c55b1f8aa8361891e7816bcb95b8"/></dir><dir name="Pxpost"><file name="Form.php" hash="48cda517e5c97bf8b031d195b79d76f9"/><file name="Info.php" hash="498c831213c26a78c12e28203273e937"/></dir></dir><dir name="controllers"><file name="PxpayController.php" hash="3cbf83bd7bc38dcea6667be113f814f7"/></dir><dir name="etc"><file name="config.xml" hash="b93eaa11723750631a534e466c603fa2"/><file name="system.xml" hash="87051f2d48e3720938b28142e7f37bb1"/></dir><dir name="Helper"><file name="Data.php" hash="0eea8b0b6d3c48e7e64666d4576d9a30"/></dir><dir name="Model"><dir name="Method"><file name="Common.php" hash="1261a0121dff3725f85d9a7c955ada7c"/><file name="Pxpay.php" hash="98fdb1b3b569d081588b25586690113a"/><file name="Pxpost.php" hash="37c817dce1dacc8caedd8cf07c9800fc"/></dir><dir name="Mysql4"><dir name="Debug"><file name="Collection.php" hash="6ef2919222f3dcb32599349245e76214"/></dir><file name="Debug.php" hash="56eb2bc341b9cb4ba8d9ae239169766e"/><file name="Setup.php" hash="8a395090a44fda7530548abd2d87835e"/></dir><dir name="System"><file name="Logos.php" hash="bfca463fa7d292fbd2b69a33d332d55a"/><file name="PaymentAction.php" hash="0be4f9a5c602b2d2723203ec56f51a8c"/><file name="PendingOrder.php" hash="31d7bd6f5fad8e1fa4315d32d123be0f"/></dir><file name="Debug.php" hash="dadf96f68c9cf4d09aad73ff0bacab0e"/></dir><dir name="sql"><dir name="magebasedps_setup"><file name="mysql4-install-0.5.0.php" hash="c512ded8c0dd63b1dcd8e8cbfb5893e8"/><file name="mysql4-upgrade-0.5.0-1.0.0.php" hash="6dbc67541449a0f2d43460acb9b6bbff"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MageBase_DpsPaymentExpress</name>
4
+ <version>1.1.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</summary>
10
  <description>Accept credit card payments via Payment Express from DPS - this extension supports PxPay and PxPost.</description>
11
+ <notes>Fix missing files</notes>
12
  <authors><author><name>Kristof Ringleff</name><user>auto-converted</user><email>info@magebase.com</email></author></authors>
13
+ <date>2010-06-30</date>
14
+ <time>01:42:50</time>
15
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="magebase"><dir name="dps"><dir name="pxpay"><dir name="pdf"><file name="pxpay.phtml" hash="30691a7b7eddbf52217c2d8194fe3f52"/></dir><file name="form.phtml" hash="1b6d58c3bde68990b743c93a9be529aa"/><file name="info.phtml" hash="36d793186537097726671bb6cd3ae5c2"/></dir><dir name="pxpost"><dir name="pdf"><file name="pxpost.phtml" hash="81e5f3b568e748460a5ca61e42138f8e"/></dir><file name="form.phtml" hash="27bec2c3b982473d7c0c1a44762adac4"/><file name="info.phtml" hash="011493fb070138a7c99b07c792a9c9b2"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magebase"><dir name="dps"><dir name="pxpay"><file name="form.phtml" hash="d1ec1d94031a875ba2819c5f799899c7"/><file name="info.phtml" hash="c53fb2bf0a1afdc81fac85afc15b35e3"/></dir><dir name="pxpost"><file name="form.phtml" hash="84c23e6c9202d6573c44f6ff3c6cd6b5"/><file name="info.phtml" hash="e370c27cfb4bd8e926315f7d2c47fb8f"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="MageBase_DpsPaymentExpress.xml" hash="fae6ba260c006016d14d9a508d17cf14"/></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="magebase"><dir name="dps"><file name="AmexLogo.png" hash="775a3f26a4b5f7a6201b1331e4fe5579"/><file name="DinersLogo.png" hash="64500fdde86e960ac894f7cf0c44b2d8"/><file name="dpslogo.png" hash="8cc607a6a0bb32cea44d71fdc6086970"/><file name="dpspxlogo.png" hash="2f4e2d293b1e67f4a380f034bb49c788"/><file name="JCBLogo.png" hash="73f9e8b87c6c2dbf252bbb0de43591bc"/><file name="MasterCardLogo.png" hash="801014f81e405cec951076f4080b04f5"/><file name="MCSecureCodeLogo.png" hash="9f31e5ccadd98dc15d0110d0e3b450f7"/><file name="VisaLogo.png" hash="17173fb8723d34cea61a50c01c4845ed"/><file name="VisaVerifiedLogo.png" hash="af7f6a27a6449a50d1d623d925585c47"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="MageBase"><dir name="DpsPaymentExpress"><dir name="Block"><dir name="Form"><file name="Pxpay.php" hash="cfee1e51334484335b8f4b6640a502c6"/><file name="Pxpost.php" hash="d16ec81082d5a3c3f7a9f0ec017c1138"/></dir><dir name="Info"><file name="Pxpay.php" hash="9807aac8b02f40efa157c0afceb54438"/><file name="Pxpost.php" hash="cca613e91361f3411e4bcd56bc02b56f"/></dir><dir name="Pxpay"><file name="Form.php" hash="0513bd45150f03dab2c2b08dc0456de8"/><file name="Info.php" hash="68328c0824a4666c618cf3742dd4baff"/><file name="Redirect.php" hash="6b14c55b1f8aa8361891e7816bcb95b8"/></dir><dir name="Pxpost"><file name="Form.php" hash="48cda517e5c97bf8b031d195b79d76f9"/><file name="Info.php" hash="498c831213c26a78c12e28203273e937"/></dir></dir><dir name="controllers"><file name="PxpayController.php" hash="3cbf83bd7bc38dcea6667be113f814f7"/></dir><dir name="etc"><file name="config.xml" hash="b93eaa11723750631a534e466c603fa2"/><file name="system.xml" hash="87051f2d48e3720938b28142e7f37bb1"/></dir><dir name="Helper"><file name="Data.php" hash="0eea8b0b6d3c48e7e64666d4576d9a30"/></dir><dir name="Model"><dir name="Method"><file name="Common.php" hash="1261a0121dff3725f85d9a7c955ada7c"/><file name="Pxpay.php" hash="98fdb1b3b569d081588b25586690113a"/><file name="Pxpost.php" hash="37c817dce1dacc8caedd8cf07c9800fc"/></dir><dir name="Mysql4"><dir name="Debug"><file name="Collection.php" hash="6ef2919222f3dcb32599349245e76214"/></dir><file name="Debug.php" hash="56eb2bc341b9cb4ba8d9ae239169766e"/><file name="Setup.php" hash="8a395090a44fda7530548abd2d87835e"/></dir><dir name="System"><file name="Logos.php" hash="bfca463fa7d292fbd2b69a33d332d55a"/><file name="PaymentAction.php" hash="0be4f9a5c602b2d2723203ec56f51a8c"/><file name="PendingOrder.php" hash="31d7bd6f5fad8e1fa4315d32d123be0f"/></dir><file name="Debug.php" hash="dadf96f68c9cf4d09aad73ff0bacab0e"/></dir><dir name="sql"><dir name="magebasedps_setup"><file name="mysql4-install-0.5.0.php" hash="c512ded8c0dd63b1dcd8e8cbfb5893e8"/><file name="mysql4-upgrade-0.5.0-1.0.0.php" hash="6dbc67541449a0f2d43460acb9b6bbff"/></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>