mPAY24 - Version 1.6.2

Version Notes

1. Order Email in case of successful payment

2. Code improvements

Download this release

Release Info

Developer Anna Sadriu
Extension mPAY24
Version 1.6.2
Comparing to
See all releases


Code changes from version 1.6.1 to 1.6.2

Files changed (24) hide show
  1. app/code/community/Mpay24/Mpay24/Block/Adminhtml/System/Config/Fieldset/Fieldset.php +2 -2
  2. app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php +6 -7
  3. app/code/community/Mpay24/Mpay24/Model/Api/curllog.log +128 -0
  4. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000006.xml +51 -0
  5. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000007.xml +50 -0
  6. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000008.xml +53 -0
  7. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000009.xml +63 -0
  8. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000010.xml +63 -0
  9. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000011.xml +63 -0
  10. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000012.xml +63 -0
  11. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000013.xml +63 -0
  12. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000014.xml +63 -0
  13. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000015.xml +63 -0
  14. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000016.xml +62 -0
  15. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000017.xml +51 -0
  16. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000019.xml +51 -0
  17. app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000020.xml +53 -0
  18. app/code/community/Mpay24/Mpay24/Model/Method/Selectpayment.php +2 -2
  19. app/code/community/Mpay24/Mpay24/Model/Selectpayment.php +2 -12
  20. app/code/community/Mpay24/Mpay24/controllers/PaymentController.php +410 -394
  21. app/code/community/Mpay24/Mpay24/etc/config.xml +2 -2
  22. app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.6.2.php +53 -0
  23. app/etc/modules/Mpay24_Mpay24.xml +2 -2
  24. package.xml +6 -7
app/code/community/Mpay24/Mpay24/Block/Adminhtml/System/Config/Fieldset/Fieldset.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Fieldset.php 6252 2015-03-26 15:57:57Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
@@ -64,7 +64,7 @@ class Mpay24_Mpay24_Block_Adminhtml_System_Config_Fieldset_Fieldset
64
  $html .= '<div style="color:red;">' . Mage::getStoreConfig('mpay24/mpay24/payments_error') . "</div>";
65
 
66
  $html .= $this->_getFooterHtml($element);
67
- $html .= "<h1>Extension Version: " . MPay24MagentoShop::MAGENTO_VERSION . "</h1>";
68
 
69
  $comment = Mage::helper('mpay24')->__("The payment systems will be synchronized when the settings are saved!");
70
 
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Fieldset.php 6413 2015-07-14 12:50:34Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
64
  $html .= '<div style="color:red;">' . Mage::getStoreConfig('mpay24/mpay24/payments_error') . "</div>";
65
 
66
  $html .= $this->_getFooterHtml($element);
67
+ $html .= "<h1>Extension Version: " . MAGENTO_VERSION . "</h1>";
68
 
69
  $comment = Mage::helper('mpay24')->__("The payment systems will be synchronized when the settings are saved!");
70
 
app/code/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php CHANGED
@@ -1,12 +1,13 @@
1
  <?php
2
  /**
3
  * @author support@mpay24.com
4
- * @version $Id: MPay24MagentoShop.php 6403 2015-07-08 09:24:45Z anna $
5
  * @filesource test.php
6
  * @license http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1
7
  */
8
 
9
  include_once(Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24Shop.php");
 
10
 
11
  class MPay24MagentoShop extends MPay24Shop {
12
 
@@ -19,9 +20,7 @@ class MPay24MagentoShop extends MPay24Shop {
19
  const CONFIRMATION_URL = 'mpay24/payment/confirmation';
20
 
21
  const CANCEL_URL = 'mpay24/payment/cancel';
22
-
23
- const MAGENTO_VERSION = "Magento 1.6.1 ";
24
-
25
  var $tid;
26
  var $price;
27
  var $order;
@@ -268,7 +267,7 @@ class MPay24MagentoShop extends MPay24Shop {
268
  $mdxi->Order->setErrorTitleStyle(Mage::getStoreConfig('mpay24/mpay24sporder/errortitlestyle'));
269
  $mdxi->Order->setFooterStyle(Mage::getStoreConfig('mpay24/mpay24sporder/footerstyle'));
270
 
271
- $this->order->getPayment()->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d'))->save();
272
 
273
  //validates IPv4
274
  $validIPv4 = filter_var($this->order->getRemoteIp(), FILTER_VALIDATE_IP,FILTER_FLAG_IPV4);
@@ -279,7 +278,7 @@ class MPay24MagentoShop extends MPay24Shop {
279
  if($validIPv4)
280
  $mdxi->Order->ClientIP = $this->order->getRemoteIp();
281
 
282
- $mdxi->Order->UserField = MPay24MagentoShop::MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d');
283
  $mdxi->Order->Tid = $transaction->TID;
284
 
285
  $lang = explode('_', Mage::getStoreConfig('general/locale/code'));
@@ -633,7 +632,7 @@ class MPay24MagentoShop extends MPay24Shop {
633
  $version=$m->getVersion();
634
  $this->mPay24Api->shop = "Magento";
635
  $this->mPay24Api->shopVersion = $version;
636
- $this->mPay24Api->moduleVersion = MPay24MagentoShop::MAGENTO_VERSION;
637
  }
638
 
639
  private function xmlentities($string) {
1
  <?php
2
  /**
3
  * @author support@mpay24.com
4
+ * @version $Id: MPay24MagentoShop.php 6413 2015-07-14 12:50:34Z anna $
5
  * @filesource test.php
6
  * @license http://ec.europa.eu/idabc/eupl.html EUPL, Version 1.1
7
  */
8
 
9
  include_once(Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24Shop.php");
10
+ define("MAGENTO_VERSION", "Magento v " . Mage::getVersion() . " Module v 1.6.2 ");
11
 
12
  class MPay24MagentoShop extends MPay24Shop {
13
 
20
  const CONFIRMATION_URL = 'mpay24/payment/confirmation';
21
 
22
  const CANCEL_URL = 'mpay24/payment/cancel';
23
+
 
 
24
  var $tid;
25
  var $price;
26
  var $order;
267
  $mdxi->Order->setErrorTitleStyle(Mage::getStoreConfig('mpay24/mpay24sporder/errortitlestyle'));
268
  $mdxi->Order->setFooterStyle(Mage::getStoreConfig('mpay24/mpay24sporder/footerstyle'));
269
 
270
+ $this->order->getPayment()->setAdditionalInformation('user_field', MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d'))->save();
271
 
272
  //validates IPv4
273
  $validIPv4 = filter_var($this->order->getRemoteIp(), FILTER_VALIDATE_IP,FILTER_FLAG_IPV4);
278
  if($validIPv4)
279
  $mdxi->Order->ClientIP = $this->order->getRemoteIp();
280
 
281
+ $mdxi->Order->UserField = MAGENTO_VERSION.$transaction->TID.'_'.date('Y-m-d');
282
  $mdxi->Order->Tid = $transaction->TID;
283
 
284
  $lang = explode('_', Mage::getStoreConfig('general/locale/code'));
632
  $version=$m->getVersion();
633
  $this->mPay24Api->shop = "Magento";
634
  $this->mPay24Api->shopVersion = $version;
635
+ $this->mPay24Api->moduleVersion = MAGENTO_VERSION;
636
  }
637
 
638
  private function xmlentities($string) {
app/code/community/Mpay24/Mpay24/Model/Api/curllog.log CHANGED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * About to connect() to test.mpay24.com port 443 (#0)
2
+ * Trying 213.164.23.169... * connected
3
+ * Connected to test.mpay24.com (213.164.23.169) port 443 (#0)
4
+ * successfully set certificate verify locations:
5
+ * CAfile: /share/CE_CACHEDEV1_DATA/Web/magento/app/code/community/Mpay24/Mpay24/Model/Api/cacert.pem
6
+ CApath: none
7
+ * SSL connection using ECDHE-RSA-AES256-GCM-SHA384
8
+ * Server certificate:
9
+ * subject: OU=GT34125060; OU=See www.rapidssl.com/resources/cps (c)15; OU=Domain Control Validated - RapidSSL(R); CN=test.mpay24.com
10
+ * start date: 2015-05-11 14:41:06 GMT
11
+ * expire date: 2017-05-13 08:38:45 GMT
12
+ * subjectAltName: test.mpay24.com matched
13
+ * issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
14
+ * SSL certificate verify ok.
15
+ * Server auth using Basic with user 'u92169'
16
+ > POST /app/bin/etpproxy_v15 HTTP/1.1
17
+ Authorization: Basic dTkyMTY5OlZhcm5hLjMwMTIyMDEx
18
+ User-Agent: Magento v. 1.9.1.1 - Module v. Magento v 1.9.1.1 Module v 1.6.2
19
+ Host: test.mpay24.com
20
+ Accept: */*
21
+ Content-Length: 5685
22
+ Content-Type: application/x-www-form-urlencoded
23
+ Expect: 100-continue
24
+
25
+ < HTTP/1.1 100 Continue
26
+ < HTTP/1.1 200 OK
27
+ < Date: Tue, 14 Jul 2015 12:59:57 GMT
28
+ < Server: Apache
29
+ < Content-Length: 626
30
+ < Content-Type: text/xml; charset=utf-8
31
+ <
32
+ * Connection #0 to host test.mpay24.com left intact
33
+ * Closing connection #0
34
+ * About to connect() to test.mpay24.com port 443 (#0)
35
+ * Trying 213.164.23.169... * connected
36
+ * Connected to test.mpay24.com (213.164.23.169) port 443 (#0)
37
+ * successfully set certificate verify locations:
38
+ * CAfile: /share/CE_CACHEDEV1_DATA/Web/magento/app/code/community/Mpay24/Mpay24/Model/Api/cacert.pem
39
+ CApath: none
40
+ * SSL connection using ECDHE-RSA-AES256-GCM-SHA384
41
+ * Server certificate:
42
+ * subject: OU=GT34125060; OU=See www.rapidssl.com/resources/cps (c)15; OU=Domain Control Validated - RapidSSL(R); CN=test.mpay24.com
43
+ * start date: 2015-05-11 14:41:06 GMT
44
+ * expire date: 2017-05-13 08:38:45 GMT
45
+ * subjectAltName: test.mpay24.com matched
46
+ * issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
47
+ * SSL certificate verify ok.
48
+ * Server auth using Basic with user 'u92169'
49
+ > POST /app/bin/etpproxy_v15 HTTP/1.1
50
+ Authorization: Basic dTkyMTY5OlZhcm5hLjMwMTIyMDEx
51
+ User-Agent: mPAY24 PHP API $Rev: 6252 $ ($Date:: 2015-03-26 #$)
52
+ Host: test.mpay24.com
53
+ Accept: */*
54
+ Content-Length: 523
55
+ Content-Type: application/x-www-form-urlencoded
56
+
57
+ < HTTP/1.1 200 OK
58
+ < Date: Tue, 14 Jul 2015 13:00:37 GMT
59
+ < Server: Apache
60
+ < Content-Length: 582
61
+ < Content-Type: text/xml; charset=utf-8
62
+ <
63
+ * Connection #0 to host test.mpay24.com left intact
64
+ * Closing connection #0
65
+ * About to connect() to test.mpay24.com port 443 (#0)
66
+ * Trying 213.164.23.169... * connected
67
+ * Connected to test.mpay24.com (213.164.23.169) port 443 (#0)
68
+ * successfully set certificate verify locations:
69
+ * CAfile: /share/CE_CACHEDEV1_DATA/Web/magento/app/code/community/Mpay24/Mpay24/Model/Api/cacert.pem
70
+ CApath: none
71
+ * SSL connection using ECDHE-RSA-AES256-GCM-SHA384
72
+ * Server certificate:
73
+ * subject: OU=GT34125060; OU=See www.rapidssl.com/resources/cps (c)15; OU=Domain Control Validated - RapidSSL(R); CN=test.mpay24.com
74
+ * start date: 2015-05-11 14:41:06 GMT
75
+ * expire date: 2017-05-13 08:38:45 GMT
76
+ * subjectAltName: test.mpay24.com matched
77
+ * issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
78
+ * SSL certificate verify ok.
79
+ * Server auth using Basic with user 'u92169'
80
+ > POST /app/bin/etpproxy_v15 HTTP/1.1
81
+ Authorization: Basic dTkyMTY5OlZhcm5hLjMwMTIyMDEx
82
+ User-Agent: Magento v. 1.9.1.1 - Module v. Magento v 1.9.1.1 Module v 1.6.2
83
+ Host: test.mpay24.com
84
+ Accept: */*
85
+ Content-Length: 5742
86
+ Content-Type: application/x-www-form-urlencoded
87
+ Expect: 100-continue
88
+
89
+ < HTTP/1.1 100 Continue
90
+ < HTTP/1.1 200 OK
91
+ < Date: Tue, 14 Jul 2015 14:31:48 GMT
92
+ < Server: Apache
93
+ < Content-Length: 626
94
+ < Content-Type: text/xml; charset=utf-8
95
+ <
96
+ * Connection #0 to host test.mpay24.com left intact
97
+ * Closing connection #0
98
+ * About to connect() to test.mpay24.com port 443 (#0)
99
+ * Trying 213.164.23.169... * connected
100
+ * Connected to test.mpay24.com (213.164.23.169) port 443 (#0)
101
+ * successfully set certificate verify locations:
102
+ * CAfile: /share/CE_CACHEDEV1_DATA/Web/magento/app/code/community/Mpay24/Mpay24/Model/Api/cacert.pem
103
+ CApath: none
104
+ * SSL connection using ECDHE-RSA-AES256-GCM-SHA384
105
+ * Server certificate:
106
+ * subject: OU=GT34125060; OU=See www.rapidssl.com/resources/cps (c)15; OU=Domain Control Validated - RapidSSL(R); CN=test.mpay24.com
107
+ * start date: 2015-05-11 14:41:06 GMT
108
+ * expire date: 2017-05-13 08:38:45 GMT
109
+ * subjectAltName: test.mpay24.com matched
110
+ * issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
111
+ * SSL certificate verify ok.
112
+ * Server auth using Basic with user 'u92169'
113
+ > POST /app/bin/etpproxy_v15 HTTP/1.1
114
+ Authorization: Basic dTkyMTY5OlZhcm5hLjMwMTIyMDEx
115
+ User-Agent: mPAY24 PHP API $Rev: 6252 $ ($Date:: 2015-03-26 #$)
116
+ Host: test.mpay24.com
117
+ Accept: */*
118
+ Content-Length: 523
119
+ Content-Type: application/x-www-form-urlencoded
120
+
121
+ < HTTP/1.1 200 OK
122
+ < Date: Tue, 14 Jul 2015 14:32:04 GMT
123
+ < Server: Apache
124
+ < Content-Length: 582
125
+ < Content-Type: text/xml; charset=utf-8
126
+ <
127
+ * Connection #0 to host test.mpay24.com left intact
128
+ * Closing connection #0
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000006.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000006_2015-06-30</UserField>
5
+ <Tid>145000006</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">60.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
21
+ </ShoppingCart>
22
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">60.00</Price>
23
+ <Currency>EUR</Currency>
24
+ <Customer Id="140">Max Musterman</Customer>
25
+ <BillingAddr Mode="ReadOnly">
26
+ <Name Birthday="1970-01-01">Max Musterman</Name>
27
+ <Street>Teststraße 123</Street>
28
+ <Zip>1234</Zip>
29
+ <City>Wien</City>
30
+ <State>Wien</State>
31
+ <Country Code="AT"/>
32
+ <Email>sapolhei@hotmail.com</Email>
33
+ <Phone>+43123456789</Phone>
34
+ </BillingAddr>
35
+ <ShippingAddr Mode="ReadOnly">
36
+ <Name Birthday="1970-01-01">Max Musterman</Name>
37
+ <Street>Teststraße 123</Street>
38
+ <Zip>1234</Zip>
39
+ <City>Wien</City>
40
+ <State>Wien</State>
41
+ <Country Code="AT"/>
42
+ <Email>sapolhei@hotmail.com</Email>
43
+ <Phone>+43123456789</Phone>
44
+ </ShippingAddr>
45
+ <URL>
46
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000006</Success>
47
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000006</Error>
48
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
49
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000006</Cancel>
50
+ </URL>
51
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000007.xml ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000007_2015-07-01</UserField>
5
+ <Tid>145000007</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="MASTERCARD"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">60.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ </ShoppingCart>
21
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">65.00</Price>
22
+ <Currency>EUR</Currency>
23
+ <Customer Id="140">Max Musterman</Customer>
24
+ <BillingAddr Mode="ReadOnly">
25
+ <Name Birthday="1970-01-01">Max Musterman</Name>
26
+ <Street>Teststraße 123</Street>
27
+ <Zip>1234</Zip>
28
+ <City>Wien</City>
29
+ <State>Wien</State>
30
+ <Country Code="AT"/>
31
+ <Email>sapolhei@hotmail.com</Email>
32
+ <Phone>+43123456789</Phone>
33
+ </BillingAddr>
34
+ <ShippingAddr Mode="ReadOnly">
35
+ <Name Birthday="1970-01-01">Max Musterman</Name>
36
+ <Street>Teststraße 123</Street>
37
+ <Zip>1234</Zip>
38
+ <City>Wien</City>
39
+ <State>Wien</State>
40
+ <Country Code="AT"/>
41
+ <Email>sapolhei@hotmail.com</Email>
42
+ <Phone>+43123456789</Phone>
43
+ </ShippingAddr>
44
+ <URL>
45
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000007</Success>
46
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000007</Error>
47
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
48
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000007</Cancel>
49
+ </URL>
50
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000008.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000008_2015-07-07</UserField>
5
+ <Tid>145000008</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">60.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
21
+ </ShoppingCart>
22
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">60.00</Price>
23
+ <Currency>EUR</Currency>
24
+ <Customer>Test Tester</Customer>
25
+ <BillingAddr Mode="ReadOnly">
26
+ <Name Birthday="1970-01-01">Test Tester</Name>
27
+ <Street>Annagasse 5</Street>
28
+ <Street2>Dachgeschoß</Street2>
29
+ <Zip>1010</Zip>
30
+ <City>Wien</City>
31
+ <State>Niederösterreich</State>
32
+ <Country Code="AT"/>
33
+ <Email>hallodriho@gmail.com</Email>
34
+ <Phone>+43123456789</Phone>
35
+ </BillingAddr>
36
+ <ShippingAddr Mode="ReadOnly">
37
+ <Name Birthday="1970-01-01">Test Tester</Name>
38
+ <Street>Annagasse 5</Street>
39
+ <Street2>Dachgeschoß</Street2>
40
+ <Zip>1010</Zip>
41
+ <City>Wien</City>
42
+ <State>Niederösterreich</State>
43
+ <Country Code="AT"/>
44
+ <Email>hallodriho@gmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </ShippingAddr>
47
+ <URL>
48
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/guestsuccess/?tid=145000008</Success>
49
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000008</Error>
50
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
51
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000008</Cancel>
52
+ </URL>
53
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000009.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000009_2015-07-08</UserField>
5
+ <Tid>145000009</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000009</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000009</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000009</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000010.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000010_2015-07-08</UserField>
5
+ <Tid>145000010</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000010</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000010</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000010</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000011.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000011_2015-07-08</UserField>
5
+ <Tid>145000011</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000011</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000011</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000011</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000012.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000012_2015-07-08</UserField>
5
+ <Tid>145000012</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000012</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000012</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000012</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000013.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000013_2015-07-08</UserField>
5
+ <Tid>145000013</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000013</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000013</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000013</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000014.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000014_2015-07-08</UserField>
5
+ <Tid>145000014</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000014</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000014</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000014</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000015.xml ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000015_2015-07-08</UserField>
5
+ <Tid>145000015</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">15.00</ShippingCosts>
32
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
33
+ </ShoppingCart>
34
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">264.00</Price>
35
+ <Currency>EUR</Currency>
36
+ <Customer Id="140">Max Musterman</Customer>
37
+ <BillingAddr Mode="ReadOnly">
38
+ <Name Birthday="1970-01-01">Max Musterman</Name>
39
+ <Street>Teststraße 123</Street>
40
+ <Zip>1234</Zip>
41
+ <City>Wien</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>sapolhei@hotmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </BillingAddr>
47
+ <ShippingAddr Mode="ReadOnly">
48
+ <Name Birthday="1970-01-01">Max Musterman</Name>
49
+ <Street>Teststraße 123</Street>
50
+ <Zip>1234</Zip>
51
+ <City>Wien</City>
52
+ <State>Wien</State>
53
+ <Country Code="AT"/>
54
+ <Email>sapolhei@hotmail.com</Email>
55
+ <Phone>+43123456789</Phone>
56
+ </ShippingAddr>
57
+ <URL>
58
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000015</Success>
59
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000015</Error>
60
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
61
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000015</Cancel>
62
+ </URL>
63
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000016.xml ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000016_2015-07-08</UserField>
5
+ <Tid>145000016</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <Item>
19
+ <Description Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
20
+ <Quantity Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
21
+ <ItemPrice Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
22
+ <Price Style="background-color: #FFF;color: #327F98; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
23
+ </Item>
24
+ <Item>
25
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
26
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
27
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
28
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
29
+ </Item>
30
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">254.00</SubTotal>
31
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
32
+ </ShoppingCart>
33
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">249.00</Price>
34
+ <Currency>EUR</Currency>
35
+ <Customer Id="140">Max Musterman</Customer>
36
+ <BillingAddr Mode="ReadOnly">
37
+ <Name Birthday="1970-01-01">Max Musterman</Name>
38
+ <Street>Teststraße 123</Street>
39
+ <Zip>1234</Zip>
40
+ <City>Wien</City>
41
+ <State>Wien</State>
42
+ <Country Code="AT"/>
43
+ <Email>sapolhei@hotmail.com</Email>
44
+ <Phone>+43123456789</Phone>
45
+ </BillingAddr>
46
+ <ShippingAddr Mode="ReadOnly">
47
+ <Name Birthday="1970-01-01">Max Musterman</Name>
48
+ <Street>Teststraße 123</Street>
49
+ <Zip>1234</Zip>
50
+ <City>Wien</City>
51
+ <State>Wien</State>
52
+ <Country Code="AT"/>
53
+ <Email>sapolhei@hotmail.com</Email>
54
+ <Phone>+43123456789</Phone>
55
+ </ShippingAddr>
56
+ <URL>
57
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000016</Success>
58
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000016</Error>
59
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
60
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000016</Cancel>
61
+ </URL>
62
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000017.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento 1.6.0 145000017_2015-07-08</UserField>
5
+ <Tid>145000017</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Chelsea Tee</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">134.00</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">134.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
21
+ </ShoppingCart>
22
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">134.00</Price>
23
+ <Currency>EUR</Currency>
24
+ <Customer Id="140">Max Musterman</Customer>
25
+ <BillingAddr Mode="ReadWrite">
26
+ <Name Birthday="1970-01-01">Max Musterman</Name>
27
+ <Street>Teststraße 123</Street>
28
+ <Zip>1234</Zip>
29
+ <City>Wien</City>
30
+ <State>Wien</State>
31
+ <Country Code="AT"/>
32
+ <Email>sapolhei@hotmail.com</Email>
33
+ <Phone>+43123456789</Phone>
34
+ </BillingAddr>
35
+ <ShippingAddr Mode="ReadOnly">
36
+ <Name Birthday="1970-01-01">Max Musterman</Name>
37
+ <Street>Teststraße 123</Street>
38
+ <Zip>1234</Zip>
39
+ <City>Wien</City>
40
+ <State>Wien</State>
41
+ <Country Code="AT"/>
42
+ <Email>sapolhei@hotmail.com</Email>
43
+ <Phone>+43123456789</Phone>
44
+ </ShippingAddr>
45
+ <URL>
46
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000017</Success>
47
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000017</Error>
48
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
49
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000017</Cancel>
50
+ </URL>
51
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000019.xml ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento v 1.9.1.1 Module v 1.6.2 145000019_2015-07-14</UserField>
5
+ <Tid>145000019</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">60.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
21
+ </ShoppingCart>
22
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">60.00</Price>
23
+ <Currency>EUR</Currency>
24
+ <Customer Id="140">Max Musterman</Customer>
25
+ <BillingAddr Mode="ReadOnly">
26
+ <Name Birthday="1970-01-01">Max Musterman</Name>
27
+ <Street>Teststraße 123</Street>
28
+ <Zip>1234</Zip>
29
+ <City>Wien</City>
30
+ <State>Wien</State>
31
+ <Country Code="AT"/>
32
+ <Email>sapolhei@hotmail.com</Email>
33
+ <Phone>+43123456789</Phone>
34
+ </BillingAddr>
35
+ <ShippingAddr Mode="ReadOnly">
36
+ <Name Birthday="1970-01-01">Max Musterman</Name>
37
+ <Street>Teststraße 123</Street>
38
+ <Zip>1234</Zip>
39
+ <City>Wien</City>
40
+ <State>Wien</State>
41
+ <Country Code="AT"/>
42
+ <Email>sapolhei@hotmail.com</Email>
43
+ <Phone>+43123456789</Phone>
44
+ </ShippingAddr>
45
+ <URL>
46
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/success/?TID=145000019</Success>
47
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000019</Error>
48
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
49
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000019</Cancel>
50
+ </URL>
51
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Api/xmls/145000020.xml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Order Style="margin-left: auto; margin-right: auto; color:#647378" PageHeaderStyle="background-color: #FFF;margin-bottom:14px;" PageCaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;" PageStyle="border:1px solid #838F93;background-color:#FFF;" InputFieldsStyle="background-color:#ffffff;border:1px solid #DDE1E7;padding:2px 0px;margin-bottom:5px;" DropDownListsStyle="padding:2px 0px;margin-bottom:5px;" ButtonsStyle="background-color: #005AC1;border: none;color: #FFFFFF;cursor: pointer;font-size:10px;font-weight:bold;padding:5px 10px;text-transform:uppercase;" ErrorsStyle="background-color: #FFF;padding: 10px 0px;" SuccessTitleStyle="background-color: #FFF;" ErrorTitleStyle="background-color: #FFF;">
3
+ <ClientIP>80.110.33.39</ClientIP>
4
+ <UserField>Magento v 1.9.1.1 Module v 1.6.2 145000020_2015-07-14</UserField>
5
+ <Tid>145000020</Tid>
6
+ <TemplateSet Language="DE" CSSName="MOBILE"/>
7
+ <PaymentTypes Enable="true">
8
+ <Payment Type="CC" Brand="VISA"/>
9
+ </PaymentTypes>
10
+ <ShoppingCart Header="WARENKORB" HeaderStyle="background-color:#FFF;margin-bottom:14px;color:#647378" CaptionStyle="background-color:#FFF;background:transparent;color:#647378;padding-left:0px;font-size:14px;" DescriptionHeader="BESCHREIBUNG" DescriptionStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" QuantityHeader="ANZAHL" QuantityStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" ItemPriceHeader="EINZELPREIS" ItemPriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;" PriceHeader="PREIS" PriceStyle="width:80px;background-color:#FFF;color:#647378;border: 1px solid #838F93;text-transform:uppercase;padding:5px;text-align:center;">
11
+ <Description>BESTELLUNGSBESCHREIBUNG</Description>
12
+ <Item>
13
+ <Description Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">Tori Tank</Description>
14
+ <Quantity Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">1</Quantity>
15
+ <ItemPrice Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60.00</ItemPrice>
16
+ <Price Style="background-color: #FFF;color: #647378; border: 1px solid #838F93;text-align:center;padding:5px 0px;">60</Price>
17
+ </Item>
18
+ <SubTotal Header="ZWISCHENSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;" Style="background-color:#FFF;color:#647378;border:none;font-weight:normal;padding:3px 20px;">60.00</SubTotal>
19
+ <ShippingCosts Header="Flat Rate - Fixed" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">5.00</ShippingCosts>
20
+ <Discount Header="Zahlungsrabatt (Absoluter Wert)" HeaderStyle="background-color: #FFF; color: #647378;font-weight:normal;padding:3px;" Style="background-color:#FFF;color:#647378;border:none;padding:3px 20px;">-5.00</Discount>
21
+ </ShoppingCart>
22
+ <Price Header="ENDSUMME" HeaderStyle="background-color:#FFF;color: #647378;padding:3px;font-weight:normal;border-top: 1px solid #838F93;" Style="background-color:#FFF;color:#005AC1;border:none;padding:4px;font-weight:bold;padding:3px 20px;font-size:14px;border-top: 1px solid #838F93;">60.00</Price>
23
+ <Currency>EUR</Currency>
24
+ <Customer Id="141">P Z</Customer>
25
+ <BillingAddr Mode="ReadOnly">
26
+ <Name Birthday="1970-01-01">P Z</Name>
27
+ <Street>Testanschrift</Street>
28
+ <Street2>1</Street2>
29
+ <Zip>1234</Zip>
30
+ <City>Testhausen</City>
31
+ <State>Wien</State>
32
+ <Country Code="AT"/>
33
+ <Email>hallodriho@gmail.com</Email>
34
+ <Phone>+43123456789</Phone>
35
+ </BillingAddr>
36
+ <ShippingAddr Mode="ReadOnly">
37
+ <Name Birthday="1970-01-01">P Z</Name>
38
+ <Street>Testanschrift</Street>
39
+ <Street2>1</Street2>
40
+ <Zip>1234</Zip>
41
+ <City>Testhausen</City>
42
+ <State>Wien</State>
43
+ <Country Code="AT"/>
44
+ <Email>hallodriho@gmail.com</Email>
45
+ <Phone>+43123456789</Phone>
46
+ </ShippingAddr>
47
+ <URL>
48
+ <Success>http://sadriu.selfhost.eu/magento/mpay24/payment/guestsuccess/?tid=145000020</Success>
49
+ <Error>http://sadriu.selfhost.eu/magento/mpay24/payment/error/?TID=145000020</Error>
50
+ <Confirmation>http://sadriu.selfhost.eu/magento/mpay24/payment/confirmation/</Confirmation>
51
+ <Cancel>http://sadriu.selfhost.eu/magento/mpay24/payment/cancel/?TID=145000020</Cancel>
52
+ </URL>
53
+ </Order>
app/code/community/Mpay24/Mpay24/Model/Method/Selectpayment.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Selectpayment.php 6252 2015-03-26 15:57:57Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
@@ -68,7 +68,7 @@ abstract class Mpay24_Mpay24_Model_Method_Selectpayment extends Mpay24_Mpay24_Mo
68
  $payment->setTransactionId($payment->getOrder()->getIncrementId())->setIsTransactionClosed(1)->save();
69
  $transaction = $payment->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER)->save();
70
 
71
- $payment->setAdditionalInformation('user_field', MPay24MagentoShop::MAGENTO_VERSION.substr($payment->getOrder()->getIncrementId(),0,100).'_'.date('Y-m-d'));
72
 
73
  $payment->setAdditionalInformation('confirmed', "")->save();
74
 
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Selectpayment.php 6413 2015-07-14 12:50:34Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
68
  $payment->setTransactionId($payment->getOrder()->getIncrementId())->setIsTransactionClosed(1)->save();
69
  $transaction = $payment->addTransaction(Mage_Sales_Model_Order_Payment_Transaction::TYPE_ORDER)->save();
70
 
71
+ $payment->setAdditionalInformation('user_field', MAGENTO_VERSION.substr($payment->getOrder()->getIncrementId(),0,100).'_'.date('Y-m-d'));
72
 
73
  $payment->setAdditionalInformation('confirmed', "")->save();
74
 
app/code/community/Mpay24/Mpay24/Model/Selectpayment.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: Selectpayment.php 6402 2015-07-08 09:22:01Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
@@ -61,19 +61,9 @@ class Mpay24_Mpay24_Model_Selectpayment extends Mpay24_Mpay24_Model_Method_Selec
61
  case MPay24MagentoShop::PAYMENT_TYPE_SALE:
62
  $payment = $this->getInfoInstance();
63
  $order = $payment->getOrder();
64
- $order->setCanSendNewEmailFlag(false);
65
  $payment->setAmountAuthorized($order->getTotalDue());
66
  $payment->setBaseAmountAuthorized($order->getBaseTotalDue());
67
-
68
- $order = $payment->getOrder();
69
- $order->setCanSendNewEmailFlag(false);
70
-
71
- // $payment->setAdditionalInformation('amex_addr_ver', "UNKNOWN")->save();
72
- // $payment->setAdditionalInformation('amex_cid_ver', "UNKNOWN")->save();
73
-
74
- // $stateObject->setState(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT);
75
- // $stateObject->setStatus('pending_payment');
76
- // $stateObject->setIsNotified(false);
77
  break;
78
  default:
79
  break;
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: Selectpayment.php 6413 2015-07-14 12:50:34Z anna $
20
  */
21
 
22
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
61
  case MPay24MagentoShop::PAYMENT_TYPE_SALE:
62
  $payment = $this->getInfoInstance();
63
  $order = $payment->getOrder();
 
64
  $payment->setAmountAuthorized($order->getTotalDue());
65
  $payment->setBaseAmountAuthorized($order->getBaseTotalDue());
66
+
 
 
 
 
 
 
 
 
 
67
  break;
68
  default:
69
  break;
app/code/community/Mpay24/Mpay24/controllers/PaymentController.php CHANGED
@@ -16,7 +16,7 @@
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
- * @version $Id: PaymentController.php 6401 2015-07-08 09:18:00Z anna $
20
  */
21
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
22
 
@@ -55,7 +55,7 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
55
  $order->loadByIncrementId($this->getRequest()->getParam('TID'));
56
 
57
  Mage::log('mPAY24 Extension (confirmationAction): Confirmation processing DONE! Confirmed: '.$order->getPayment()->getAdditionalInformation('confirmed').'');
58
- $this->getResponse()->setBody("OK: " . MPay24MagentoShop::MAGENTO_VERSION . " - confirmation received");
59
  } else {
60
  Mage::throwException(Mage::helper('core')->__('ERROR (mPAY24 Extension): Confirmation parameters are not as expected!'));
61
  }
@@ -282,90 +282,9 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
282
 
283
  $order->getPayment()->setAdditionalInformation('confirmed', $status)->save();
284
 
285
- if($mPAY24Result->getParam('BRAND') == 'AMEX') {
286
- $addr_ver = Mage::helper('mpay24')->__("The 'AMEX_ADDR_VER' parameter was not returned!");
287
 
288
- if($mPAY24Result->getParam('AMEX_ADDR_VER')) {
289
- switch ($mPAY24Result->getParam('AMEX_ADDR_VER')) {
290
- case "Y":
291
- $addr_ver = Mage::helper('mpay24')->__("Yes, Customer Address and Postal Code are both correct.");
292
- break;
293
- case "N":
294
- $addr_ver = Mage::helper('mpay24')->__("No, Customer Address and Postal Code are both incorrect.");
295
- break;
296
- case "A":
297
- $addr_ver = Mage::helper('mpay24')->__("Customer Address only correct.");
298
- break;
299
- case "Z":
300
- $addr_ver = Mage::helper('mpay24')->__("Customer Postal Code only correct.");
301
- break;
302
- case "U":
303
- $addr_ver = Mage::helper('mpay24')->__("Information unavailable.");
304
- break;
305
- case "S":
306
- $addr_ver = Mage::helper('mpay24')->__("SE not allowed AAV function.");
307
- break;
308
- case "R":
309
- $addr_ver = Mage::helper('mpay24')->__("System unavailable; retry.");
310
- break;
311
- case "L":
312
- $addr_ver = Mage::helper('mpay24')->__("Customer Name and Postal Code match.");
313
- break;
314
- case "M":
315
- $addr_ver = Mage::helper('mpay24')->__("Customer Name, Address and Postal Code match.");
316
- break;
317
- case "O":
318
- $addr_ver = Mage::helper('mpay24')->__("Customer Name and Address match.");
319
- break;
320
- case "K":
321
- $addr_ver = Mage::helper('mpay24')->__("Customer Name matches.");
322
- break;
323
- case "D":
324
- $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Postal Code matches.");
325
- break;
326
- case "E":
327
- $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Address and Postal Code match.");
328
- break;
329
- case "F":
330
- $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Address matches.");
331
- break;
332
- case "W":
333
- $addr_ver = Mage::helper('mpay24')->__("No, Customer Name, Address and Postal Code are all incorrect.");
334
- break;
335
- default:
336
- $addr_ver = Mage::helper('mpay24')->__("Unknown returned value:") . " '" . $mPAY24Result->getParam('AMEX_ADDR_VER') . "'";
337
- break;
338
- }
339
-
340
- }
341
- $order->getPayment()->setAdditionalInformation('amex_addr_ver', $addr_ver)->save();
342
-
343
- $cid_ver = Mage::helper('mpay24')->__("The 'AMEX_CVC_VER' parameter was not returned!");
344
-
345
- if($mPAY24Result->getParam('AMEX_CVC_VER')) {
346
- switch ($mPAY24Result->getParam('AMEX_CVC_VER')) {
347
- case "Y":
348
- $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC matched.");
349
- break;
350
- case "N":
351
- $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC did not match.");
352
- break;
353
- case "U":
354
- $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC was not checked.");
355
- break;
356
- default:
357
- $cid_ver = Mage::helper('mpay24')->__("Unknown returned value:") . " '" . $mPAY24Result->getParam('AMEX_CVC_VER') . "'";
358
- break;
359
- }
360
- }
361
-
362
- $order->getPayment()->setAdditionalInformation('amex_cid_ver', $cid_ver)->save();
363
-
364
-
365
- if($mPAY24Result->getParam('AMEX_CVC_VER'))
366
- $order->getPayment()->setAdditionalInformation('amex_cid_ver', $mPAY24Result->getParam('AMEX_CVC_VER'))->save();
367
- }
368
-
369
  switch ($res) {
370
  case "OK":
371
  if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
@@ -383,301 +302,18 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
383
  $order->sendNewOrderEmail()->save();
384
  Mage::log("mPAY24 Extension: New order mail sent!!!");
385
  }
386
-
387
 
388
  if($status != 'ERROR' && $order->getState() == Mage_Sales_Model_Order::STATE_CANCELED && Mage::getStoreConfig('mpay24/mpay24/notifyForFalseNOK')) {
389
- $request = $this->getRequest();
390
-
391
- $template = $this->_initTemplate('id');
392
-
393
- $template->setTemplateSubject(Mage::helper('mpay24')->__("ATTENTION!"))
394
- ->setTemplateCode('FALSE_NOK')
395
- ->setTemplateText('<table>
396
- <thead>
397
- <tr>
398
- <th>'.Mage::helper('mpay24')->__("A SUCCESSFUL confirmation occured for an already canceled order!").'</th>
399
- </tr>
400
- </thead>
401
- <tbody>
402
- <tr>
403
- <td>
404
- <p>
405
- {{var reason}}
406
- </p>
407
- </td>
408
- </tr>
409
- </tbody>
410
- </table>');
411
-
412
- // The Id you just marked...
413
- if (!$template->getId())
414
- $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_HTML);
415
-
416
- if($request->getParam('_change_type_flag')) {
417
- $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_TEXT);
418
- $template->setTemplateStyles('');
419
- }
420
-
421
- $template->save();
422
-
423
- // Define the sender, here we query Magento default email (in the configuration)
424
- // For customer support email, use : 'trans_email/ident_support/...'
425
- $sender = Array('name' => Mage::getStoreConfig('trans_email/ident_general/name'),
426
- 'email' => Mage::getStoreConfig('trans_email/ident_general/email'));
427
-
428
- // Set you store
429
- // This information may be taken from the current logged in user
430
- $store = Mage::app()->getStore();
431
-
432
- // In this array, you set the variables you use in your template
433
- $vars = Array(
434
- 'reason' => Mage::helper('mpay24')->__("ATTENTION! - It is possible that the payment for the order ID '") .
435
- $order->getIncrementId() . Mage::helper('mpay24')->__("' was SUCCESSFUL, although the order is set as 'Canceled'! Please check in the mPAY24 Merchant Interface (https://www.mpay24.com) whether the amount was BILLED!"));
436
-
437
- // You don't care about this...
438
- $translate = Mage::getSingleton('core/translate');
439
-
440
- // Send your email
441
- Mage::getModel('core/email_template')->sendTransactional($template->getId(),
442
- $sender,
443
- Mage::getStoreConfig('trans_email/ident_general/email'),
444
- Mage::getStoreConfig('trans_email/ident_general/name'),
445
- $vars,
446
- $store->getId());
447
-
448
- // You don't care as well
449
- $translate->setTranslateInline(true);
450
-
451
- $template->delete();
452
-
453
- return $orderHistoryText . "\nThe order could not be billed!";
454
  }
455
 
456
- switch($status) {
457
- case 'RESERVED':
458
- $this->setBillpayData($order, $mPAY24Result);
459
-
460
- $order->getPayment()->authorize(false, $mPAY24Result->getParam('PRICE')/100)->save();
461
- $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
462
- break;
463
- case 'BILLED':
464
- $this->setBillpayData($order, $mPAY24Result);
465
-
466
- if($order->getInvoiceCollection()->count() == 0)
467
- $invoice = $this->_createInvoice($order);
468
-
469
- // $order->addStatusHistoryComment(Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
470
-
471
- $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, 'processing', Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true);
472
- // $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
473
-
474
- $order->save();
475
- break;
476
- case 'CREDITED':
477
- $this->setBillpayData($order, $mPAY24Result);
478
-
479
- if ($order->getTotalOnlineRefunded() == 0.00) {
480
- $creditmemo = Mage::getModel('sales/service_order', $order)
481
- ->prepareCreditmemo()
482
- ->setPaymentRefundDisallowed(true)
483
- ->setAutomaticallyCreated(true)
484
- ->register();
485
-
486
- $creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
487
- $creditmemo->save();
488
-
489
- $order->getPayment()->refund($creditmemo)->save();
490
- }
491
-
492
-
493
- $order->addStatusHistoryComment(Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
494
- $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
495
- $order->save();
496
- break;
497
- case 'SUSPENDED':
498
- $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
499
- $order->save();
500
- break;
501
- case 'REVERSED':
502
- if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
503
- foreach ($order->getInvoiceCollection() as $orderInvoice) {
504
- $order->getPayment()->setAdditionalInformation('MIFReverse', true)->save();
505
- $order->getPayment()->void($orderInvoice)->save();
506
- }
507
-
508
- $order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
509
- $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
510
- $order->save();
511
- break;
512
- case 'ERROR':
513
- $this->setBillpayData($order, $mPAY24Result);
514
-
515
- $order->getPayment()->setAdditionalInformation('error', true)->save();
516
-
517
- $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text') . " (" . $this->getRequest()->getClientIp() . ")");
518
- $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text'))->save();
519
- $order->save();
520
- break;
521
- default:
522
- break;
523
- }
524
-
525
- if(in_array($mPAY24Result->getParam('TSTATUS'), array("RESERVED", "BILLED", "CREDITED")) && Mage::getStoreConfig('mpay24/mpay24/billingAddressMode') == "ReadWrite") {
526
- if(!$mPAY24Result->getParam('BILLING_ADDR') || $mPAY24Result->getParam('BILLING_ADDR') == '') {
527
- $billingAddressMode = new Mage_Core_Model_Config();
528
- $billingAddressMode->saveConfig('mpay24/mpay24/billingAddressMode', 'ReadOnly', 'default', "");
529
-
530
- $request = $this->getRequest();
531
-
532
- $template = $this->_initTemplate('id');
533
 
534
- $template->setTemplateSubject(Mage::helper('mpay24')->__("ATTENTION!"))
535
- ->setTemplateCode('ADDR_MODE')
536
- ->setTemplateText('<table>
537
- <thead>
538
- <tr>
539
- <th>'.Mage::helper('mpay24')->__("The billing address was not returned by mPAY24!").'</th>
540
- </tr>
541
- </thead>
542
- <tbody>
543
- <tr>
544
- <td>
545
- <p>
546
- {{var reason}}
547
- </p>
548
- </td>
549
- </tr>
550
- </tbody>
551
- </table>');
552
-
553
- // The Id you just marked...
554
- if (!$template->getId())
555
- $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_HTML);
556
-
557
- if($request->getParam('_change_type_flag')) {
558
- $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_TEXT);
559
- $template->setTemplateStyles('');
560
- }
561
-
562
- $template->save();
563
-
564
- // Define the sender, here we query Magento default email (in the configuration)
565
- // For customer support email, use : 'trans_email/ident_support/...'
566
- $sender = Array('name' => Mage::getStoreConfig('trans_email/ident_general/name'),
567
- 'email' => Mage::getStoreConfig('trans_email/ident_general/email'));
568
-
569
- // Set you store
570
- // This information may be taken from the current logged in user
571
- $store = Mage::app()->getStore();
572
-
573
- // In this array, you set the variables you use in your template
574
- $vars = Array(
575
- 'reason' => Mage::helper('mpay24')->__("ATTENTION! - It is possible that the billing address for the order ID '") .
576
- $order->getIncrementId() . Mage::helper('mpay24')->__("' was changed by the customer, but not in your shop! The billing address mode was set back to 'ReadOnly'! If you want to use the mode 'ReadWrite', the variable 'BILLING_ADDR' has to be activated for the 'TRANSACTIONSTATUS' request by mPAY24. Please contact (including your merchant ID '") . Mage::getStoreConfig('mpay24/mpay24as/merchantid')
577
- . Mage::helper('mpay24')->__("') mPAY24 (support@mpay24.com)!"));
578
-
579
- // You don't care about this...
580
- $translate = Mage::getSingleton('core/translate');
581
-
582
- // Send your email
583
- Mage::getModel('core/email_template')->sendTransactional($template->getId(),
584
- $sender,
585
- Mage::getStoreConfig('trans_email/ident_general/email'),
586
- Mage::getStoreConfig('trans_email/ident_general/name'),
587
- $vars,
588
- $store->getId());
589
-
590
- // You don't care as well
591
- $translate->setTranslateInline(true);
592
-
593
- $template->delete();
594
- } else {
595
- $billingAddress = new DOMDocument();
596
- $billingAddress->loadXML(trim($mPAY24Result->getParam('BILLING_ADDR')));
597
- $billingAddress->saveXML();
598
-
599
- $name = $billingAddress->getElementsByTagName("Name")->item(0)->nodeValue;
600
- $street = $billingAddress->getElementsByTagName("Street")->item(0)->nodeValue;
601
- $street2 = $billingAddress->getElementsByTagName("Street2")->item(0)->nodeValue;
602
- $zip = $billingAddress->getElementsByTagName("Zip")->item(0)->nodeValue;
603
- $city = $billingAddress->getElementsByTagName("City")->item(0)->nodeValue;
604
- $countryCode = $billingAddress->getElementsByTagName("Country")->item(0)->getAttribute("code");
605
-
606
- //Build billing address for customer, for checkout
607
- if(strpos($name, " "))
608
- $_billing_address = array (
609
- 'firstname' => substr($name, 0, strpos($name, " ")),
610
- 'lastname' => substr($name, strpos($name, " ")+1),
611
- 'street' => array (
612
- '0' => $street,
613
- '1' => $street2,
614
- ),
615
-
616
- 'city' => $city,
617
- 'postcode' => $zip,
618
- 'country_id' => $countryCode,
619
- 'prefix' => '',
620
- 'middlename' => '',
621
- 'suffix' => '',
622
- 'company' => '',
623
- 'region' => '',
624
- 'region_id' => '',
625
- 'telephone' => '',
626
- 'fax' => ''
627
- );
628
- else
629
- $_billing_address = array (
630
- 'firstname' => $name,
631
- 'lastname' => '',
632
- 'street' => array (
633
- '0' => $street,
634
- '1' => $street2,
635
- ),
636
-
637
- 'city' => $city,
638
- 'postcode' => $zip,
639
- 'country_id' => $countryCode,
640
- 'prefix' => '',
641
- 'middlename' => '',
642
- 'suffix' => '',
643
- 'company' => '',
644
- 'region' => '',
645
- 'region_id' => '',
646
- 'telephone' => '',
647
- 'fax' => ''
648
- );
649
-
650
- if(Mage::helper('customer')->isLoggedIn()) {
651
- $addressAlreadySaved = false;
652
-
653
- foreach(Mage::getSingleton('customer/session')->getCustomer()->getAddressesCollection() as $a)
654
- if($a->getFirstname() == substr($name, 0, strpos($name, " ")) && $a->getLastname() == substr($name, strpos($name, " ")+1)
655
- && $a->getStreet1() == $street && $a->getStreet2() == $street2 && $a->getCity() == $city
656
- && $a->getPostcode() == $zip && $a->getCountry() == $countryCode)
657
- $addressAlreadySaved = true;
658
-
659
- if(!$addressAlreadySaved) {
660
- $billAddress = Mage::getModel('customer/address');
661
- $billAddress->setData($_billing_address)
662
- ->setCustomerId(Mage::getSingleton('customer/session')->getCustomer()->getId())
663
- ->setIsDefaultBilling('0')
664
- ->setIsDefaultShipping('0')
665
- ->setSaveInAddressBook('1');
666
-
667
- $billAddress->save();
668
- }
669
- }
670
-
671
- // set Billing Address
672
- $addressId = $order->getBillingAddress()->getId();
673
- $address = Mage::getModel('sales/order_address')->load($addressId);
674
- $address->addData($_billing_address);
675
- $address->implodeStreetAddress()->save();
676
-
677
- $order->setBillingAddress($address);
678
- $order->save();
679
- }
680
- }
681
  } else {
682
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
683
  $order->cancel($order->getPayment())->save();
@@ -706,25 +342,6 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
706
  return $orderHistoryText;
707
  }
708
 
709
- protected function _initTemplate($idFieldName = 'template_id') {
710
- Mage::log('mPAY24 Extension: initTemplate called');
711
- $this->_title($this->__('System'))->_title($this->__('Transactional Emails'));
712
-
713
- $id = (int)$this->getRequest()->getParam($idFieldName);
714
- $model = Mage::getModel('adminhtml/email_template');
715
-
716
- if ($id)
717
- $model->load($id);
718
-
719
- if (!Mage::registry('email_template'))
720
- Mage::register('email_template', $model);
721
-
722
- if (!Mage::registry('current_email_template'))
723
- Mage::register('current_email_template', $model);
724
-
725
- return $model;
726
- }
727
-
728
  public function _createInvoice($order) {
729
  $arrBacktrace = debug_backtrace();
730
  Mage::log('mPAY24 Extension ('.$arrBacktrace[2]['function'].'): create invoice called');
@@ -791,6 +408,109 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
791
  $parentTransaction->setIsClosed(true)->save();
792
  }
793
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
794
 
795
  private function setBillpayData($order, $mPAY24Result) {
796
  if($mPAY24Result->getParam('REFERENCE'))
@@ -812,4 +532,300 @@ class Mpay24_Mpay24_PaymentController extends Mage_Core_Controller_Front_Action
812
  $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
813
  ;
814
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
815
  }
16
  * @package Mpay24_Mpay24
17
  * @author Anna Sadriu (mPAY24 GmbH)
18
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: PaymentController.php 6413 2015-07-14 12:50:34Z anna $
20
  */
21
  include_once Mage::getBaseDir('code')."/community/Mpay24/Mpay24/Model/Api/MPay24MagentoShop.php";
22
 
55
  $order->loadByIncrementId($this->getRequest()->getParam('TID'));
56
 
57
  Mage::log('mPAY24 Extension (confirmationAction): Confirmation processing DONE! Confirmed: '.$order->getPayment()->getAdditionalInformation('confirmed').'');
58
+ $this->getResponse()->setBody("OK: " . MAGENTO_VERSION . " - confirmation received");
59
  } else {
60
  Mage::throwException(Mage::helper('core')->__('ERROR (mPAY24 Extension): Confirmation parameters are not as expected!'));
61
  }
282
 
283
  $order->getPayment()->setAdditionalInformation('confirmed', $status)->save();
284
 
285
+ if($mPAY24Result->getParam('BRAND') == 'AMEX')
286
+ $this->setAmexData($order, $mPAY24Result);
287
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
288
  switch ($res) {
289
  case "OK":
290
  if($order->getPayment()->getAdditionalInformation('user_field') == $mPAY24Result->getParam('USER_FIELD')) {
302
  $order->sendNewOrderEmail()->save();
303
  Mage::log("mPAY24 Extension: New order mail sent!!!");
304
  }
 
305
 
306
  if($status != 'ERROR' && $order->getState() == Mage_Sales_Model_Order::STATE_CANCELED && Mage::getStoreConfig('mpay24/mpay24/notifyForFalseNOK')) {
307
+ $orderHistoryText .= $this->sendEmailForNOKTransactions($orderHistoryText);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  }
309
 
310
+ $this->transactionStatusHandler($order, $mPAY24Result, $paymentHistoryText);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
 
312
+ if(in_array($mPAY24Result->getParam('TSTATUS'), array("RESERVED", "BILLED", "CREDITED")) && Mage::getStoreConfig('mpay24/mpay24/billingAddressMode') == "ReadWrite")
313
+ if(!$mPAY24Result->getParam('BILLING_ADDR') || $mPAY24Result->getParam('BILLING_ADDR') == '')
314
+ $this->sendEmailForBillingAddr();
315
+ else
316
+ $this->setNewBillingAddr($order, $mPAY24Result);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  } else {
318
  if($order->canCancel() && $order->getState() != Mage_Sales_Model_Order::STATE_CANCELED && $order->getData('status') != Mage_Sales_Model_Order::STATE_CANCELED)
319
  $order->cancel($order->getPayment())->save();
342
  return $orderHistoryText;
343
  }
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  public function _createInvoice($order) {
346
  $arrBacktrace = debug_backtrace();
347
  Mage::log('mPAY24 Extension ('.$arrBacktrace[2]['function'].'): create invoice called');
408
  $parentTransaction->setIsClosed(true)->save();
409
  }
410
  }
411
+
412
+ protected function _initTemplate($idFieldName = 'template_id') {
413
+ Mage::log('mPAY24 Extension: initTemplate called');
414
+ $this->_title($this->__('System'))->_title($this->__('Transactional Emails'));
415
+
416
+ $id = (int)$this->getRequest()->getParam($idFieldName);
417
+ $model = Mage::getModel('adminhtml/email_template');
418
+
419
+ if ($id)
420
+ $model->load($id);
421
+
422
+ if (!Mage::registry('email_template'))
423
+ Mage::register('email_template', $model);
424
+
425
+ if (!Mage::registry('current_email_template'))
426
+ Mage::register('current_email_template', $model);
427
+
428
+ return $model;
429
+ }
430
+
431
+ private function setAmexData($order, $mPAY24Result) {
432
+ $addr_ver = Mage::helper('mpay24')->__("The 'AMEX_ADDR_VER' parameter was not returned!");
433
+
434
+ if($mPAY24Result->getParam('AMEX_ADDR_VER')) {
435
+ switch ($mPAY24Result->getParam('AMEX_ADDR_VER')) {
436
+ case "Y":
437
+ $addr_ver = Mage::helper('mpay24')->__("Yes, Customer Address and Postal Code are both correct.");
438
+ break;
439
+ case "N":
440
+ $addr_ver = Mage::helper('mpay24')->__("No, Customer Address and Postal Code are both incorrect.");
441
+ break;
442
+ case "A":
443
+ $addr_ver = Mage::helper('mpay24')->__("Customer Address only correct.");
444
+ break;
445
+ case "Z":
446
+ $addr_ver = Mage::helper('mpay24')->__("Customer Postal Code only correct.");
447
+ break;
448
+ case "U":
449
+ $addr_ver = Mage::helper('mpay24')->__("Information unavailable.");
450
+ break;
451
+ case "S":
452
+ $addr_ver = Mage::helper('mpay24')->__("SE not allowed AAV function.");
453
+ break;
454
+ case "R":
455
+ $addr_ver = Mage::helper('mpay24')->__("System unavailable; retry.");
456
+ break;
457
+ case "L":
458
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name and Postal Code match.");
459
+ break;
460
+ case "M":
461
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name, Address and Postal Code match.");
462
+ break;
463
+ case "O":
464
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name and Address match.");
465
+ break;
466
+ case "K":
467
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name matches.");
468
+ break;
469
+ case "D":
470
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Postal Code matches.");
471
+ break;
472
+ case "E":
473
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Address and Postal Code match.");
474
+ break;
475
+ case "F":
476
+ $addr_ver = Mage::helper('mpay24')->__("Customer Name incorrect, Address matches.");
477
+ break;
478
+ case "W":
479
+ $addr_ver = Mage::helper('mpay24')->__("No, Customer Name, Address and Postal Code are all incorrect.");
480
+ break;
481
+ default:
482
+ $addr_ver = Mage::helper('mpay24')->__("Unknown returned value:") . " '" . $mPAY24Result->getParam('AMEX_ADDR_VER') . "'";
483
+ break;
484
+ }
485
+
486
+ }
487
+ $order->getPayment()->setAdditionalInformation('amex_addr_ver', $addr_ver)->save();
488
+
489
+ $cid_ver = Mage::helper('mpay24')->__("The 'AMEX_CVC_VER' parameter was not returned!");
490
+
491
+ if($mPAY24Result->getParam('AMEX_CVC_VER')) {
492
+ switch ($mPAY24Result->getParam('AMEX_CVC_VER')) {
493
+ case "Y":
494
+ $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC matched.");
495
+ break;
496
+ case "N":
497
+ $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC did not match.");
498
+ break;
499
+ case "U":
500
+ $cid_ver = Mage::helper('mpay24')->__("CID/4DBC/4CSC was not checked.");
501
+ break;
502
+ default:
503
+ $cid_ver = Mage::helper('mpay24')->__("Unknown returned value:") . " '" . $mPAY24Result->getParam('AMEX_CVC_VER') . "'";
504
+ break;
505
+ }
506
+ }
507
+
508
+ $order->getPayment()->setAdditionalInformation('amex_cid_ver', $cid_ver)->save();
509
+
510
+
511
+ if($mPAY24Result->getParam('AMEX_CVC_VER'))
512
+ $order->getPayment()->setAdditionalInformation('amex_cid_ver', $mPAY24Result->getParam('AMEX_CVC_VER'))->save();
513
+ }
514
 
515
  private function setBillpayData($order, $mPAY24Result) {
516
  if($mPAY24Result->getParam('REFERENCE'))
532
  $order->getPayment()->setAdditionalInformation('reference', $mPAY24Result->getParam('REFERENCE'))->save();
533
  ;
534
  }
535
+
536
+ private function setNewBillingAddr($order, $mPAY24Result) {
537
+ $billingAddress = new DOMDocument();
538
+ $billingAddress->loadXML(trim($mPAY24Result->getParam('BILLING_ADDR')));
539
+ $billingAddress->saveXML();
540
+
541
+ $name = $billingAddress->getElementsByTagName("Name")->item(0)->nodeValue;
542
+ $street = $billingAddress->getElementsByTagName("Street")->item(0)->nodeValue;
543
+ $street2 = $billingAddress->getElementsByTagName("Street2")->item(0)->nodeValue;
544
+ $zip = $billingAddress->getElementsByTagName("Zip")->item(0)->nodeValue;
545
+ $city = $billingAddress->getElementsByTagName("City")->item(0)->nodeValue;
546
+ $countryCode = $billingAddress->getElementsByTagName("Country")->item(0)->getAttribute("code");
547
+
548
+ //Build billing address for customer, for checkout
549
+ if(strpos($name, " "))
550
+ $_billing_address = array (
551
+ 'firstname' => substr($name, 0, strpos($name, " ")),
552
+ 'lastname' => substr($name, strpos($name, " ")+1),
553
+ 'street' => array (
554
+ '0' => $street,
555
+ '1' => $street2,
556
+ ),
557
+
558
+ 'city' => $city,
559
+ 'postcode' => $zip,
560
+ 'country_id' => $countryCode,
561
+ 'prefix' => '',
562
+ 'middlename' => '',
563
+ 'suffix' => '',
564
+ 'company' => '',
565
+ 'region' => '',
566
+ 'region_id' => '',
567
+ 'telephone' => '',
568
+ 'fax' => ''
569
+ );
570
+ else
571
+ $_billing_address = array (
572
+ 'firstname' => $name,
573
+ 'lastname' => '',
574
+ 'street' => array (
575
+ '0' => $street,
576
+ '1' => $street2,
577
+ ),
578
+
579
+ 'city' => $city,
580
+ 'postcode' => $zip,
581
+ 'country_id' => $countryCode,
582
+ 'prefix' => '',
583
+ 'middlename' => '',
584
+ 'suffix' => '',
585
+ 'company' => '',
586
+ 'region' => '',
587
+ 'region_id' => '',
588
+ 'telephone' => '',
589
+ 'fax' => ''
590
+ );
591
+
592
+ if(Mage::helper('customer')->isLoggedIn()) {
593
+ $addressAlreadySaved = false;
594
+
595
+ foreach(Mage::getSingleton('customer/session')->getCustomer()->getAddressesCollection() as $a)
596
+ if($a->getFirstname() == substr($name, 0, strpos($name, " ")) && $a->getLastname() == substr($name, strpos($name, " ")+1)
597
+ && $a->getStreet1() == $street && $a->getStreet2() == $street2 && $a->getCity() == $city
598
+ && $a->getPostcode() == $zip && $a->getCountry() == $countryCode)
599
+ $addressAlreadySaved = true;
600
+
601
+ if(!$addressAlreadySaved) {
602
+ $billAddress = Mage::getModel('customer/address');
603
+ $billAddress->setData($_billing_address)
604
+ ->setCustomerId(Mage::getSingleton('customer/session')->getCustomer()->getId())
605
+ ->setIsDefaultBilling('0')
606
+ ->setIsDefaultShipping('0')
607
+ ->setSaveInAddressBook('1');
608
+
609
+ $billAddress->save();
610
+ }
611
+ }
612
+
613
+ // set Billing Address
614
+ $addressId = $order->getBillingAddress()->getId();
615
+ $address = Mage::getModel('sales/order_address')->load($addressId);
616
+ $address->addData($_billing_address);
617
+ $address->implodeStreetAddress()->save();
618
+
619
+ $order->setBillingAddress($address);
620
+ $order->save();
621
+ }
622
+
623
+ private function sendEmailForNOKTransactions($orderHistoryText) {
624
+ $template = $this->_initTemplate('id');
625
+
626
+ $template->setTemplateSubject(Mage::helper('mpay24')->__("ATTENTION!"))
627
+ ->setTemplateCode('FALSE_NOK')
628
+ ->setTemplateText('<table>
629
+ <thead>
630
+ <tr>
631
+ <th>'.Mage::helper('mpay24')->__("A SUCCESSFUL confirmation occured for an already canceled order!").'</th>
632
+ </tr>
633
+ </thead>
634
+ <tbody>
635
+ <tr>
636
+ <td>
637
+ <p>
638
+ {{var reason}}
639
+ </p>
640
+ </td>
641
+ </tr>
642
+ </tbody>
643
+ </table>');
644
+
645
+ // The Id you just marked...
646
+ if (!$template->getId())
647
+ $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_HTML);
648
+
649
+ if($this->getRequest()->getParam('_change_type_flag')) {
650
+ $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_TEXT);
651
+ $template->setTemplateStyles('');
652
+ }
653
+
654
+ $template->save();
655
+
656
+ // Define the sender, here we query Magento default email (in the configuration)
657
+ // For customer support email, use : 'trans_email/ident_support/...'
658
+ $sender = Array('name' => Mage::getStoreConfig('trans_email/ident_general/name'),
659
+ 'email' => Mage::getStoreConfig('trans_email/ident_general/email'));
660
+
661
+ // Set you store
662
+ // This information may be taken from the current logged in user
663
+ $store = Mage::app()->getStore();
664
+
665
+ // In this array, you set the variables you use in your template
666
+ $vars = Array(
667
+ 'reason' => Mage::helper('mpay24')->__("ATTENTION! - It is possible that the payment for the order ID '") .
668
+ $order->getIncrementId() . Mage::helper('mpay24')->__("' was SUCCESSFUL, although the order is set as 'Canceled'! Please check in the mPAY24 Merchant Interface (https://www.mpay24.com) whether the amount was BILLED!"));
669
+
670
+ // You don't care about this...
671
+ $translate = Mage::getSingleton('core/translate');
672
+
673
+ // Send your email
674
+ Mage::getModel('core/email_template')->sendTransactional($template->getId(),
675
+ $sender,
676
+ Mage::getStoreConfig('trans_email/ident_general/email'),
677
+ Mage::getStoreConfig('trans_email/ident_general/name'),
678
+ $vars,
679
+ $store->getId());
680
+
681
+ // You don't care as well
682
+ $translate->setTranslateInline(true);
683
+
684
+ $template->delete();
685
+
686
+ return $orderHistoryText . "\nThe order could not be billed!";
687
+ }
688
+
689
+ private function sendEmailForBillingAddr() {
690
+ $billingAddressMode = new Mage_Core_Model_Config();
691
+ $billingAddressMode->saveConfig('mpay24/mpay24/billingAddressMode', 'ReadOnly', 'default', "");
692
+
693
+ $request = $this->getRequest();
694
+
695
+ $template = $this->_initTemplate('id');
696
+
697
+ $template->setTemplateSubject(Mage::helper('mpay24')->__("ATTENTION!"))
698
+ ->setTemplateCode('ADDR_MODE')
699
+ ->setTemplateText('<table>
700
+ <thead>
701
+ <tr>
702
+ <th>'.Mage::helper('mpay24')->__("The billing address was not returned by mPAY24!").'</th>
703
+ </tr>
704
+ </thead>
705
+ <tbody>
706
+ <tr>
707
+ <td>
708
+ <p>
709
+ {{var reason}}
710
+ </p>
711
+ </td>
712
+ </tr>
713
+ </tbody>
714
+ </table>');
715
+
716
+ // The Id you just marked...
717
+ if (!$template->getId())
718
+ $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_HTML);
719
+
720
+ if($request->getParam('_change_type_flag')) {
721
+ $template->setTemplateType(Mage_Core_Model_Email_Template::TYPE_TEXT);
722
+ $template->setTemplateStyles('');
723
+ }
724
+
725
+ $template->save();
726
+
727
+ // Define the sender, here we query Magento default email (in the configuration)
728
+ // For customer support email, use : 'trans_email/ident_support/...'
729
+ $sender = Array('name' => Mage::getStoreConfig('trans_email/ident_general/name'),
730
+ 'email' => Mage::getStoreConfig('trans_email/ident_general/email'));
731
+
732
+ // Set you store
733
+ // This information may be taken from the current logged in user
734
+ $store = Mage::app()->getStore();
735
+
736
+ // In this array, you set the variables you use in your template
737
+ $vars = Array(
738
+ 'reason' => Mage::helper('mpay24')->__("ATTENTION! - It is possible that the billing address for the order ID '") .
739
+ $order->getIncrementId() . Mage::helper('mpay24')->__("' was changed by the customer, but not in your shop! The billing address mode was set back to 'ReadOnly'! If you want to use the mode 'ReadWrite', the variable 'BILLING_ADDR' has to be activated for the 'TRANSACTIONSTATUS' request by mPAY24. Please contact (including your merchant ID '") . Mage::getStoreConfig('mpay24/mpay24as/merchantid')
740
+ . Mage::helper('mpay24')->__("') mPAY24 (support@mpay24.com)!"));
741
+
742
+ // You don't care about this...
743
+ $translate = Mage::getSingleton('core/translate');
744
+
745
+ // Send your email
746
+ Mage::getModel('core/email_template')->sendTransactional($template->getId(),
747
+ $sender,
748
+ Mage::getStoreConfig('trans_email/ident_general/email'),
749
+ Mage::getStoreConfig('trans_email/ident_general/name'),
750
+ $vars,
751
+ $store->getId());
752
+
753
+ // You don't care as well
754
+ $translate->setTranslateInline(true);
755
+
756
+ $template->delete();
757
+ }
758
+
759
+ private function transactionStatusHandler($order, $mPAY24Result, $paymentHistoryText) {
760
+ switch($mPAY24Result->getParam('TSTATUS')) {
761
+ case 'RESERVED':
762
+ $this->setBillpayData($order, $mPAY24Result);
763
+
764
+ $order->getPayment()->authorize(false, $mPAY24Result->getParam('PRICE')/100)->save();
765
+ $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("RESERVED") . ' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
766
+ break;
767
+ case 'BILLED':
768
+ $this->setBillpayData($order, $mPAY24Result);
769
+
770
+ if (!$order->getEmailSent())
771
+ $order->sendNewOrderEmail()
772
+ ->setIsCustomerNotified(true)
773
+ ->save();
774
+
775
+ if($order->getInvoiceCollection()->count() == 0)
776
+ $invoice = $this->_createInvoice($order);
777
+
778
+ $order->setState(Mage_Sales_Model_Order::STATE_PROCESSING, 'processing', Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("BILLED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true);
779
+
780
+ $order->save();
781
+ break;
782
+ case 'CREDITED':
783
+ $this->setBillpayData($order, $mPAY24Result);
784
+
785
+ if ($order->getTotalOnlineRefunded() == 0.00) {
786
+ $creditmemo = Mage::getModel('sales/service_order', $order)
787
+ ->prepareCreditmemo()
788
+ ->setPaymentRefundDisallowed(true)
789
+ ->setAutomaticallyCreated(true)
790
+ ->register();
791
+
792
+ $creditmemo->addComment(Mage::helper('mpay24')->__("Credit memo has been created automatically through of MI/F crediting!"));
793
+ $creditmemo->save();
794
+
795
+ $order->getPayment()->refund($creditmemo)->save();
796
+ }
797
+
798
+
799
+ $order->addStatusHistoryComment(Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")")->save();
800
+ $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("CREDITED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
801
+ $order->save();
802
+ break;
803
+ case 'SUSPENDED':
804
+ $order->addStatusToHistory(Mage_Sales_Model_Order::STATE_PENDING_PAYMENT, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("SUSPENDED") . ' [ '.$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")");
805
+ $order->save();
806
+ break;
807
+ case 'REVERSED':
808
+ if($order->getState() != Mage_Sales_Model_Order::STATE_CANCELED)
809
+ foreach ($order->getInvoiceCollection() as $orderInvoice) {
810
+ $order->getPayment()->setAdditionalInformation('MIFReverse', true)->save();
811
+ $order->getPayment()->void($orderInvoice)->save();
812
+ }
813
+
814
+ $order->addStatusToHistory($order->getState(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]' . " (" . $this->getRequest()->getClientIp() . ")", true)->save();
815
+ $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("REVERSED") .' [ ' . $mPAY24Result->getParam('CURRENCY') . " " .$order->formatPriceTxt($mPAY24Result->getParam('PRICE')/100).' ]')->save();
816
+ $order->save();
817
+ break;
818
+ case 'ERROR':
819
+ $this->setBillpayData($order, $mPAY24Result);
820
+
821
+ $order->getPayment()->setAdditionalInformation('error', true)->save();
822
+
823
+ $order->addStatusToHistory($order->getStatus(), Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text') . " (" . $this->getRequest()->getClientIp() . ")");
824
+ $order->sendOrderUpdateEmail(true, Mage::helper('mpay24')->__("$paymentHistoryText") . Mage::helper('mpay24')->__("ERROR") . " " . $order->getPayment()->getAdditionalInformation('error_text'))->save();
825
+ $order->save();
826
+ break;
827
+ default:
828
+ break;
829
+ }
830
+ }
831
  }
app/code/community/Mpay24/Mpay24/etc/config.xml CHANGED
@@ -1,11 +1,11 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- @version $Id: config.xml 6403 2015-07-08 09:24:45Z anna $
4
  -->
5
  <config>
6
  <modules>
7
  <Mpay24_Mpay24>
8
- <version>1.6.1</version>
9
  </Mpay24_Mpay24>
10
  </modules>
11
 
1
  <?xml version="1.0"?>
2
  <!--
3
+ @version $Id: config.xml 6413 2015-07-14 12:50:34Z anna $
4
  -->
5
  <config>
6
  <modules>
7
  <Mpay24_Mpay24>
8
+ <version>1.6.2</version>
9
  </Mpay24_Mpay24>
10
  </modules>
11
 
app/code/community/Mpay24/Mpay24/sql/mpay24_setup/mysql4-install-1.6.2.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Mpay24
16
+ * @package Mpay24_Mpay24
17
+ * @author Anna Sadriu (mPAY24 GmbH)
18
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
19
+ * @version $Id: mysql4-install-1.6.1.php 6404 2015-07-08 09:25:24Z anna $
20
+ */
21
+ if(class_exists('Mage_Sales_Model_Resource_Setup'))
22
+ $install = new Mage_Sales_Model_Resource_Setup('sales_setup');
23
+ else
24
+ $install = $this;
25
+
26
+ $install->startSetup();
27
+
28
+ $install->run("DELETE FROM {$this->getTable('core_config_data')} WHERE `path` LIKE '%mpay%'");
29
+
30
+ $install->run("DROP TABLE if exists {$this->getTable('mpay24_debug')};");
31
+
32
+ $install->run("UPDATE {$this->getTable('sales_flat_quote_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
33
+
34
+ $install->run("UPDATE {$this->getTable('sales_flat_order_payment')} SET `method` = 'mpay24' WHERE `method` LIKE 'mpay24_%';");
35
+
36
+ $install->addAttribute('quote_address', 'payment_charge_type', array('type' => 'varchar'));
37
+ $install->addAttribute('quote_address', 'payment_charge', array('type' => 'decimal'));
38
+ $install->addAttribute('quote_address', 'base_payment_charge', array('type' => 'decimal'));
39
+
40
+ $install->addAttribute('order', 'payment_charge_type', array('type' => 'varchar'));
41
+ $install->addAttribute('order', 'payment_charge', array('type' => 'decimal'));
42
+ $install->addAttribute('order', 'base_payment_charge', array('type' => 'decimal'));
43
+
44
+ $install->addAttribute('invoice', 'payment_charge_type', array('type' => 'varchar'));
45
+ $install->addAttribute('invoice', 'payment_charge', array('type' => 'decimal'));
46
+ $install->addAttribute('invoice', 'base_payment_charge', array('type' => 'decimal'));
47
+
48
+ $install->addAttribute('creditmemo', 'payment_charge_type', array('type' => 'varchar'));
49
+ $install->addAttribute('creditmemo', 'payment_charge', array('type' => 'decimal'));
50
+ $install->addAttribute('creditmemo', 'base_payment_charge', array('type' => 'decimal'));
51
+
52
+ $install->endSetup();
53
+ ?>
app/etc/modules/Mpay24_Mpay24.xml CHANGED
@@ -1,6 +1,6 @@
1
  <?xml version="1.0"?>
2
  <!--
3
- * @version $Id: Mpay24_Mpay24.xml 6403 2015-07-08 09:24:45Z anna $
4
  -->
5
  <config>
6
  <modules>
@@ -10,7 +10,7 @@
10
  <depends>
11
  <Mage_Payment />
12
  </depends>
13
- <version>1.6.1</version>
14
  </Mpay24_Mpay24>
15
  </modules>
16
  </config>
1
  <?xml version="1.0"?>
2
  <!--
3
+ * @version $Id: Mpay24_Mpay24.xml 6413 2015-07-14 12:50:34Z anna $
4
  -->
5
  <config>
6
  <modules>
10
  <depends>
11
  <Mage_Payment />
12
  </depends>
13
+ <version>1.6.2</version>
14
  </Mpay24_Mpay24>
15
  </modules>
16
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mPAY24</name>
4
- <version>1.6.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -26,14 +26,13 @@ Die Payment L&#xF6;sung der mPAY24 GmbH unterst&#xFC;tzt folgende Bezahlarten un
26
  &#xD;
27
  &#xD;
28
  Weitere Informationen unter www.mPAY24.com</description>
29
- <notes>1. New setting 'notifyForFalseNOK' added - noifies the shop admin for successful confirmations in case an order is already canceled&#xD;
30
  &#xD;
31
- &#xD;
32
- </notes>
33
  <authors><author><name>Anna Sadriu</name><user>mPAY24</user><email>modules@mpay24.com</email></author></authors>
34
- <date>2015-07-08</date>
35
- <time>09:32:37</time>
36
- <contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="3359dee12a89e6869e5f85aef7b26f50"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="21d8465d7b37afe884a4e1ed61e80974"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="form"><file name="area.phtml" hash="b0561f721ae7b0e9037c47189aa209f3"/><file name="dropDown.phtml" hash="892bac9682d9516b5187dbe90f9fc56d"/><file name="radio.phtml" hash="3bfb65a7091a5dd9c45655a144d1e869"/></dir><dir name="info"><file name="selectpayment.phtml" hash="0c34c3104166b4bc976de6af88d5e950"/></dir></dir></dir><dir name="layout"><file name="mpay24.xml" hash="ff2bd79f4f227fcac136caa5a0932e23"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="info"><dir name="pdf"><file name="selectpayment.phtml" hash="3d2c2739e0ef05596ca60edba8bac8f6"/></dir><file name="selectpayment.phtml" hash="44a8e561d50bfe074b01b9f0f4ca4f78"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mpay24"><dir name="Mpay24"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="858b3c21a873f79fe6225c14f2eb79bd"/></dir><dir name="Invoice"><file name="Totals.php" hash="49b22a320c55911bbda580092bfc7594"/></dir><file name="Totals.php" hash="b55fca1ef8fc64674697c29a68253541"/></dir><file name="Totals.php" hash="6a60d9bffefccfa9ace5d3ee8eb10eba"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Fieldset.php" hash="ad27b13cbb846ff32ae037541824c6a8"/></dir></dir></dir></dir><dir name="Form"><file name="Selectpayment.php" hash="abb875f42800573589619bce4bb485ef"/></dir><file name="Form.php" hash="57aecb5aa4756ac2097410aaabe2d527"/><dir name="Info"><file name="Selectpayment.php" hash="7b4b737862ad124b73ba7c357184d838"/></dir><file name="Mpay24.php" hash="5189a49bc763bfa0b7d6e683da3e0c54"/><file name="ParentRedirect.php" hash="4d7dbbee705cc04172c0ce980720327c"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="b8dda48dc36d26e9ad5c5869045cda39"/></dir><dir name="Invoice"><file name="Totals.php" hash="f00705c4a31d100c9433fedaf4c83a2f"/></dir><file name="Totals.php" hash="af1c20cd43def7669ae22e0fced7660d"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8dd5de8e06853908c0af5689d619405f"/></dir><dir name="Model"><dir name="Api"><file name="MDXI.xsd" hash="3a4f2e33afa884d12dfb01fac9318ac7"/><file name="MPay24Api.php" hash="9de780410405aeba4fb8f1db79f8dcc5"/><file name="MPay24MagentoShop.php" hash="a7a98382f027c7b35b8d226b7148faf6"/><file name="MPay24Shop.php" hash="7c9cda9037d6771950aed259830da52c"/><file name="cacert.pem" hash="bbdf22048274504901419498aa558890"/><file name="curllog.log" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="orderXML.php" hash="5eeee4f6d4ed0e0e2e36929c2c14c9e0"/><dir name="xmls"><file name="Example_MDXI.xml" hash="dddd02e4cdc0905792c1a2a9f3681bfd"/></dir></dir><file name="Config.php" hash="843f9a22c4c624bca04d9ed7efe83bb9"/><dir name="Entity"><file name="Setup.php" hash="89719712defb6f542c6b107b53ec0337"/></dir><dir name="Method"><file name="Abstract.php" hash="c2e0bfe3b0dec8965dde0069473efc41"/><file name="Selectpayment.php" hash="1b1eb95d168d1f54df913a7c2252514c"/></dir><dir name="Mpay24"><file name="Debug.php" hash="6f777ec3f5f993da68068debdf317678"/></dir><dir name="Mysql4"><dir name="Mpay24"><dir name="Debug"><file name="Collection.php" hash="0587f1af86c0d72aec586af5c6be0977"/></dir><file name="Debug.php" hash="bb91b154c60be7db1ff571c78382b3af"/></dir><file name="Setup.php" hash="ac5414ad9fddeb8005fd7953877cb5aa"/></dir><file name="Observer.php" hash="417cf2484d15da2dcc32c3f582078916"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Paymentcharge.php" hash="af5c31bcef53696207e2c19b934ca42a"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Paymentcharge.php" hash="6f34f11c18a75d1a39bd26d890e7f706"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Paymentcharge.php" hash="159fe1fbf65fbbd053da24e4e194a4f0"/></dir></dir></dir></dir><file name="Selectpayment.php" hash="daacab4c69c4d1e19f176c98095b60a3"/><file name="Session.php" hash="268a9b9737dcc4eadf40634c16991270"/><dir name="Source"><file name="AllowedIPs.php" hash="2bbd8f58ea976506c417d8f893318378"/><file name="BillAddr.php" hash="2c5454e3182f1346b51b631ca3d6bcbb"/><file name="ClearingAction.php" hash="a8354348de59296cad357e544586dad8"/><file name="FormTemplate.php" hash="2bc01719f389e2064e90932a0eb99f93"/><file name="PaidOrder.php" hash="3c240e18bafd57d718e035a55a858d8b"/><file name="PaymentCharge.php" hash="4b2a69b104bc278760cbf4466988ec27"/><file name="PaymentsActive.php" hash="4cca6cc364249692a35219c9690832b2"/><file name="Request.php" hash="06dc5c0a1b7698e8ee3792a17cb85623"/><file name="Result.php" hash="755477cf005ef91a5e506859381d9ad2"/><file name="ShoppingCartRowsAction.php" hash="562284cb6fdb0d5926bc0150e41b4a31"/><file name="System.php" hash="8423fb3053afd56825967d95d1f063e3"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Encrypted.php" hash="643cd91d632e5d5d3a3a18695c99d615"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="86701b373ac7d09985fc68710caa45bc"/><file name="PaymentController.php" hash="01fbb40066187786530232dcc9685206"/></dir><dir name="etc"><file name="config.xml" hash="36052353d86d198b4a74d1c044da3caf"/><file name="system.xml" hash="a92fce0219aea7291457c556bd44a496"/></dir><dir name="sql"><dir name="mpay24_setup"><file name="mysql4-install-1.6.0.php" hash="dc4049cf80fd85595f9498dbf451c175"/><file name="mysql4-install-1.6.1.php" hash="0864a3df9ded045efab6439f929ec8fb"/></dir></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
39
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mPAY24</name>
4
+ <version>1.6.2</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
26
  &#xD;
27
  &#xD;
28
  Weitere Informationen unter www.mPAY24.com</description>
29
+ <notes>1. Order Email in case of successful payment &#xD;
30
  &#xD;
31
+ 2. Code improvements</notes>
 
32
  <authors><author><name>Anna Sadriu</name><user>mPAY24</user><email>modules@mpay24.com</email></author></authors>
33
+ <date>2015-07-22</date>
34
+ <time>14:03:45</time>
35
+ <contents><target name="magelocale"><dir name="de_AT"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="de_DE"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="de_CH"><file name="Mpay24_Mpay24.csv" hash="b2e19c4b5634ee84ddfe4736aad7fba5"/></dir><dir name="en_US"><file name="Mpay24_Mpay24.csv" hash="3359dee12a89e6869e5f85aef7b26f50"/></dir></target><target name="mageetc"><dir name="modules"><file name="Mpay24_Mpay24.xml" hash="c9cd18b0f0b4c26b7ef1098e1e5f230a"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="form"><file name="area.phtml" hash="b0561f721ae7b0e9037c47189aa209f3"/><file name="dropDown.phtml" hash="892bac9682d9516b5187dbe90f9fc56d"/><file name="radio.phtml" hash="3bfb65a7091a5dd9c45655a144d1e869"/></dir><dir name="info"><file name="selectpayment.phtml" hash="0c34c3104166b4bc976de6af88d5e950"/></dir></dir></dir><dir name="layout"><file name="mpay24.xml" hash="ff2bd79f4f227fcac136caa5a0932e23"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mpay24"><dir name="info"><dir name="pdf"><file name="selectpayment.phtml" hash="3d2c2739e0ef05596ca60edba8bac8f6"/></dir><file name="selectpayment.phtml" hash="44a8e561d50bfe074b01b9f0f4ca4f78"/></dir></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Mpay24"><dir name="Mpay24"><dir name="Block"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="858b3c21a873f79fe6225c14f2eb79bd"/></dir><dir name="Invoice"><file name="Totals.php" hash="49b22a320c55911bbda580092bfc7594"/></dir><file name="Totals.php" hash="b55fca1ef8fc64674697c29a68253541"/></dir><file name="Totals.php" hash="6a60d9bffefccfa9ace5d3ee8eb10eba"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Fieldset.php" hash="159b15b356009155fdd1a023b107c484"/></dir></dir></dir></dir><dir name="Form"><file name="Selectpayment.php" hash="abb875f42800573589619bce4bb485ef"/></dir><file name="Form.php" hash="57aecb5aa4756ac2097410aaabe2d527"/><dir name="Info"><file name="Selectpayment.php" hash="7b4b737862ad124b73ba7c357184d838"/></dir><file name="Mpay24.php" hash="5189a49bc763bfa0b7d6e683da3e0c54"/><file name="ParentRedirect.php" hash="4d7dbbee705cc04172c0ce980720327c"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><file name="Totals.php" hash="b8dda48dc36d26e9ad5c5869045cda39"/></dir><dir name="Invoice"><file name="Totals.php" hash="f00705c4a31d100c9433fedaf4c83a2f"/></dir><file name="Totals.php" hash="af1c20cd43def7669ae22e0fced7660d"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8dd5de8e06853908c0af5689d619405f"/></dir><dir name="Model"><dir name="Api"><file name="MDXI.xsd" hash="3a4f2e33afa884d12dfb01fac9318ac7"/><file name="MPay24Api.php" hash="9de780410405aeba4fb8f1db79f8dcc5"/><file name="MPay24MagentoShop.php" hash="df4d725ac2d3bb5574c99e0ca68e64c9"/><file name="MPay24Shop.php" hash="7c9cda9037d6771950aed259830da52c"/><file name="cacert.pem" hash="bbdf22048274504901419498aa558890"/><file name="curllog.log" hash="8729641efd6dfe2956995454344d9458"/><file name="orderXML.php" hash="5eeee4f6d4ed0e0e2e36929c2c14c9e0"/><dir name="xmls"><file name="145000006.xml" hash="3ac73da962c884e46d9f1807e6f20657"/><file name="145000007.xml" hash="7ebfd180148d96a55f7c1e1381152188"/><file name="145000008.xml" hash="7129395f898679c12dca91989679f2c4"/><file name="145000009.xml" hash="c932a681dc9283c1b54a1235092b9ba9"/><file name="145000010.xml" hash="6d4ef4bcc878b12fe56d0188521b7a7f"/><file name="145000011.xml" hash="42951836030017bc0134593988680501"/><file name="145000012.xml" hash="ae2f00da95fdae8a6b05661e63c20d5f"/><file name="145000013.xml" hash="a36bff3cba0783a26abf04abbe6417cd"/><file name="145000014.xml" hash="45e79d3e4cf2cddb3e8c6c9147c23dba"/><file name="145000015.xml" hash="a4b9d03a08fe50acd3ab6198fda907bc"/><file name="145000016.xml" hash="abede1eca861462516a91e313d7149ba"/><file name="145000017.xml" hash="21b3c314f7dac8ce5937d1e3ad3264e6"/><file name="145000019.xml" hash="023704f26313345cd368d85e3a70c053"/><file name="145000020.xml" hash="0c614aba175b47da02bd40c68ac5ac74"/><file name="Example_MDXI.xml" hash="dddd02e4cdc0905792c1a2a9f3681bfd"/></dir></dir><file name="Config.php" hash="843f9a22c4c624bca04d9ed7efe83bb9"/><dir name="Entity"><file name="Setup.php" hash="89719712defb6f542c6b107b53ec0337"/></dir><dir name="Method"><file name="Abstract.php" hash="c2e0bfe3b0dec8965dde0069473efc41"/><file name="Selectpayment.php" hash="1dab880679345e6f6283a48374d3eee2"/></dir><dir name="Mpay24"><file name="Debug.php" hash="6f777ec3f5f993da68068debdf317678"/></dir><dir name="Mysql4"><dir name="Mpay24"><dir name="Debug"><file name="Collection.php" hash="0587f1af86c0d72aec586af5c6be0977"/></dir><file name="Debug.php" hash="bb91b154c60be7db1ff571c78382b3af"/></dir><file name="Setup.php" hash="ac5414ad9fddeb8005fd7953877cb5aa"/></dir><file name="Observer.php" hash="417cf2484d15da2dcc32c3f582078916"/><dir name="Sales"><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Paymentcharge.php" hash="af5c31bcef53696207e2c19b934ca42a"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Paymentcharge.php" hash="6f34f11c18a75d1a39bd26d890e7f706"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Paymentcharge.php" hash="159fe1fbf65fbbd053da24e4e194a4f0"/></dir></dir></dir></dir><file name="Selectpayment.php" hash="a7e41be7005f2797acc40fa2683c83b3"/><file name="Session.php" hash="268a9b9737dcc4eadf40634c16991270"/><dir name="Source"><file name="AllowedIPs.php" hash="2bbd8f58ea976506c417d8f893318378"/><file name="BillAddr.php" hash="2c5454e3182f1346b51b631ca3d6bcbb"/><file name="ClearingAction.php" hash="a8354348de59296cad357e544586dad8"/><file name="FormTemplate.php" hash="2bc01719f389e2064e90932a0eb99f93"/><file name="PaidOrder.php" hash="3c240e18bafd57d718e035a55a858d8b"/><file name="PaymentCharge.php" hash="4b2a69b104bc278760cbf4466988ec27"/><file name="PaymentsActive.php" hash="4cca6cc364249692a35219c9690832b2"/><file name="Request.php" hash="06dc5c0a1b7698e8ee3792a17cb85623"/><file name="Result.php" hash="755477cf005ef91a5e506859381d9ad2"/><file name="ShoppingCartRowsAction.php" hash="562284cb6fdb0d5926bc0150e41b4a31"/><file name="System.php" hash="8423fb3053afd56825967d95d1f063e3"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Encrypted.php" hash="643cd91d632e5d5d3a3a18695c99d615"/></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="86701b373ac7d09985fc68710caa45bc"/><file name="PaymentController.php" hash="a79fea0b9e71fb300a48bbe9c464f872"/></dir><dir name="etc"><file name="config.xml" hash="2412a20fc789fa622b5ac2acb191d9ba"/><file name="system.xml" hash="a92fce0219aea7291457c556bd44a496"/></dir><dir name="sql"><dir name="mpay24_setup"><file name="mysql4-install-1.6.0.php" hash="dc4049cf80fd85595f9498dbf451c175"/><file name="mysql4-install-1.6.1.php" hash="0864a3df9ded045efab6439f929ec8fb"/><file name="mysql4-install-1.6.2.php" hash="0864a3df9ded045efab6439f929ec8fb"/></dir></dir></dir></dir></target></contents>
36
  <compatible/>
37
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
38
  </package>