CDev_XPaymentsConnector - Version 1.2.3

Version Notes

Version number: 1.2.3

Download this release

Release Info

Developer Valerii Demidov
Extension CDev_XPaymentsConnector
Version 1.2.3
Comparing to
See all releases


Code changes from version 1.2.2 to 1.2.3

Files changed (20) hide show
  1. app/code/community/Cdev/XPaymentsConnector/Block/Customer/Cardadd.php +2 -0
  2. app/code/community/Cdev/XPaymentsConnector/Model/Payment/Cc.php +1 -5
  3. app/design/frontend/rwd/default/layout/xpaymentsconnector.xml +130 -0
  4. app/design/frontend/rwd/default/template/xpaymentsconnector/blank.phtml +30 -0
  5. app/design/frontend/rwd/default/template/xpaymentsconnector/cancel.phtml +49 -0
  6. app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/beforesuccess.phtml +77 -0
  7. app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/review/button.phtml +65 -0
  8. app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/settings.phtml +56 -0
  9. app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/xpayment-iframe.phtml +77 -0
  10. app/design/frontend/rwd/default/template/xpaymentsconnector/customer/cardaddsuccess.phtml +59 -0
  11. app/design/frontend/rwd/default/template/xpaymentsconnector/customer/usercards/cardadd.phtml +111 -0
  12. app/design/frontend/rwd/default/template/xpaymentsconnector/customer/usercards/list.phtml +103 -0
  13. app/design/frontend/rwd/default/template/xpaymentsconnector/failure.phtml +39 -0
  14. app/design/frontend/rwd/default/template/xpaymentsconnector/form/cc.phtml +60 -0
  15. app/design/frontend/rwd/default/template/xpaymentsconnector/form/savedcards.phtml +44 -0
  16. app/design/frontend/rwd/default/template/xpaymentsconnector/info/cc.phtml +47 -0
  17. app/design/frontend/rwd/default/template/xpaymentsconnector/info/prepaidpayments.phtml +45 -0
  18. app/design/frontend/rwd/default/template/xpaymentsconnector/info/savedcards.phtml +55 -0
  19. app/design/frontend/rwd/default/template/xpaymentsconnector/redirect.phtml +55 -0
  20. package.xml +5 -5
app/code/community/Cdev/XPaymentsConnector/Block/Customer/Cardadd.php CHANGED
@@ -47,9 +47,11 @@ class Cdev_XPaymentsConnector_Block_Customer_Cardadd extends Mage_Core_Block_Tem
47
  // update standart iframe handshake request
48
  $refId = "authorization";
49
  $updateSendData = array();
 
50
  $updateSendData["returnUrl"] = Mage::getUrl('xpaymentsconnector/customer/cardadd', array('order_refid' => $refId,'_secure' => true));
51
  $updateSendData["callbackUrl"] = Mage::getUrl('xpaymentsconnector/customer/cardadd', array('order_refid' => $refId, '_secure' => true));
52
  $updateSendData["refId"] = $refId;
 
53
 
54
  $xpaymentFormData = Mage::helper('payment')->getMethodInstance("xpayments")->getFormFields();
55
  $xpaymentFormUrl = Mage::helper('payment')->getMethodInstance("xpayments")->getUrl();
47
  // update standart iframe handshake request
48
  $refId = "authorization";
49
  $updateSendData = array();
50
+
51
  $updateSendData["returnUrl"] = Mage::getUrl('xpaymentsconnector/customer/cardadd', array('order_refid' => $refId,'_secure' => true));
52
  $updateSendData["callbackUrl"] = Mage::getUrl('xpaymentsconnector/customer/cardadd', array('order_refid' => $refId, '_secure' => true));
53
  $updateSendData["refId"] = $refId;
54
+ $updateSendData['template'] = 'magento_iframe';
55
 
56
  $xpaymentFormData = Mage::helper('payment')->getMethodInstance("xpayments")->getFormFields();
57
  $xpaymentFormUrl = Mage::helper('payment')->getMethodInstance("xpayments")->getUrl();
app/code/community/Cdev/XPaymentsConnector/Model/Payment/Cc.php CHANGED
@@ -503,7 +503,6 @@ class Cdev_XPaymentsConnector_Model_Payment_Cc extends Mage_Payment_Model_Method
503
  'cart' => $cart,
504
  'returnUrl' => Mage::getUrl('xpaymentsconnector/processing/return', array('order_id' => $refId,'_secure' => true)),
505
  'callbackUrl' => Mage::getUrl('xpaymentsconnector/processing/callback', array('order_id' => $refId,'_secure' => true)),
506
- 'template' => 'default',
507
  'saveCard' => 'Y',
508
  'api_version' => self::XP_API_NEW
509
  );
@@ -1851,10 +1850,7 @@ class Cdev_XPaymentsConnector_Model_Payment_Cc extends Mage_Payment_Model_Method
1851
  }
1852
 
1853
  }else{
1854
- $updateSendData = array();
1855
- $updateSendData['template'] = 'default';
1856
- $xpaymentResponse = $this->sendIframeHandshakeRequest($updateSendData);
1857
-
1858
  if(isset($xpaymentResponse["success"]) && !$xpaymentResponse["success"]){
1859
  $profile->setState(Mage_Sales_Model_Recurring_Profile::STATE_CANCELED);
1860
  }
503
  'cart' => $cart,
504
  'returnUrl' => Mage::getUrl('xpaymentsconnector/processing/return', array('order_id' => $refId,'_secure' => true)),
505
  'callbackUrl' => Mage::getUrl('xpaymentsconnector/processing/callback', array('order_id' => $refId,'_secure' => true)),
 
506
  'saveCard' => 'Y',
507
  'api_version' => self::XP_API_NEW
508
  );
1850
  }
1851
 
1852
  }else{
1853
+ $xpaymentResponse = $this->sendIframeHandshakeRequest();
 
 
 
1854
  if(isset($xpaymentResponse["success"]) && !$xpaymentResponse["success"]){
1855
  $profile->setState(Mage_Sales_Model_Recurring_Profile::STATE_CANCELED);
1856
  }
app/design/frontend/rwd/default/layout/xpaymentsconnector.xml ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * Magento
5
+ *
6
+ * NOTICE OF LICENSE
7
+ *
8
+ * This source file is subject to the Open Software License (OSL 3.0)
9
+ * that is bundled with this package in the file LICENSE.txt.
10
+ * It is also available through the world-wide-web at this URL:
11
+ * http://opensource.org/licenses/osl-3.0.php
12
+ * If you did not receive a copy of the license and are unable to
13
+ * obtain it through the world-wide-web, please send an email
14
+ * to license@magentocommerce.com so we can send you a copy immediately.
15
+ *
16
+ * @author Valerii Demidov
17
+ * @category Cdev
18
+ * @package Cdev_XPaymentsConnector
19
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
20
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
21
+ */
22
+ -->
23
+ <layout version="1.0.0">
24
+
25
+ <checkout_onepage_index translate="label">
26
+ <reference name="head">
27
+ <block type="core/text" name="google.jquery">
28
+ <action method="setText">
29
+ <text>
30
+ <![CDATA[<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>]]></text>
31
+ </action>
32
+ </block>
33
+ <block type="core/text" name="google.jquery.noconflict" after="google.jquery">
34
+ <action method="setText">
35
+ <text><![CDATA[<script type="text/javascript">jQuery.noConflict(); </script>]]></text>
36
+ </action>
37
+ </block>
38
+ <action method="addItem">
39
+ <type>js_css</type>
40
+ <name>xpayment/settings.css</name>
41
+ <params/>
42
+ </action>
43
+ <action method="addItem">
44
+ <type>js</type>
45
+ <name>xpayment/checkout-submit.js</name>
46
+ <params/>
47
+ </action>
48
+ </reference>
49
+ </checkout_onepage_index>
50
+
51
+ <checkout_onepage_review translate="label">
52
+ <reference name="checkout.onepage.review.info.items.after">
53
+ <block type="xpaymentsconnector/checkout_onepage_settings" name="xpayment_settings" output="toHtml"
54
+ template="xpaymentsconnector/checkout/onepage/xpayment-iframe.phtml"/>
55
+ </reference>
56
+ <reference name="checkout.onepage.review.button">
57
+ <action method="setTemplate">
58
+ <template helper="xpaymentsconnector/data/getReviewButtonTemplate">
59
+ <name>xpaymentsconnector/checkout/onepage/review/button.phtml</name>
60
+ <block>checkout.onepage.review.button</block>
61
+ </template>
62
+ </action>
63
+ </reference>
64
+ </checkout_onepage_review>
65
+
66
+
67
+ <xpaymentsconnector_processing_redirect>
68
+ <reference name="root">
69
+ <action method="setTemplate">
70
+ <template>xpaymentsconnector/blank.phtml</template>
71
+ </action>
72
+ </reference>
73
+ <reference name="content">
74
+ <block type="xpaymentsconnector/redirect" name="xpaymentsconnector_redirect"
75
+ template="xpaymentsconnector/redirect.phtml"/>
76
+ </reference>
77
+ </xpaymentsconnector_processing_redirect>
78
+
79
+
80
+ <customer_account>
81
+ <reference name="head">
82
+ <action method="addItem">
83
+ <type>js_css</type>
84
+ <name>xpayment/settings.css</name>
85
+ <params/>
86
+ </action>
87
+ </reference>
88
+ <reference name="customer_account_navigation">
89
+ <action method="addLink" translate="label" module="xpaymentsconnector">
90
+ <name>customer_usercards</name>
91
+ <path>xpaymentsconnector/customer/usercards</path>
92
+ <label>My Payment Cards</label>
93
+ </action>
94
+ </reference>
95
+ </customer_account>
96
+
97
+ <xpaymentsconnector_customer_usercards translate="label">
98
+ <label>Customer My Account credit cards list</label>
99
+ <update handle="customer_account"/>
100
+ <reference name="my.account.wrapper">
101
+ <block type="xpaymentsconnector/customer_usercards" name="xpaymentsconnector_customer_usercards" template="xpaymentsconnector/customer/usercards/list.phtml" />
102
+ </reference>
103
+ <reference name="root">
104
+ <action method="setHeaderTitle" translate="title" module="xpaymentsconnector"><title>My credit cards list</title></action>
105
+ </reference>
106
+ </xpaymentsconnector_customer_usercards>
107
+
108
+ <xpaymentsconnector_customer_cardadd translate="label">
109
+ <label>Add new credit card to list (X-Payments)</label>
110
+ <update handle="customer_account"/>
111
+ <reference name="my.account.wrapper">
112
+ <block type="xpaymentsconnector/customer_cardadd" name="xpaymentsconnector_customer_cardadd" template="xpaymentsconnector/customer/usercards/cardadd.phtml" />
113
+ </reference>
114
+ </xpaymentsconnector_customer_cardadd>
115
+
116
+
117
+ <!--add discount item on user profile page-->
118
+ <sales_recurring_profile_view>
119
+ <reference name="sales.recurring.profile.view">
120
+ <remove name="sales.recurring.profile.view.fees" />
121
+ <block type="xpaymentsconnector/recurring_profile_view" name="xpaymentsconnector.sales.recurring.profile.view.fees" as="fees" template="sales/recurring/profile/view/info.phtml">
122
+ <action method="prepareFeesInfo"/>
123
+ <action method="addToParentGroup"><value>info_blocks_row_2</value></action>
124
+ <action method="setViewColumn"><value>2</value></action>
125
+ <action method="setViewLabel" translate="value"><value>Profile Payments</value></action>
126
+ </block>
127
+ </reference>
128
+ </sales_recurring_profile_view>
129
+
130
+ </layout>
app/design/frontend/rwd/default/template/xpaymentsconnector/blank.phtml ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
23
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->getLang() ?>" lang="<?php echo $this->getLang() ?>">
24
+ <head>
25
+ <link href="<?php echo $this->getJsUrl("xpayment/settings.css"); ?>" type="text/css" rel="stylesheet">
26
+ </head>
27
+ <body>
28
+ <?php echo $this->getChildHtml('content') ?>
29
+ </body>
30
+ </html>
app/design/frontend/rwd/default/template/xpaymentsconnector/cancel.phtml ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Cancel
25
+ */
26
+ ?>
27
+ <html>
28
+ <head>
29
+ <meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl(); ?>" />
30
+ <link href="<?php echo $this->getJsUrl("xpayment/settings.css"); ?>" type="text/css" rel="stylesheet">
31
+ </head>
32
+ <body>
33
+
34
+ <div class="b-loader-wrap">
35
+ <div id="ajax-loader">
36
+ </div>
37
+ </div>
38
+ <div id="wait-message">
39
+ <div class="page-head">
40
+ <h3><?php echo Mage::helper('xpaymentsconnector')->__('The payment has been canceled') ?></h3>
41
+ </div>
42
+ <p><?php echo Mage::helper('xpaymentsconnector')->__('Please')?>&nbsp;
43
+ <a href="<?php echo $this->getContinueShoppingUrl();?>">
44
+ <?php echo Mage::helper('xpaymentsconnector')->__('continue shopping.');?>
45
+ </a>
46
+ </p>
47
+ </div>
48
+ </body>
49
+ </html>
app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/beforesuccess.phtml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ /**
22
+ * @see Cdev_XPaymentsConnector_Block_Beforesuccess
23
+ */
24
+ ?>
25
+
26
+ <html>
27
+ <head>
28
+ <link href="<?php echo $this->getJsUrl("xpayment/settings.css"); ?>" type="text/css" rel="stylesheet">
29
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
30
+ <script>
31
+ </script>
32
+ </head>
33
+
34
+ <body>
35
+ <div id="wait-message">
36
+ <strong>
37
+ <?php echo Mage::helper('xpaymentsconnector')->__('Please wait, your order is being created ...'); ?>
38
+ </strong>
39
+ </div>
40
+
41
+ <div class="b-loader-wrap">
42
+ <div id="ajax-loader">
43
+ </div>
44
+ </div>
45
+
46
+ <?php $formKey = Mage::getSingleton('core/session')->getFormKey();?>
47
+
48
+ <script type="text/javascript">
49
+ jQuery(document).ready(function(){
50
+ jQuery.ajax({
51
+ url: "<?php echo $this->getSaveOrderUrl();?>",
52
+ type: "post",
53
+ data: {"payment[method]": "<?php echo $this->getXpaymentsCode();?>","form_key":"<?php echo $formKey;?>"},
54
+ datatype: 'json',
55
+ success: function(data){
56
+ var response = jQuery.parseJSON(data);
57
+ if(response.success == true){
58
+ window.parent.location = "<?php echo $this->getCheckoutSuccessUrl();?>";
59
+ }else if(response.success == false){
60
+ if(response['error_messages']){
61
+ alert(response['error_messages']);
62
+ }
63
+ if(response['redirect'] != undefined){
64
+ window.parent.location = response['redirect'];
65
+ }else{
66
+ window.parent.location = "<?php echo Mage::getUrl();?>";
67
+ }
68
+ }
69
+ },
70
+ error:function(){
71
+ }
72
+ });
73
+ });
74
+ </script>
75
+ </body>
76
+
77
+ </html>
app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/review/button.phtml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ $xpayUrlMas = parse_url(Mage::getModel('xpaymentsconnector/payment_cc')->getConfig('xpay_url'));
24
+ $xpayUrl = $xpayUrlMas["scheme"]."://".$xpayUrlMas["host"];
25
+ $updateCartUrl = Mage::getUrl("checkout/cart",array("unset_xp_prepare_order"=>1));
26
+ $checkIframeUrl = Mage::getUrl('xpaymentsconnector/processing/istokenactual', array('_nosid' => true,'_secure'=>true));
27
+ ?>
28
+
29
+ <button type="submit" title="<?php echo $this->__('Place Order') ?>" class="button btn-checkout" onclick="submitXpaymentIframe('<?php echo $checkIframeUrl;?>');"><span><span><?php echo $this->__('Place Order') ?></span></span></button>
30
+
31
+ <script type="text/javascript">
32
+ /*process iframe session expired*/
33
+ var redirectUrl = '<?php echo $updateCartUrl;?>';
34
+ var eventUrlPath = '<?php echo $xpayUrl; ?>';
35
+ Event.observe(window, 'message', function (event) {
36
+ var eventUrl = event.origin;
37
+ if (eventUrl == eventUrlPath) {
38
+ var jsonEventData = JSON.parse(event.data)
39
+ if (jsonEventData.message = "paymentFormSubmitError") {
40
+ if (jsonEventData.params.type != undefined && jsonEventData.params.type == "2") {
41
+ Foobar = function () {
42
+ this.callBack = function () {
43
+ window.location.replace(redirectUrl);
44
+ };
45
+ }
46
+ Foobar.prototype = {
47
+ Init: function () {
48
+ var self = this;
49
+ var errorMessage = jsonEventData.params.error+ " (X-Payments)";
50
+ alert(errorMessage);
51
+ self.callBack.call();
52
+
53
+ }
54
+ };
55
+ var foobar = new Foobar();
56
+ foobar.Init();
57
+ }
58
+ }
59
+ }
60
+ });
61
+ </script>
62
+
63
+
64
+
65
+
app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/settings.phtml ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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 Cdev
16
+ * @package Cdev_XPaymentsConnector
17
+ * @copyright Copyright (c) 2010 Creative Development LLC <info@cdev.ru>. All rights reserved
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version SVN: $Id: blank.phtml 3624 2010-07-28 05:45:05Z max $
20
+ */
21
+ ?>
22
+ <?php
23
+
24
+
25
+ ?>
26
+
27
+ <script>
28
+ /* function xpaymentSave(){
29
+ if (checkout.loadWaiting!=false) return;
30
+
31
+ var validator = new Validation(this.form);
32
+ if (validator.validate()) {
33
+ checkout.setLoadWaiting('billing');
34
+
35
+ // if ($('billing:use_for_shipping') && $('billing:use_for_shipping').checked) {
36
+ // $('billing:use_for_shipping').value=1;
37
+ // }
38
+ console.log(this.saveUrl);
39
+ /*var request = new Ajax.Request(
40
+ this.saveUrl,
41
+ {
42
+ method: 'post',
43
+ onComplete: this.onComplete,
44
+ onSuccess: this.onSave,
45
+ onFailure: checkout.ajaxFailure.bind(checkout),
46
+ parameters: Form.serialize(this.form)
47
+ }
48
+ );*//*
49
+ }
50
+ },
51
+
52
+ alert("ura");*/
53
+
54
+ </script>
55
+
56
+
app/design/frontend/rwd/default/template/xpaymentsconnector/checkout/onepage/xpayment-iframe.phtml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * Additional settings for "IFrame" variant of payment method (frontend)
25
+ *
26
+ * @see Cdev_XPaymentsConnector_Block_Checkout_Onepage_Settings
27
+ */
28
+ ?>
29
+
30
+ <?php
31
+ $useIframe = Mage::getStoreConfig('payment/xpayments/use_iframe');
32
+ $isRecuringProduct = Mage::helper("xpaymentsconnector")->checkIsRecurringOrder();
33
+ $IsSaveCardsPaymentActive = (bool)Mage::getStoreConfig('payment/savedcards/active');
34
+ ?>
35
+
36
+ <?php if($this->isXpaymentMethod() && $useIframe):?>
37
+ <?php
38
+ $iFrameUrl = $this->getIframeUrl();
39
+ $isNeedToSaveUserCard = Mage::helper("xpaymentsconnector")->isNeedToSaveUserCard();
40
+ $customerRegistered = Mage::helper("xpaymentsconnector")->isRegisteredUser();
41
+ ?>
42
+ <div id="xpayment-iframe-block">
43
+ <iframe id="xp-iframe" class="xp-iframe" data-src="<?php echo $iFrameUrl;?>" src="<?php echo $iFrameUrl;?>" name="xp-iframe">
44
+ </iframe>
45
+ <?php if($customerRegistered):?>
46
+ <?php if(!$isRecuringProduct): ?>
47
+ <?php if ($IsSaveCardsPaymentActive): ?>
48
+ <span id="iframe-save-card-switcher" >
49
+ <input type="checkbox" <?php echo ($isNeedToSaveUserCard)?"checked":"";?> title="<?php echo $this->__("Use this credit card"); ?>" class="checkbox x-payment-card " id="iframe_savecard" name="iframe_savecard" value="1" />
50
+ <label for="iframe_savecard"><?php echo $this->__("I want to use this credit card for my future orders in this shop."); ?></label>
51
+ </span>
52
+ <script type="text/javascript">
53
+ var url = "<?php echo Mage::getUrl("xpaymentsconnector/processing/saveusercard");?>";
54
+ $('iframe_savecard').observe('change',
55
+ function() {
56
+ if($('iframe_savecard').checked === true) {
57
+ new Ajax.Request(url, {
58
+ parameters: "user_card_save=1"
59
+ });
60
+ }else{
61
+ new Ajax.Request(url, {
62
+ parameters: "user_card_save=0"
63
+ });
64
+ }
65
+ });
66
+ </script>
67
+ <?php endif; ?>
68
+ <?php else: ?>
69
+ <span id="iframe-save-card-switcher" >
70
+ <?php echo $this->__("Your credit card will be saved for this subscription."); ?>
71
+ </span>
72
+ <?php endif;?>
73
+ <?php endif;?>
74
+ </div>
75
+ <?php endif;?>
76
+
77
+
app/design/frontend/rwd/default/template/xpaymentsconnector/customer/cardaddsuccess.phtml ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ /**
22
+ * @see Cdev_XPaymentsConnector_Block_Customer_Success
23
+ */
24
+ ?>
25
+
26
+ <html>
27
+ <head>
28
+ <link href="<?php echo $this->getJsUrl("xpayment/settings.css"); ?>" type="text/css" rel="stylesheet">
29
+ <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js">
30
+ <script>
31
+ </script>
32
+ </head>
33
+
34
+ <body>
35
+ <div id="wait-message">
36
+ <strong>
37
+ <?php
38
+ $resultMessage = $this->getData("result_message");
39
+ echo Mage::helper('xpaymentsconnector')->__($resultMessage);
40
+ ?>
41
+ </strong>
42
+ </div>
43
+
44
+ <div class="b-loader-wrap">
45
+ <div id="ajax-loader">
46
+ </div>
47
+ </div>
48
+
49
+
50
+ <script type="text/javascript">
51
+ jQuery(document).ready(function(){
52
+ setTimeout(function() {
53
+ window.parent.location = "<?php echo Mage::getUrl("xpaymentsconnector/customer/usercards");?>";
54
+ }, 1500);
55
+ });
56
+ </script>
57
+ </body>
58
+
59
+ </html>
app/design/frontend/rwd/default/template/xpaymentsconnector/customer/usercards/cardadd.phtml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Customer_Cardadd
25
+ */
26
+ ?>
27
+ <?php
28
+ $xpayUrlMas = parse_url(Mage::getModel('xpaymentsconnector/payment_cc')->getConfig('xpay_url'));
29
+ $xpayUrl = $xpayUrlMas["scheme"]."://".$xpayUrlMas["host"];
30
+ ?>
31
+
32
+ <div class="page-title">
33
+ <h1><?php echo Mage::helper('xpaymentsconnector')->__('Add new credit card to list (X-Payments)') ?></h1>
34
+ </div>
35
+
36
+ <?php
37
+ $iFrameUrl = $this->getIframeUrl();
38
+ ?>
39
+ <div id="new-card-block">
40
+ <div id="xpayment-iframe-block">
41
+ <iframe id="xp-iframe" class="xp-iframe" data-src="<?php echo $iFrameUrl;?>" src="<?php echo $iFrameUrl;?>" name="xp-iframe">
42
+ </iframe>
43
+ <button onclick="cardAuthorizeSubmit();" id="create-card-button" class="button" title="Add new card" type="button"><span><span>Create card</span></span></button>
44
+ <span style="display:none;" id="card-add-please-wait" class="please-wait">
45
+ <img class="v-middle" title="<?php echo $this->__("Submit card information...");?>" alt="<?php echo $this->__("Submit card information...");?>"
46
+ src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>">&nbsp;<?php echo $this->__("Submit card information...");?>
47
+ </span>
48
+ </div>
49
+ </div>
50
+
51
+
52
+
53
+ <div class="buttons-set">
54
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
55
+ </div>
56
+
57
+ <script type="text/javascript">
58
+ /*process iframe session expired*/
59
+ var redirectUrl = '<?php echo $this->getUrl('xpaymentsconnector/customer/usercards');?>';
60
+ var eventUrlPath = '<?php echo $xpayUrl; ?>';
61
+ Event.observe(window, 'message', function (event) {
62
+ var eventUrl = event.origin;
63
+ if (eventUrl == eventUrlPath) {
64
+ var jsonEventData = JSON.parse(event.data)
65
+ if (jsonEventData.message = "paymentFormSubmitError") {
66
+ if (jsonEventData.params.type != undefined && jsonEventData.params.type == "2") {
67
+ Foobar = function () {
68
+ this.callBack = function () {
69
+ window.location.replace(redirectUrl);
70
+ };
71
+ }
72
+ Foobar.prototype = {
73
+ Init: function () {
74
+ var self = this;
75
+ var errorMessage = jsonEventData.params.error + " (X-Payments)";
76
+ console.log(jsonEventData);
77
+ alert(errorMessage);
78
+ self.callBack.call();
79
+
80
+ }
81
+ };
82
+ var foobar = new Foobar();
83
+ foobar.Init();
84
+ }
85
+ }
86
+ }
87
+ });
88
+
89
+
90
+ function cardAuthorizeSubmit() {
91
+
92
+ var message = {
93
+ message: 'submitPaymentForm',
94
+ params: {}
95
+ };
96
+ $("create-card-button").hide();
97
+ $("card-add-please-wait").show()
98
+ var messageJson = JSON.stringify(message);
99
+ var xpcShown = $('xp-iframe');
100
+ xpcShown.contentWindow.postMessage(messageJson, '*');
101
+ window.addEventListener("message", receiveMessage, false);
102
+
103
+
104
+ }
105
+
106
+ function receiveMessage(event)
107
+ {
108
+ $("create-card-button").show();
109
+ $("card-add-please-wait").hide()
110
+ }
111
+ </script>
app/design/frontend/rwd/default/template/xpaymentsconnector/customer/usercards/list.phtml ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Customer_Usercards
25
+ */
26
+ ?>
27
+ <?php $_items = $this->getItems(); ?>
28
+ <?php $cardUsageOptions = Mage::getModel("xpaymentsconnector/usercards")->getCardsUsageOptions();?>
29
+ <div class="page-title">
30
+ <h1><?php echo Mage::helper('xpaymentsconnector')->__('Edit payment cards list (X-Payments)') ?></h1>
31
+ </div>
32
+ <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
33
+ <?php echo $this->getChildHtml('pager'); ?>
34
+ <form id="credit-card-list-form" method="post" action="<?php echo Mage::getUrl("xpaymentsconnector/customer/usercards");?>">
35
+ <?php if(count($_items)): ?>
36
+ <table class="data-table" id="my-credit-cards-table">
37
+ <col width="1" />
38
+ <col width="1" />
39
+ <col />
40
+ <col width="1" />
41
+ <col width="1" />
42
+ <thead>
43
+ <tr>
44
+ <th><a id="select-all-cards" href="#" onclick="addRelatedCard(event)">Select all</a>
45
+ /
46
+ <a id="unselect-all-cards" href="#" onclick="removeRelatedCard(event)">Unselect all</a></th>
47
+ <th><?php echo Mage::helper('xpaymentsconnector')->__('Card id #') ?></th>
48
+ <th><?php echo Mage::helper('xpaymentsconnector')->__('Card number') ?></th>
49
+ <th><?php echo Mage::helper('xpaymentsconnector')->__('Card type') ?></th>
50
+ <th><?php echo Mage::helper('xpaymentsconnector')->__('Usage card type'); ?></th>
51
+ </tr>
52
+ </thead>
53
+ <tbody>
54
+ <?php $_odd = ''; ?>
55
+ <?php foreach ($_items as $_item): ?>
56
+ <tr>
57
+ <td><input type="checkbox" class="checkbox related-checkbox" value="<?php echo $_item->getData("xp_card_id");?>" name="card[]"></td>
58
+ <td><?php echo $_item->getData("xp_card_id");?></td>
59
+ <td>**<?php echo $_item->getData("last_4_cc_num");?></td>
60
+ <td><span class="x-payment-card-logo-list <?php echo strtolower($_item->getData("card_type")) ?>" title="<?php echo $_item->getData("card_type");?>"></span></td>
61
+ <td><?php echo $cardUsageOptions[$_item->getData("usage_type")];?></td>
62
+ </tr>
63
+ <?php endforeach; ?>
64
+ </tbody>
65
+ </table>
66
+ <input type="hidden" name="action" value="remove">
67
+
68
+ <script type="text/javascript">decorateTable('my-credit-cards-table')</script>
69
+ <?php else: ?>
70
+ <p><?php echo Mage::helper('xpaymentsconnector')->__('You have no saved credit cards yet.'); ?></p>
71
+ <?php endif; ?>
72
+ <?php echo $this->getChildHtml('pager'); ?>
73
+ <div class="buttons-set">
74
+ <p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>&laquo; </small><?php echo $this->__('Back') ?></a></p>
75
+ <?php if(count($_items)): ?>
76
+ <button class="button" title="Save" type="submit"><span><span>Remove</span></span></button>
77
+ <?php endif; ?>
78
+ <button onclick="window.location='<?php echo $this->getAddCardUrl();?>'" class="button" title="Add new card" type="button"><span><span>Add new card</span></span></button>
79
+ </div>
80
+ </form>
81
+
82
+ <script type="text/javascript">
83
+ //<![CDATA[
84
+
85
+ function addRelatedCard(event){
86
+ Event.stop(event)
87
+ var checkboxes = $$('.related-checkbox');
88
+ var values = [];
89
+ for(var i=0;i<checkboxes.length;i++){
90
+ checkboxes[i].checked = true;
91
+ }
92
+ }
93
+ function removeRelatedCard(event){
94
+ Event.stop(event)
95
+ var checkboxes = $$('.related-checkbox');
96
+ var values = [];
97
+ for(var i=0;i<checkboxes.length;i++){
98
+ checkboxes[i].checked = false;
99
+ }
100
+ }
101
+ //]]>
102
+ </script>
103
+
app/design/frontend/rwd/default/template/xpaymentsconnector/failure.phtml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Failure
25
+ */
26
+ ?>
27
+ <html>
28
+ <meta http-equiv="refresh" content="0; URL=<?php echo $this->getContinueShoppingUrl()?>" />
29
+ <body>
30
+ <div class="page-head">
31
+ <h3><?php echo Mage::helper('xpaymentsconnector')->__('Error occured') ?></h3>
32
+ </div>
33
+ <p><?php echo Mage::helper('xpaymentsconnector')->__('Please')?>&nbsp;
34
+ <a href="<?php echo $this->getContinueShoppingUrl();?>">
35
+ <?php echo Mage::helper('xpaymentsconnector')->__('continue shopping.');?>
36
+ </a>
37
+ </p>
38
+ </body>
39
+ </html>
app/design/frontend/rwd/default/template/xpaymentsconnector/form/cc.phtml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Form_Cc
25
+ */
26
+ ?>
27
+ <?php
28
+ $_code=$this->getMethodCode();
29
+ $useIframe = Mage::getStoreConfig('payment/xpayments/use_iframe');
30
+ $isRecuringProduct = Mage::helper("xpaymentsconnector")->checkIsRecurringOrder();
31
+ $IsSaveCardsPaymentActive = (bool)Mage::getStoreConfig('payment/savedcards/active');
32
+ ?>
33
+ <?php if (!$useIframe): ?>
34
+ <?php if (!$isRecuringProduct): ?>
35
+ <?php if ($IsSaveCardsPaymentActive): ?>
36
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none;">
37
+ <li>
38
+ <span class="input-box">
39
+ <input type="checkbox"
40
+ title="<?php echo $this->__("I want to save a credit card for my future orders in this shop"); ?>"
41
+ class="checkbox x-payment-card " id="<?php echo $_code . "_" . "save_card" ?>"
42
+ name="savecard" value="1"/>
43
+ <label
44
+ for="<?php echo $_code . "_" . "save_card" ?>"><?php echo $this->__("I want to save a credit card for my future orders in this shop"); ?></label>
45
+ </span>
46
+ </li>
47
+ </ul>
48
+ <?php endif; ?>
49
+ <?php else: ?>
50
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none;">
51
+ <li>
52
+ <span class="input-box">
53
+ <?php echo $this->__("Your credit card will be saved for this subscription."); ?>
54
+ </span>
55
+ </li>
56
+ </ul>
57
+ <?php endif; ?>
58
+ <?php endif; ?>
59
+
60
+
app/design/frontend/rwd/default/template/xpaymentsconnector/form/savedcards.phtml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Form_Savedcards
25
+ */
26
+ ?>
27
+
28
+ <?php $_code=$this->getMethodCode() ?>
29
+ <?php $userCreditCardsList = $this->getUserCreditCardsList();?>
30
+ <ul id="payment_form_<?php echo $_code ?>" style="display:none;">
31
+ <?php if($userCreditCardsList):?>
32
+ <?php foreach($userCreditCardsList as $key => $creditCard):?>
33
+ <li>
34
+ <span class="input-box">
35
+ <input type="radio" title="<?php echo "'".$creditCard->getData("card_type")."'"; ?> - credit card" class="input-radio x-payment-card validate-one-required-by-name" id="<?php echo $_code."_".$creditCard->getData("xp_card_id"); ?>" name="payment[xp_payment_card]" value="<?php echo $creditCard->getData("xp_card_id");?>" />
36
+ <label for="<?php echo $_code."_".$creditCard->getData("xp_card_id") ?>">Use card ( **<?php echo $creditCard->getData("last_4_cc_num");?> )</label>
37
+ <span class="x-payment-card-logo <?php echo strtolower($creditCard->getData("card_type")) ?>" title="<?php echo $creditCard->getData("card_type");?>"></span>
38
+ </span>
39
+
40
+ </li>
41
+ <?php endforeach;?>
42
+ <?php endif;?>
43
+ </ul>
44
+
app/design/frontend/rwd/default/template/xpaymentsconnector/info/cc.phtml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Info_Cc
25
+ */
26
+ ?>
27
+ <?php
28
+
29
+ $order = $this->getInfo()->getMethodInstance()->getOrder();
30
+ $orderCardData = array();
31
+ if($order){
32
+ $orderCardData = unserialize($this->getInfo()->getMethodInstance()->getOrder()->getData("xp_card_data"));
33
+ }
34
+
35
+ ?>
36
+ <?php echo $this->getMethod()->getTitle(); ?>
37
+ <br />
38
+ <?php if ($this->getInfo()->getLastTransId() == '') { ?>
39
+ <!--em><?php echo Mage::helper('xpaymentsconnector')->__('You will be redirected to X-Payments website when you place an order.'); ?></em-->
40
+ <?php } else { ?>
41
+ <?php echo Mage::helper('xpaymentsconnector')->__('X-Payments Transaction ID: %s', $this->htmlEscape($this->getInfo()->getLastTransId())); ?><br />
42
+ <?php } ?>
43
+ <?php if(!empty($orderCardData)): ?>
44
+ <span id="x-payment-prepaid-card-info">
45
+ <?php echo $this->__("For current order we used your payment card (**%s)",$orderCardData['last_4_cc_num']); ?>
46
+ </span>
47
+ <?php endif;?>
app/design/frontend/rwd/default/template/xpaymentsconnector/info/prepaidpayments.phtml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Info_Prepaidpayments
25
+ */
26
+ ?>
27
+ <?
28
+ $admSession = Mage::getSingleton('adminhtml/session');
29
+ $xpPrepaidPaymentsCard = $admSession->getData("xp_prepaid_payments");
30
+ $cardData = Mage::getModel("xpaymentsconnector/usercards")->load($xpPrepaidPaymentsCard)->getData();
31
+ ?>
32
+ <?php echo $this->getMethod()->getTitle(); ?>
33
+ <br />
34
+ <?php if (!empty($cardData)): ?>
35
+ <span id="x-payment-prepaid-card-info">
36
+ <?php echo $this->__("For current order we charged funds from your payment card (**%s)",$cardData['last_4_cc_num']); ?>
37
+ </span>
38
+ <?php elseif ($orderId = $this->getRequest()->getParam("order_id")): ?>
39
+ <?php $orderCardData = unserialize(Mage::getModel('sales/order')->load($orderId)->getData("xp_card_data")); ?>
40
+ <span id="x-payment-prepaid-card-info">
41
+ <?php echo $this->__("For current order we charged funds from your payment card (**%s)",$orderCardData['last_4_cc_num']); ?>
42
+ </span>
43
+ <?php endif; ?>
44
+
45
+
app/design/frontend/rwd/default/template/xpaymentsconnector/info/savedcards.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Info_Savedcards
25
+ */
26
+ ?>
27
+ <?
28
+ $admSession = Mage::getSingleton('adminhtml/session');
29
+ $adminhtmlPaymentCardNumber = $admSession->getData("xp_payment_card");
30
+ $quote = Mage::getSingleton('checkout/session')->getQuote();
31
+ $paymentCardNumber = $quote->getPayment()->getData("xp_payment_card");
32
+ $cardData = Mage::getModel("xpaymentsconnector/usercards")->load($paymentCardNumber)->getData();
33
+ ?>
34
+ <?php echo $this->getMethod()->getTitle(); ?>
35
+ <br />
36
+ <?php if (!empty($cardData)): ?>
37
+ <span id="x-payment-card-info">
38
+ <?php echo $this->__("For current order we used your payment card (**%s)",$cardData['last_4_cc_num']); ?>
39
+ </span>
40
+ <?php elseif ($orderId = $this->getRequest()->getParam("order_id")): ?>
41
+ <?php $orderCardData = unserialize(Mage::getModel('sales/order')->load($orderId)->getData("xp_card_data")); ?>
42
+ <span id="x-payment-card-info">
43
+ <?php echo $this->__("For current order we used your payment card (**%s)",$orderCardData['last_4_cc_num']); ?>
44
+ </span>
45
+ <?php elseif ($adminhtmlPaymentCardNumber): ?>
46
+ <?php $cardData = Mage::getModel("xpaymentsconnector/usercards")->load($adminhtmlPaymentCardNumber)->getData(); ?>
47
+ <?php if(!empty($cardData)): ?>
48
+ <span id="x-payment-card-info">
49
+ <?php echo $this->__("For current order we used your payment card (**%s)",$cardData['last_4_cc_num']); ?>
50
+ </span>
51
+ <?php endif; ?>
52
+ <?php endif; ?>
53
+
54
+
55
+
app/design/frontend/rwd/default/template/xpaymentsconnector/redirect.phtml ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Magento
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 this package 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
+ * @author Valerii Demidov
16
+ * @category Cdev
17
+ * @package Cdev_XPaymentsConnector
18
+ * @copyright (c) Qualiteam Software Ltd. <info@qtmsoft.com>. All rights reserved.
19
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
20
+ */
21
+ ?>
22
+ <?php
23
+ /**
24
+ * @see Cdev_XPaymentsConnector_Block_Redirect
25
+ */
26
+ ?>
27
+
28
+ <div class="b-loader-wrap">
29
+ <div id="ajax-loader">
30
+ </div>
31
+ </div>
32
+
33
+ <p id="wait-message">
34
+ <strong>
35
+ <?php echo Mage::helper('xpaymentsconnector')->__('You are being redirected to the payment form. Please wait a few seconds.'); ?>
36
+ </strong>
37
+ </p>
38
+ <form name="xpaymentsconnector_checkout" id="xpaymentsconnector_checkout" action="<?php echo $this->getFormAction();?>" method="POST">
39
+ <?php if (is_array($this->getFormData())): ?>
40
+ <?php foreach ($this->getFormData() as $name => $value): ?>
41
+ <input type="hidden" name="<?php echo $name; ?>" value="<?php echo $value; ?>" />
42
+ <?php endforeach; ?>
43
+ <?php endif; ?>
44
+ </form>
45
+
46
+ <script type="text/javascript">
47
+ //<![CDATA[
48
+ var paymentform = document.getElementById('xpaymentsconnector_checkout');
49
+ if (paymentform) {
50
+ window.onload = function() {
51
+ paymentform.submit();
52
+ }
53
+ }
54
+ //]]>
55
+ </script>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CDev_XPaymentsConnector</name>
4
- <version>1.2.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
@@ -10,11 +10,11 @@
10
  <description>X-Payments connector&#xD;
11
  This extension integrates Magento with X-Payments - a PA-DSS certified payment module.&#xD;
12
  </description>
13
- <notes>Version number: 1.2.2</notes>
14
  <authors><author><name>Valerii Demidov</name><user>Valerii</user><email>vdemidov@corp.web4pro.com.ua</email></author></authors>
15
- <date>2014-08-01</date>
16
- <time>07:55:37</time>
17
- <contents><target name="magecommunity"><dir name="Cdev"><dir name="XPaymentsConnector"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Edit"><dir name="Renderer"><file name="Cardtype.php" hash="62499b375fa9c7ba091ff7763d54a95d"/><file name="Txnid.php" hash="13d4ed0d24df35cc9956dc155b3ce8b5"/></dir><dir name="Tab"><file name="Usercards.php" hash="248e454bc1c43d41013fd5d077b39961"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Xporderstate.php" hash="c18f9945cc3a67e8687bc14b4a989fa1"/></dir></dir></dir></dir><dir name="Usercards"><file name="Grid.php" hash="ba4e515d5e9342b11d63dc796aa96e8a"/></dir></dir><file name="Beforesuccess.php" hash="60a7d25651a98f71ca67ed70380e1659"/><file name="Cancel.php" hash="3283657e21047278d81ac4478ac81de6"/><dir name="Checkout"><dir name="Onepage"><file name="Settings.php" hash="8d975592555c5f7dd52299f026ee5fb7"/></dir></dir><file name="Control.php" hash="e0ef77a236030598882937acb2a9c4e0"/><dir name="Customer"><dir name="Account"><file name="Navigation.php" hash="aad9aa09d20706f042f1deac00d04473"/></dir><file name="Cardadd.php" hash="6d065170bb39961c921bdb84eac6e209"/><file name="Success.php" hash="54f243e60b735cdd5cd879be65838fee"/><file name="Usercards.php" hash="ce4b7f73fb735a55d914ba0dad38d68a"/></dir><file name="Failure.php" hash="537aec3d3ee63ff1ac2d2300c2ca259e"/><dir name="Form"><file name="Cc.php" hash="ce7a6fe2a208cb736ccd3ccddf39d003"/><file name="Prepaidpayments.php" hash="66959c7b8e7714f80f44da9afde93936"/><file name="Savedcards.php" hash="552579e7918fc666dc6de8983fc185b3"/></dir><dir name="Info"><file name="Cc.php" hash="80ec2f2dd7691519d481977ab7bdcec4"/><file name="Prepaidpayments.php" hash="5046201a95c114c6020696b7d2855b7f"/><file name="Savedcards.php" hash="5e8b71515b6d516621aea6abfda332fe"/></dir><dir name="Recurring"><dir name="Profile"><file name="View.php" hash="ee800cc7d48e437d3e993e5bd6d42a96"/></dir></dir><file name="Redirect.php" hash="e4745b70dbe2d33b327a70eb195c9345"/><file name="Success.php" hash="d2f023bc2206cbb33997b791a57b1b4e"/></dir><dir name="Helper"><file name="Data.php" hash="3ea663123bfa3b72a30df327c6fb8338"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Paymentconfiguration"><file name="Collection.php" hash="98760f276af5182d42801865cb116db4"/></dir><file name="Paymentconfiguration.php" hash="ca045f953ec018c583279340c137ff71"/><dir name="Usercards"><file name="Collection.php" hash="6df6d26bef085e86c6db625487006086"/></dir><file name="Usercards.php" hash="ffb98ad5a0c252bbbf14adb086cf0d3c"/></dir><file name="Observer.php" hash="69baec9d0a5d27766ad52c14b1778676"/><dir name="Payment"><file name="Cc.php" hash="1bc8598925fa5c6e21c3f61e915c7bd2"/><file name="Prepaidpayments.php" hash="9bbab2a26748c59609d6c81d8fc37c41"/><dir name="Recurring"><file name="Profile.php" hash="7c0e5c707531e5d258b8c493243c00a1"/></dir><file name="Savedcards.php" hash="e97d591bcdf4b66231aa62cb72b32770"/></dir><file name="Paymentconfiguration.php" hash="c0a6c5b610e42037f9904247e657a0e6"/><dir name="Quote"><dir name="Address"><dir name="Total"><dir name="Nominal"><dir name="Recurring"><file name="Discount.php" hash="9c2ee0abac22865bb349dc11cebd66b2"/></dir></dir><file name="Nominal.php" hash="a835e5ed1692a8712571db963c22bd60"/></dir></dir></dir><file name="Quote.php" hash="6d9e11998cda75b478b0b03297db303a"/><dir name="Sales"><dir name="Recurring"><file name="Profile.php" hash="5f5486cb753946720ad932b6eb5d6831"/></dir></dir><dir name="Source"><file name="Paymentconfiguration.php" hash="eb9b8e1187a4a4f4614582d5f7932c37"/></dir><file name="Usercards.php" hash="049b38f03920a17d5dbd0ba5e3a834cc"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomerController.php" hash="8f2bc887259b9d5ae6f3a731e7a2eb6a"/></dir><file name="ControlController.php" hash="92e1380179483d97cd27be1d147833ba"/><file name="CustomerController.php" hash="38cb8af6cf9cf609fd31da5ec79ef263"/><file name="ProcessingController.php" hash="7ab567f40d731ed85bb38172ebcbebf5"/></dir><dir name="etc"><file name="config.xml" hash="cff33030e70acdd9b53b1970cf6bead0"/><file name="system.xml" hash="d9fd273ac8f7ea361a923696af286a8f"/></dir><dir name="sql"><dir name="xpaymentsconnector_setup"><file name="mysql4-install-1.0.0.php" hash="5b6ed901a54700d986dd81029104ed72"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="5e2da32a0f87b747a5e9f3d9095e962a"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="566cd8aa894ff488f60bd718ad8b2772"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="0f44cf02457c2b6a887b399e94b89e57"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="f353d20a6d6ac827be5cd581cc988660"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="9b71385496b9b42e5a79b0cbbc557dff"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="fa79555b4802a96579f314a670ab8ed3"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="b9708303f3160fc0c9347f4600e27aba"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="2d07945a0438bf29f1386e47b2b5498b"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="83a4aace7f0e389c5caaaf97675f6c24"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="xpaymentsconnector.xml" hash="bfe38bbacc0cc7d3a2bc4c51fc0c2a53"/></dir><dir name="template"><dir name="xpaymentsconnector"><file name="control.phtml" hash="66bb941b66f57585b2035f29afcea22d"/><dir name="form"><file name="prepaidpayments.phtml" hash="bfe70a3c62187bcd9915fb621eda58b9"/><file name="savedcards.phtml" hash="27ef4734f19ded0eb98214276a58e550"/></dir><dir name="info"><file name="cc.phtml" hash="67282ccf6f932de083bc477cc4238d22"/><file name="prepaidpayments.phtml" hash="f4bd2aa628257cb1f3450a1632a0b771"/><file name="savedcards.phtml" hash="299a1719dd63755b9d31f25c4d9738ac"/></dir><file name="info.phtml" hash="ab312e6f206c51ff3134b9a3ce5b5440"/><dir name="order"><dir name="view"><dir name="tab"><file name="xporderstate.phtml" hash="9a91a75622f7b2309e1fc16d61552952"/></dir></dir></dir><dir name="pdf"><file name="info.phtml" hash="9603c212b8efd1247ce36239d7365a73"/></dir><dir name="usercards"><dir name="tab"><file name="js.phtml" hash="ae8189ee0b9f0bd09d61692403527331"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="xpaymentsconnector.xml" hash="3c61c475430307e89459a92b44b140e6"/></dir><dir name="template"><dir name="xpaymentsconnector"><file name="blank.phtml" hash="a22778db8681a9aaee22eb2d8f8c6533"/><file name="cancel.phtml" hash="3ba9764fcbf85a3504664b342450ec2b"/><dir name="checkout"><dir name="onepage"><file name="beforesuccess.phtml" hash="8e05eff3705ac40d758c21523640f969"/><dir name="review"><file name="button.phtml" hash="ed96034bc129f74af1020384499840a9"/></dir><file name="settings.phtml" hash="3770940ac85ef9037160f4d1278069be"/><file name="xpayment-iframe.phtml" hash="26e89590e2390602a7c836a6c73d6d01"/></dir></dir><dir name="customer"><file name="cardaddsuccess.phtml" hash="6771721173b99c0cf70391c22d878276"/><dir name="usercards"><file name="cardadd.phtml" hash="6cee3d1ac74fcab72d9eb5284ce01139"/><file name="list.phtml" hash="5bf980a24c788af17cd80a8bf511807f"/></dir></dir><file name="failure.phtml" hash="3d0691440fda2d1f3a314cd151d6ea90"/><dir name="form"><file name="cc.phtml" hash="7c8766bc36d2f9a60e242ae551002437"/><file name="savedcards.phtml" hash="acbfcc5771443fcee06d715c3c049546"/></dir><dir name="info"><file name="cc.phtml" hash="9f96547c119d966eb26c67fb557cf1b8"/><file name="prepaidpayments.phtml" hash="f4bd2aa628257cb1f3450a1632a0b771"/><file name="savedcards.phtml" hash="b44b31ecdf8c653ea8299c9664061b27"/></dir><file name="redirect.phtml" hash="4c9c74e94c9a3015dee181a0ef978550"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cdev_XPaymentsConnector.xml" hash="3b87bc5a9c17519d38e7de93b5ad13b9"/></dir></target><target name="mage"><dir name="js"><dir name="xpayment"><file name="checkout-submit.js" hash="dc00ba3b3bc9183679272ab1aa7cf456"/><dir name="images"><file name="card_types.png" hash="d35ba97c55e2cc1273a0dd1d7862d84c"/><file name="loader.gif" hash="e67d85a8d2d4021514815d0ff4d65173"/></dir><file name="settings.css" hash="653c4d64a546ef82b63664bd569bafa8"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Cdev_XPaymentsConnector.csv" hash="b920adfca23deb393fc0a5a85f5c7527"/></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>CDev_XPaymentsConnector</name>
4
+ <version>1.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
10
  <description>X-Payments connector&#xD;
11
  This extension integrates Magento with X-Payments - a PA-DSS certified payment module.&#xD;
12
  </description>
13
+ <notes>Version number: 1.2.3</notes>
14
  <authors><author><name>Valerii Demidov</name><user>Valerii</user><email>vdemidov@corp.web4pro.com.ua</email></author></authors>
15
+ <date>2014-08-07</date>
16
+ <time>11:43:34</time>
17
+ <contents><target name="magecommunity"><dir name="Cdev"><dir name="XPaymentsConnector"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Edit"><dir name="Renderer"><file name="Cardtype.php" hash="62499b375fa9c7ba091ff7763d54a95d"/><file name="Txnid.php" hash="13d4ed0d24df35cc9956dc155b3ce8b5"/></dir><dir name="Tab"><file name="Usercards.php" hash="248e454bc1c43d41013fd5d077b39961"/></dir></dir></dir><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Xporderstate.php" hash="c18f9945cc3a67e8687bc14b4a989fa1"/></dir></dir></dir></dir><dir name="Usercards"><file name="Grid.php" hash="ba4e515d5e9342b11d63dc796aa96e8a"/></dir></dir><file name="Beforesuccess.php" hash="60a7d25651a98f71ca67ed70380e1659"/><file name="Cancel.php" hash="3283657e21047278d81ac4478ac81de6"/><dir name="Checkout"><dir name="Onepage"><file name="Settings.php" hash="8d975592555c5f7dd52299f026ee5fb7"/></dir></dir><file name="Control.php" hash="e0ef77a236030598882937acb2a9c4e0"/><dir name="Customer"><dir name="Account"><file name="Navigation.php" hash="aad9aa09d20706f042f1deac00d04473"/></dir><file name="Cardadd.php" hash="6887735f7db52fb1ee734792f9b0576b"/><file name="Success.php" hash="54f243e60b735cdd5cd879be65838fee"/><file name="Usercards.php" hash="ce4b7f73fb735a55d914ba0dad38d68a"/></dir><file name="Failure.php" hash="537aec3d3ee63ff1ac2d2300c2ca259e"/><dir name="Form"><file name="Cc.php" hash="ce7a6fe2a208cb736ccd3ccddf39d003"/><file name="Prepaidpayments.php" hash="66959c7b8e7714f80f44da9afde93936"/><file name="Savedcards.php" hash="552579e7918fc666dc6de8983fc185b3"/></dir><dir name="Info"><file name="Cc.php" hash="80ec2f2dd7691519d481977ab7bdcec4"/><file name="Prepaidpayments.php" hash="5046201a95c114c6020696b7d2855b7f"/><file name="Savedcards.php" hash="5e8b71515b6d516621aea6abfda332fe"/></dir><dir name="Recurring"><dir name="Profile"><file name="View.php" hash="ee800cc7d48e437d3e993e5bd6d42a96"/></dir></dir><file name="Redirect.php" hash="e4745b70dbe2d33b327a70eb195c9345"/><file name="Success.php" hash="d2f023bc2206cbb33997b791a57b1b4e"/></dir><dir name="Helper"><file name="Data.php" hash="3ea663123bfa3b72a30df327c6fb8338"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Paymentconfiguration"><file name="Collection.php" hash="98760f276af5182d42801865cb116db4"/></dir><file name="Paymentconfiguration.php" hash="ca045f953ec018c583279340c137ff71"/><dir name="Usercards"><file name="Collection.php" hash="6df6d26bef085e86c6db625487006086"/></dir><file name="Usercards.php" hash="ffb98ad5a0c252bbbf14adb086cf0d3c"/></dir><file name="Observer.php" hash="69baec9d0a5d27766ad52c14b1778676"/><dir name="Payment"><file name="Cc.php" hash="ae64133d5b5af8c03fee17f2690365c6"/><file name="Prepaidpayments.php" hash="9bbab2a26748c59609d6c81d8fc37c41"/><dir name="Recurring"><file name="Profile.php" hash="7c0e5c707531e5d258b8c493243c00a1"/></dir><file name="Savedcards.php" hash="e97d591bcdf4b66231aa62cb72b32770"/></dir><file name="Paymentconfiguration.php" hash="c0a6c5b610e42037f9904247e657a0e6"/><dir name="Quote"><dir name="Address"><dir name="Total"><dir name="Nominal"><dir name="Recurring"><file name="Discount.php" hash="9c2ee0abac22865bb349dc11cebd66b2"/></dir></dir><file name="Nominal.php" hash="a835e5ed1692a8712571db963c22bd60"/></dir></dir></dir><file name="Quote.php" hash="6d9e11998cda75b478b0b03297db303a"/><dir name="Sales"><dir name="Recurring"><file name="Profile.php" hash="5f5486cb753946720ad932b6eb5d6831"/></dir></dir><dir name="Source"><file name="Paymentconfiguration.php" hash="eb9b8e1187a4a4f4614582d5f7932c37"/></dir><file name="Usercards.php" hash="049b38f03920a17d5dbd0ba5e3a834cc"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomerController.php" hash="8f2bc887259b9d5ae6f3a731e7a2eb6a"/></dir><file name="ControlController.php" hash="92e1380179483d97cd27be1d147833ba"/><file name="CustomerController.php" hash="38cb8af6cf9cf609fd31da5ec79ef263"/><file name="ProcessingController.php" hash="7ab567f40d731ed85bb38172ebcbebf5"/></dir><dir name="etc"><file name="config.xml" hash="cff33030e70acdd9b53b1970cf6bead0"/><file name="system.xml" hash="d9fd273ac8f7ea361a923696af286a8f"/></dir><dir name="sql"><dir name="xpaymentsconnector_setup"><file name="mysql4-install-1.0.0.php" hash="5b6ed901a54700d986dd81029104ed72"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="5e2da32a0f87b747a5e9f3d9095e962a"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="566cd8aa894ff488f60bd718ad8b2772"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="0f44cf02457c2b6a887b399e94b89e57"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="f353d20a6d6ac827be5cd581cc988660"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="9b71385496b9b42e5a79b0cbbc557dff"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="fa79555b4802a96579f314a670ab8ed3"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="b9708303f3160fc0c9347f4600e27aba"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="2d07945a0438bf29f1386e47b2b5498b"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="83a4aace7f0e389c5caaaf97675f6c24"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="xpaymentsconnector.xml" hash="bfe38bbacc0cc7d3a2bc4c51fc0c2a53"/></dir><dir name="template"><dir name="xpaymentsconnector"><file name="control.phtml" hash="66bb941b66f57585b2035f29afcea22d"/><dir name="form"><file name="prepaidpayments.phtml" hash="bfe70a3c62187bcd9915fb621eda58b9"/><file name="savedcards.phtml" hash="27ef4734f19ded0eb98214276a58e550"/></dir><dir name="info"><file name="cc.phtml" hash="67282ccf6f932de083bc477cc4238d22"/><file name="prepaidpayments.phtml" hash="f4bd2aa628257cb1f3450a1632a0b771"/><file name="savedcards.phtml" hash="299a1719dd63755b9d31f25c4d9738ac"/></dir><file name="info.phtml" hash="ab312e6f206c51ff3134b9a3ce5b5440"/><dir name="order"><dir name="view"><dir name="tab"><file name="xporderstate.phtml" hash="9a91a75622f7b2309e1fc16d61552952"/></dir></dir></dir><dir name="pdf"><file name="info.phtml" hash="9603c212b8efd1247ce36239d7365a73"/></dir><dir name="usercards"><dir name="tab"><file name="js.phtml" hash="ae8189ee0b9f0bd09d61692403527331"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="xpaymentsconnector.xml" hash="3c61c475430307e89459a92b44b140e6"/></dir><dir name="template"><dir name="xpaymentsconnector"><file name="blank.phtml" hash="a22778db8681a9aaee22eb2d8f8c6533"/><file name="cancel.phtml" hash="3ba9764fcbf85a3504664b342450ec2b"/><dir name="checkout"><dir name="onepage"><file name="beforesuccess.phtml" hash="8e05eff3705ac40d758c21523640f969"/><dir name="review"><file name="button.phtml" hash="ed96034bc129f74af1020384499840a9"/></dir><file name="settings.phtml" hash="3770940ac85ef9037160f4d1278069be"/><file name="xpayment-iframe.phtml" hash="26e89590e2390602a7c836a6c73d6d01"/></dir></dir><dir name="customer"><file name="cardaddsuccess.phtml" hash="6771721173b99c0cf70391c22d878276"/><dir name="usercards"><file name="cardadd.phtml" hash="6cee3d1ac74fcab72d9eb5284ce01139"/><file name="list.phtml" hash="5bf980a24c788af17cd80a8bf511807f"/></dir></dir><file name="failure.phtml" hash="3d0691440fda2d1f3a314cd151d6ea90"/><dir name="form"><file name="cc.phtml" hash="7c8766bc36d2f9a60e242ae551002437"/><file name="savedcards.phtml" hash="acbfcc5771443fcee06d715c3c049546"/></dir><dir name="info"><file name="cc.phtml" hash="9f96547c119d966eb26c67fb557cf1b8"/><file name="prepaidpayments.phtml" hash="f4bd2aa628257cb1f3450a1632a0b771"/><file name="savedcards.phtml" hash="b44b31ecdf8c653ea8299c9664061b27"/></dir><file name="redirect.phtml" hash="4c9c74e94c9a3015dee181a0ef978550"/></dir></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="xpaymentsconnector.xml" hash="3c61c475430307e89459a92b44b140e6"/></dir><dir name="template"><dir name="xpaymentsconnector"><file name="blank.phtml" hash="a22778db8681a9aaee22eb2d8f8c6533"/><file name="cancel.phtml" hash="3ba9764fcbf85a3504664b342450ec2b"/><dir name="checkout"><dir name="onepage"><file name="beforesuccess.phtml" hash="8e05eff3705ac40d758c21523640f969"/><dir name="review"><file name="button.phtml" hash="ed96034bc129f74af1020384499840a9"/></dir><file name="settings.phtml" hash="3770940ac85ef9037160f4d1278069be"/><file name="xpayment-iframe.phtml" hash="26e89590e2390602a7c836a6c73d6d01"/></dir></dir><dir name="customer"><file name="cardaddsuccess.phtml" hash="6771721173b99c0cf70391c22d878276"/><dir name="usercards"><file name="cardadd.phtml" hash="6cee3d1ac74fcab72d9eb5284ce01139"/><file name="list.phtml" hash="5bf980a24c788af17cd80a8bf511807f"/></dir></dir><file name="failure.phtml" hash="3d0691440fda2d1f3a314cd151d6ea90"/><dir name="form"><file name="cc.phtml" hash="7c8766bc36d2f9a60e242ae551002437"/><file name="savedcards.phtml" hash="acbfcc5771443fcee06d715c3c049546"/></dir><dir name="info"><file name="cc.phtml" hash="9f96547c119d966eb26c67fb557cf1b8"/><file name="prepaidpayments.phtml" hash="f4bd2aa628257cb1f3450a1632a0b771"/><file name="savedcards.phtml" hash="b44b31ecdf8c653ea8299c9664061b27"/></dir><file name="redirect.phtml" hash="4c9c74e94c9a3015dee181a0ef978550"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cdev_XPaymentsConnector.xml" hash="3b87bc5a9c17519d38e7de93b5ad13b9"/></dir></target><target name="mage"><dir name="js"><dir name="xpayment"><file name="checkout-submit.js" hash="dc00ba3b3bc9183679272ab1aa7cf456"/><dir name="images"><file name="card_types.png" hash="d35ba97c55e2cc1273a0dd1d7862d84c"/><file name="loader.gif" hash="e67d85a8d2d4021514815d0ff4d65173"/></dir><file name="settings.css" hash="653c4d64a546ef82b63664bd569bafa8"/></dir></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Cdev_XPaymentsConnector.csv" hash="b920adfca23deb393fc0a5a85f5c7527"/></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>