Payson - Version 1.2.4

Version Notes

Supports Magento 1.9

Download this release

Release Info

Developer Oscar Villegas
Extension Payson
Version 1.2.4
Comparing to
See all releases


Code changes from version 1.2.3.1 to 1.2.4

app/code/community/Payson/Payson/Helper/Api.php CHANGED
@@ -367,7 +367,7 @@ class Payson_Payson_Helper_Api {
367
  ->setParameterPost($args);
368
 
369
  $response = Payson_Payson_Helper_Api_Response_Standard
370
- ::FromHttpBody($client->request()->getBody());
371
 
372
  $this->setResponse($response);
373
 
@@ -479,7 +479,7 @@ LIMIT
479
  ->setRawData($http_body, $content_type);
480
 
481
  $response = Payson_Payson_Helper_Api_Response_Validate
482
- ::FromHttpBody($client->request()->getBody());
483
 
484
  $this->setResponse($response);
485
 
@@ -935,7 +935,7 @@ LIMIT
935
  ->setParameterPost($args);
936
 
937
  $response = Payson_Payson_Helper_Api_Response_Standard
938
- ::FromHttpBody($client->request()->getBody());
939
 
940
  $this->setResponse($response);
941
 
@@ -1008,7 +1008,7 @@ LIMIT
1008
  ->setParameterPost($args);
1009
 
1010
  $response = Payson_Payson_Helper_Api_Response_Standard
1011
- ::FromHttpBody($client->request()->getBody());
1012
 
1013
  $this->setResponse($response);
1014
 
367
  ->setParameterPost($args);
368
 
369
  $response = Payson_Payson_Helper_Api_Response_Standard
370
+ ::FromHttpBody($client->request('POST')->getBody());
371
 
372
  $this->setResponse($response);
373
 
479
  ->setRawData($http_body, $content_type);
480
 
481
  $response = Payson_Payson_Helper_Api_Response_Validate
482
+ ::FromHttpBody($client->request('POST')->getBody());
483
 
484
  $this->setResponse($response);
485
 
935
  ->setParameterPost($args);
936
 
937
  $response = Payson_Payson_Helper_Api_Response_Standard
938
+ ::FromHttpBody($client->request('POST')->getBody());
939
 
940
  $this->setResponse($response);
941
 
1008
  ->setParameterPost($args);
1009
 
1010
  $response = Payson_Payson_Helper_Api_Response_Standard
1011
+ ::FromHttpBody($client->request('POST')->getBody());
1012
 
1013
  $this->setResponse($response);
1014
 
app/design/adminhtml/default/default/template/Payson/Payson/total.phtml ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <tr>
2
+ <td class="label"><?php echo($this->__('Invoice Fee')); ?></td>
3
+ <td><?php echo($this->displayPriceAttribute('payson_invoice_fee')); ?></td>
4
+ </tr>
5
+
app/design/frontend/base/default/layout/Payson.xml ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <sales_order_print>
4
+ <reference name="order_totals">
5
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
6
+ </reference>
7
+ </sales_order_print>
8
+ <sales_order_view>
9
+ <reference name="order_totals">
10
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
11
+ </reference>
12
+ </sales_order_view>
13
+ <sales_order_invoice>
14
+ <reference name="invoice_totals">
15
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
16
+ </reference>
17
+ </sales_order_invoice>
18
+ <sales_order_printinvoice>
19
+ <reference name="invoice_totals">
20
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
21
+ </reference>
22
+ </sales_order_printinvoice>
23
+ <sales_order_creditmemo>
24
+ <reference name="creditmemo_totals">
25
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
26
+ </reference>
27
+ </sales_order_creditmemo>
28
+ <sales_order_printcreditmemo>
29
+ <reference name="creditmemo_totals">
30
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
31
+ </reference>
32
+ </sales_order_printcreditmemo>
33
+ <sales_email_order_items>
34
+ <reference name="order_totals">
35
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
36
+ </reference>
37
+ </sales_email_order_items>
38
+ <sales_email_order_invoice_items>
39
+ <reference name="invoice_totals">
40
+ <block type="payson/order_totals_fee" name="payson_invoice_fee" />
41
+ </reference>
42
+ </sales_email_order_invoice_items>
43
+ <!-- sales_email_order_shipment_items sales_email_order_creditmemo_items -->
44
+ </layout>
45
+
app/locale/sv_SE/Payson_Payson.csv CHANGED
@@ -1,9 +1,9 @@
1
  "Checkout with Payson","Betala med Payson"
2
- "You will be redirected to Payson's website.","Du kommer att skickas vidare till Paysons webbplats"
3
 
4
  "Checkout with Payson invoice %s invoice fee","Betala med Payson faktura %s fakturaavgift"
5
  "Invoice fee","Fakturaavgift"
6
- "If you choose to pay by Paysoninvoice so there is a fee. Payment terms are 14 days and the invoice will be sent separately by email to the email address you specify. To pay by Paysoninvoice You must be 18 years old and be registered in Sweden as well as authorized in the credit assessment carried out at purchase.", "Om du väljer att betala med Paysonfaktura så tillkommer ovanstående avgift. Betalningsvillkor är 14 dagar och fakturan kommer att sändas separat med e-post till den e-postadress Du anger. För att betala mot Paysonfaktura måste Du ha fyllt 18 år och vara folkbokförd i Sverige samt godkännas i den kreditprövning som genomförs vid köpet."
7
  "The payment was denied by Payson. Please, try a different payment method", "Betalningen blev nekad. Vänligen, försök med en annan betalningsmetod."
8
  "Something went wrong with the payment. Please, try a different payment method", "Något gick fel med betalningen. Vänligen, försök en annan betalningsmetod."
9
 
1
  "Checkout with Payson","Betala med Payson"
2
+ "You will be forwarded to Payson's website.","Du kommer att skickas vidare till Paysons webbplats"
3
 
4
  "Checkout with Payson invoice %s invoice fee","Betala med Payson faktura %s fakturaavgift"
5
  "Invoice fee","Fakturaavgift"
6
+ "If you choose to pay by Paysoninvoice so there is a fee. Payment terms are 14 days and the invoice will be sent separately by email to the email address you specify. To pay by Paysoninvoice You must be 18 years old and be registered in Sweden as well as authorized in the credit assessment carried out at purchase.","Om du väljer att betala med Paysonfaktura så tillkommer ovanstående avgift. Betalningsvillkor är 14 dagar och fakturan kommer att sändas separat med e-post till den e-postadress Du anger. För att betala mot Paysonfaktura måste Du ha fyllt 18 år och vara folkbokförd i Sverige samt godkännas i den kreditprövning som genomförs vid köpet."
7
  "The payment was denied by Payson. Please, try a different payment method", "Betalningen blev nekad. Vänligen, försök med en annan betalningsmetod."
8
  "Something went wrong with the payment. Please, try a different payment method", "Något gick fel med betalningen. Vänligen, försök en annan betalningsmetod."
9
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payson</name>
4
- <version>1.2.3.1</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/bsd-license.php">BSD License</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Official Payson module for Magento. Use this to be able to handle invoice, card and direct bank transfers in your store.</summary>
10
  <description>This module integrates with Payson and allows you to charge your customers via Invoice, Card and direct bank transfers.</description>
11
- <notes>Updated with Swedish language files</notes>
12
- <authors><author><name>Daniel Hansen</name><user>PaysonAB</user><email>integration@payson.se</email></author><author><name>Karl Brundin</name><user>PaysonAB</user><email>integration@payson.se</email></author></authors>
13
- <date>2014-03-25</date>
14
- <time>08:12:58</time>
15
- <contents><target name="magecommunity"><dir name="Payson"><dir><dir name="Payson"><dir name="Block"><file name="Form.php" hash="74a8967879fbb6af999f0e513bc91323"/><dir name="Invoice"><file name="Form.php" hash="0d16d91e26b31691267c0a7bdc2a516d"/></dir><dir name="Order"><dir name="Totals"><file name="Fee.php" hash="3e8566e634d68d8df9bb70f597916980"/></dir></dir><dir name="Standard"><file name="Form.php" hash="c715cbec95494a9a26d261992429dff0"/></dir></dir><dir name="Helper"><dir name="Api"><dir name="Response"><file name="Interface.php" hash="51d0ffe7eefaa12eb9b4f2551e9f4259"/><dir name="Standard"><file name="Parameters.php" hash="6965b8259867c23a5e1e682e14491eb2"/></dir><file name="Standard.php" hash="cef827896629364fee49671af879adc3"/><file name="Validate.php" hash="34fb6626af3a6ac06e987c9e10a95796"/></dir></dir><file name="Api.php" hash="481da9034fced3e0ef52a3ed7d8f07e3"/><file name="Data.php" hash="83ff59b1588c0b0ff8d2f7341589ea59"/></dir><dir name="Model"><file name="Config.php" hash="2886124eac6b444fce7944e06ebf9faf"/><dir name="Method"><file name="Abstract.php" hash="6ea3385160ce437933da158b5d3e0d65"/><file name="Invoice.php" hash="ecfd2883a9f2dc24a6e43f04b6f098e8"/><file name="Standard.php" hash="e79bc4044be332dba6b1bcb28ffd6654"/></dir><dir name="Mysql4"><file name="Setup.php" hash="3075fa047af3d56d6eac609004e6e1cc"/></dir><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Invoice.php" hash="0073a5e3617542107713e4155faa07fe"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Invoice.php" hash="2a2bb0752543535b27c29668113b67e0"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Invoice.php" hash="d85f0abf040163920659d18e16d84a9e"/></dir></dir></dir><file name="Standard.php" hash="2e7fa64c2e561d2fbbd3735935edad43"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Paysondirectmethod.php" hash="23549b49797c4ef2ee312fc4fc5f5000"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="ShipmentController.php" hash="18d1c17c341f97c233b8ad63f8c321cb"/></dir></dir></dir><file name="CheckoutController.php" hash="1db99c07df583828380c48b34e78b167"/><file name="IpnController.php" hash="e7b092cdd0011a3a1359a084bbaf14ad"/></dir><dir name="etc"><file name="config.xml" hash="6eb00bd85327753783bab794f955ae7d"/><file name="system.xml" hash="0f9f27e8576e37d108dd5b109940c7c2"/></dir><dir name="sql"><dir name="payson_setup"><file name="mysql4-install-0.1.0.php" hash="21cd9fd3436ba1eb2fc20eaaadb42106"/><file name="mysql4-upgrade-0.1.0-0.1.2.php" hash="5bbcb930748e3a87a220c0e9f8448a15"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="sv_SE"><file name="Payson_Payson.csv" hash="68c77b9cb642ce622e0e8a6e3952ec09"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="Payson"><dir><dir name="Payson"><file name="invoice_form.phtml" hash="ed7af0a7cfb2bd59695659e8f26609cc"/><file name="standard_form.phtml" hash="781286055d322d532496af6c5e320034"/></dir></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="Payson"><dir><dir name="Payson"><file name="total.phtml" hash="e35a3824cd0f3127e8cf7d03a229fb1a"/></dir></dir></dir><dir name="layout"><file name="Payson.xml" hash="1ace2a646cd9a33521e7b392b6c5f3f1"/></dir></dir></dir></dir></target><target name="mage"><dir name="skin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="Payson"><dir name="Payson"><file name="payson.gif" hash="638d0055cbc1a4bdc32e9fa1156b722a"/><file name="payson.png" hash="308916345711a4520313c94218c5bda7"/><file name="payson_faktura.png" hash="fa218c9949c05c6f3452d9f4c541da2c"/></dir></dir></dir></dir></dir></dir><dir name="app"><dir name="etc"><dir name="modules"><file name="Payson_Payson.xml" hash="9118f2a12f9a78438b37b4c9bc5c5198"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
- <dependencies><required><php><min>5.2.0</min><max>5.5.10</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Payson</name>
4
+ <version>1.2.4</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/bsd-license.php">BSD licence</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Official Payson module for Magento. </summary>
10
  <description>This module integrates with Payson and allows you to charge your customers via Invoice, Card and direct bank transfers.</description>
11
+ <notes>Supports Magento 1.9</notes>
12
+ <authors><author><name>Oscar Villegas</name><user>PaysonAB</user><email>integration@payson.se</email></author><author><name>Karl Brundin</name><user>PaysonAB</user><email>integration@payson.se</email></author></authors>
13
+ <date>2014-09-04</date>
14
+ <time>07:25:54</time>
15
+ <contents><target name="magecommunity"><dir name="Payson"><dir name="Payson"><dir name="Block"><file name="Form.php" hash="74a8967879fbb6af999f0e513bc91323"/><dir name="Invoice"><file name="Form.php" hash="0d16d91e26b31691267c0a7bdc2a516d"/></dir><dir name="Order"><dir name="Totals"><file name="Fee.php" hash="3e8566e634d68d8df9bb70f597916980"/></dir></dir><dir name="Standard"><file name="Form.php" hash="c715cbec95494a9a26d261992429dff0"/></dir></dir><dir name="Helper"><dir name="Api"><dir name="Response"><file name="Interface.php" hash="51d0ffe7eefaa12eb9b4f2551e9f4259"/><dir name="Standard"><file name="Parameters.php" hash="6965b8259867c23a5e1e682e14491eb2"/></dir><file name="Standard.php" hash="cef827896629364fee49671af879adc3"/><file name="Validate.php" hash="34fb6626af3a6ac06e987c9e10a95796"/></dir></dir><file name="Api.php" hash="e9844eb1ad786f0f95da6b44fef57097"/><file name="Data.php" hash="83ff59b1588c0b0ff8d2f7341589ea59"/></dir><dir name="Model"><file name="Config.php" hash="2886124eac6b444fce7944e06ebf9faf"/><dir name="Method"><file name="Abstract.php" hash="6ea3385160ce437933da158b5d3e0d65"/><file name="Invoice.php" hash="ecfd2883a9f2dc24a6e43f04b6f098e8"/><file name="Standard.php" hash="e79bc4044be332dba6b1bcb28ffd6654"/></dir><dir name="Mysql4"><file name="Setup.php" hash="3075fa047af3d56d6eac609004e6e1cc"/></dir><dir name="Order"><dir name="Creditmemo"><dir name="Total"><file name="Invoice.php" hash="0073a5e3617542107713e4155faa07fe"/></dir></dir><dir name="Invoice"><dir name="Total"><file name="Invoice.php" hash="2a2bb0752543535b27c29668113b67e0"/></dir></dir></dir><dir name="Quote"><dir name="Address"><dir name="Total"><file name="Invoice.php" hash="d85f0abf040163920659d18e16d84a9e"/></dir></dir></dir><file name="Standard.php" hash="2e7fa64c2e561d2fbbd3735935edad43"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Paysondirectmethod.php" hash="23549b49797c4ef2ee312fc4fc5f5000"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Sales"><dir name="Order"><file name="ShipmentController.php" hash="18d1c17c341f97c233b8ad63f8c321cb"/></dir></dir></dir><file name="CheckoutController.php" hash="1db99c07df583828380c48b34e78b167"/><file name="IpnController.php" hash="e7b092cdd0011a3a1359a084bbaf14ad"/></dir><dir name="etc"><file name="config.xml" hash="6eb00bd85327753783bab794f955ae7d"/><file name="system.xml" hash="0f9f27e8576e37d108dd5b109940c7c2"/></dir><dir name="sql"><dir name="payson_setup"><file name="mysql4-install-0.1.0.php" hash="21cd9fd3436ba1eb2fc20eaaadb42106"/><file name="mysql4-upgrade-0.1.0-0.1.2.php" hash="5bbcb930748e3a87a220c0e9f8448a15"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="Payson.xml" hash="1ace2a646cd9a33521e7b392b6c5f3f1"/></dir><dir name="template"><dir name="Payson"><dir name="Payson"><file name="total.phtml" hash="795e38fb672ffd23f38ed28578c7ee2f"/></dir></dir></dir><dir name="Payson"><dir name="Payson"><file name="total.phtml" hash="e35a3824cd0f3127e8cf7d03a229fb1a"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="Payson.xml" hash="22b9b9ae0cc9b1c70f79d690fbb4db41"/></dir><dir name="template"><dir name="Payson"><dir name="Payson"><file name="standard_form.phtml" hash="781286055d322d532496af6c5e320034"/><file name="invoice_form.phtml" hash="ed7af0a7cfb2bd59695659e8f26609cc"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Payson_Payson.xml" hash="9118f2a12f9a78438b37b4c9bc5c5198"/></dir></target><target name="magelocale"><dir name="sv_SE"><file name="Payson_Payson.csv" hash="df54d1d5b4b2de1ba6c22d4c3fecd566"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="Payson"><dir name="Payson"><file name="payson.gif" hash="638d0055cbc1a4bdc32e9fa1156b722a"/><file name="payson.png" hash="308916345711a4520313c94218c5bda7"/><file name="payson_faktura.png" hash="fa218c9949c05c6f3452d9f4c541da2c"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><package><name>Mage_Core_modules</name><channel>community</channel><min>1.8.0</min><max>1.9</max></package></required></dependencies>
18
  </package>