Wattisit_Paygreen - Version 0.1.1

Version Notes

Fix some minor bug

Download this release

Release Info

Developer Watt is it
Extension Wattisit_Paygreen
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/community/Wattisit/Paygreen/Model/PaymentMethod.php CHANGED
@@ -8,9 +8,9 @@ class Wattisit_Paygreen_Model_PaymentMethod extends Mage_Payment_Model_Method_Ab
8
  protected $_infoBlockType = 'paygreen/info';
9
 
10
 
11
- public function isAvailable($quote = null) {
12
  return true;
13
- }
14
 
15
  public function assignData($data)
16
  {
8
  protected $_infoBlockType = 'paygreen/info';
9
 
10
 
11
+ /*public function isAvailable($quote = null) {
12
  return true;
13
+ }*/
14
 
15
  public function assignData($data)
16
  {
app/code/community/Wattisit/Paygreen/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Wattisit_Paygreen>
5
- <version>0.1.0</version>
6
  <codePool>community</codePool>
7
  <depends>
8
  <Mage_Payment />
@@ -111,7 +111,7 @@
111
  <paygreen>
112
  <title>Paygreen</title>
113
  <model>paygreen/paymentMethod</model>
114
- <active>1</active>
115
  <paiement_accepted>Votre paiement avec Paygreen a été accepté</paiement_accepted>
116
  <paiement_refused>Votre paiement avec Paygreen n'a pas abouti</paiement_refused>
117
  <paiement_cancelled>Votre paiement avec Paygreen a été annulé</paiement_cancelled>
2
  <config>
3
  <modules>
4
  <Wattisit_Paygreen>
5
+ <version>0.1.1</version>
6
  <codePool>community</codePool>
7
  <depends>
8
  <Mage_Payment />
111
  <paygreen>
112
  <title>Paygreen</title>
113
  <model>paygreen/paymentMethod</model>
114
+ <active>0</active>
115
  <paiement_accepted>Votre paiement avec Paygreen a été accepté</paiement_accepted>
116
  <paiement_refused>Votre paiement avec Paygreen n'a pas abouti</paiement_refused>
117
  <paiement_cancelled>Votre paiement avec Paygreen a été annulé</paiement_cancelled>
app/code/community/Wattisit/Paygreen/etc/system.xml CHANGED
@@ -19,10 +19,19 @@
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
  </title>
 
 
 
 
 
 
 
 
 
22
  <merchant_id module="paygreen">
23
  <label>Clé privée</label>
24
  <frontend_type>text</frontend_type>
25
- <sort_order>2</sort_order>
26
  <show_in_default>1</show_in_default>
27
  <show_in_website>1</show_in_website>
28
  <show_in_store>1</show_in_store>
@@ -30,7 +39,7 @@
30
  <access_key>
31
  <label>Identifiant unique</label>
32
  <frontend_type>text</frontend_type>
33
- <sort_order>3</sort_order>
34
  <show_in_default>1</show_in_default>
35
  <show_in_website>1</show_in_website>
36
  <show_in_store>1</show_in_store>
@@ -38,7 +47,7 @@
38
  <paiement_accepted>
39
  <label>Phrase lors d\'un paiement réussi</label>
40
  <frontend_type>text</frontend_type>
41
- <sort_order>4</sort_order>
42
  <show_in_default>1</show_in_default>
43
  <show_in_website>1</show_in_website>
44
  <show_in_store>1</show_in_store>
@@ -46,7 +55,7 @@
46
  <paiement_refused>
47
  <label>Phrase lors d\'un paiement refusé</label>
48
  <frontend_type>text</frontend_type>
49
- <sort_order>5</sort_order>
50
  <show_in_default>1</show_in_default>
51
  <show_in_website>1</show_in_website>
52
  <show_in_store>1</show_in_store>
@@ -54,7 +63,7 @@
54
  <paiement_cancelled>
55
  <label>Phrase lors d\'un paiement refusé</label>
56
  <frontend_type>text</frontend_type>
57
- <sort_order>5</sort_order>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
  </title>
22
+ <active translate="label">
23
+ <label>Enabled</label>
24
+ <frontend_type>select</frontend_type>
25
+ <source_model>adminhtml/system_config_source_yesno</source_model>
26
+ <sort_order>2</sort_order>
27
+ <show_in_default>1</show_in_default>
28
+ <show_in_website>1</show_in_website>
29
+ <show_in_store>1</show_in_store>
30
+ </active>
31
  <merchant_id module="paygreen">
32
  <label>Clé privée</label>
33
  <frontend_type>text</frontend_type>
34
+ <sort_order>3</sort_order>
35
  <show_in_default>1</show_in_default>
36
  <show_in_website>1</show_in_website>
37
  <show_in_store>1</show_in_store>
39
  <access_key>
40
  <label>Identifiant unique</label>
41
  <frontend_type>text</frontend_type>
42
+ <sort_order>4</sort_order>
43
  <show_in_default>1</show_in_default>
44
  <show_in_website>1</show_in_website>
45
  <show_in_store>1</show_in_store>
47
  <paiement_accepted>
48
  <label>Phrase lors d\'un paiement réussi</label>
49
  <frontend_type>text</frontend_type>
50
+ <sort_order>5</sort_order>
51
  <show_in_default>1</show_in_default>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
55
  <paiement_refused>
56
  <label>Phrase lors d\'un paiement refusé</label>
57
  <frontend_type>text</frontend_type>
58
+ <sort_order>6</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>1</show_in_store>
63
  <paiement_cancelled>
64
  <label>Phrase lors d\'un paiement refusé</label>
65
  <frontend_type>text</frontend_type>
66
+ <sort_order>7</sort_order>
67
  <show_in_default>1</show_in_default>
68
  <show_in_website>1</show_in_website>
69
  <show_in_store>1</show_in_store>
app/code/community/Wattisit/Paygreen/lib/PaygreenClient.php CHANGED
@@ -40,7 +40,7 @@ const VERSION = '0.4B';
40
  self::RECURRING_BIANNUAL => '2 ans'
41
  );
42
 
43
- private static $host = "http://local.paygreen.fr/paiement/new/";
44
 
45
  private $token;
46
  private $key;
40
  self::RECURRING_BIANNUAL => '2 ans'
41
  );
42
 
43
+ private static $host = "https://paygreen.fr/paiement/new/";
44
 
45
  private $token;
46
  private $key;
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wattisit_Paygreen</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
@@ -18,11 +18,11 @@ Faites payer vos clients par Mail&#xD;
18
  Notre tarification est fonction de votre volume de vente mensuel :&#xD;
19
  &#xD;
20
  PayGreen est une des solutions les plus &#xE9;conomiques sur le march&#xE9;. Notre tarification s&amp;apos;adapte &#xE0; votre chiffre d&amp;apos;affaire et est personnalis&#xE9;e au del&#xE0; d&amp;apos;un certain volume de vente mensuel.</description>
21
- <notes>Premi&#xE8;re version du module</notes>
22
  <authors><author><name>Watt is it</name><user>WattIsIt</user><email>support@paygreen.fr</email></author></authors>
23
  <date>2016-01-22</date>
24
- <time>16:38:22</time>
25
- <contents><target name="magecommunity"><dir name="Wattisit"><dir name="Paygreen"><dir name="Block"><file name="Form.php" hash="c486be7ad97297691e6b83d271aadcf7"/><file name="Info.php" hash="516fcaf040998026baa3644de0edf94d"/><file name="Monblock.php" hash="e0f1f98e9d71e8cb743917bfac5bd700"/><file name="Payment.php" hash="09efc37b621dd3e94e02d2db1baeef87"/></dir><dir name="Helper"><file name="Data.php" hash="550bfcf93e4ed09ab1be9cbaee44212e"/></dir><dir name="Model"><file name="Buttons.php" hash="8fbbf473861c83c3677f34f16c31e0b9"/><dir name="Datasource"><file name="Status.php" hash="3bea16c5e273efdf62ae94cb024f4aab"/></dir><dir name="Mysql4"><dir name="Buttons"><file name="Collection.php" hash="274ab664f0a7bd7f9a974ed8f5c73506"/></dir><file name="Buttons.php" hash="56e462ef52928299dd22966f25158dc7"/></dir><file name="PaymentMethod.php" hash="10de424a39f4d20f02304badd080e4da"/><dir name="Resource"><file name="Setup.php" hash="2494181127c400e52393c06f380ecdd7"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ButtonsController.php" hash="41cb09f007ea5e6df1354e29189c8363"/><file name="IndexController.php" hash="a448ad93eadb4fcbaeed98d4df202c97"/></dir><file name="IndexController.php" hash="439e3259f8956dea927ae2b00642f1e4"/><file name="StaticController.php" hash="d56a70df2495e9b9764ef550b21b09b5"/></dir><dir name="etc"><file name="config.xml" hash="ff4b4268e0231b138b5134a2c34b55ca"/><file name="system.xml" hash="b2c9d7b05655c883fb00a75407ae8e31"/></dir><dir name="lib"><file name="PaygreenClient.php" hash="093207ee5be746d7ce1bead614e09dea"/><file name="PaygrenModuleUtils.php" hash="cf7f835b9467e40f4873ca34dd4595ac"/></dir><dir name="public"><dir name="icons"><file name="paiement.png" hash="c413cdb06f10d973a1a008d58df59825"/><file name="paygreen_paiement.png" hash="c413cdb06f10d973a1a008d58df59825"/></dir></dir><dir name="sql"><dir name="paygreen_setup"><file name="mysql4-install-0.1.0.php" hash="910ce8551b0b3dc9fa0171f82359859e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wattisit_Paygreen.xml" hash="b9300cc18cf27d2c4e73acc3dd393c9e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="layout"><file name="paygreen.xml" hash="19079d4438a040b6b95a48cb651c50c3"/></dir><dir name="template"><dir name="paygreen"><file name="afficher.phtml" hash="76974630bce82ee2fc437957bc2d4bdc"/><file name="buttons.phtml" hash="b2c6264e4d99505080d7ef47247d58c0"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="paygreen.xml" hash="c935447e735eba2cf657543eaebffffb"/></dir><dir name="template"><dir name="paygreen"><file name="afficher.phtml" hash="9755e2421d8cfc5358d82f65bcb66352"/><file name="caller.phtml" hash="b6dfe497f7699290f6919398a240b7e6"/><file name="informations.phtml" hash="0048eedb8d2b01a432794e9b995744ad"/><file name="paiement.phtml" hash="fdd864256fc1147edbb902a78da8466a"/><file name="returned.phtml" hash="49d8bc37a8f79b38b464515a188c0ce5"/></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.0.0</min><max>5.5.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Wattisit_Paygreen</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license>GNU General Public License (GPL)</license>
7
  <channel>community</channel>
18
  Notre tarification est fonction de votre volume de vente mensuel :&#xD;
19
  &#xD;
20
  PayGreen est une des solutions les plus &#xE9;conomiques sur le march&#xE9;. Notre tarification s&amp;apos;adapte &#xE0; votre chiffre d&amp;apos;affaire et est personnalis&#xE9;e au del&#xE0; d&amp;apos;un certain volume de vente mensuel.</description>
21
+ <notes>Fix some minor bug</notes>
22
  <authors><author><name>Watt is it</name><user>WattIsIt</user><email>support@paygreen.fr</email></author></authors>
23
  <date>2016-01-22</date>
24
+ <time>17:56:39</time>
25
+ <contents><target name="magecommunity"><dir name="Wattisit"><dir name="Paygreen"><dir name="Block"><file name="Form.php" hash="c486be7ad97297691e6b83d271aadcf7"/><file name="Info.php" hash="516fcaf040998026baa3644de0edf94d"/><file name="Monblock.php" hash="e0f1f98e9d71e8cb743917bfac5bd700"/><file name="Payment.php" hash="09efc37b621dd3e94e02d2db1baeef87"/></dir><dir name="Helper"><file name="Data.php" hash="550bfcf93e4ed09ab1be9cbaee44212e"/></dir><dir name="Model"><file name="Buttons.php" hash="8fbbf473861c83c3677f34f16c31e0b9"/><dir name="Datasource"><file name="Status.php" hash="3bea16c5e273efdf62ae94cb024f4aab"/></dir><dir name="Mysql4"><dir name="Buttons"><file name="Collection.php" hash="274ab664f0a7bd7f9a974ed8f5c73506"/></dir><file name="Buttons.php" hash="56e462ef52928299dd22966f25158dc7"/></dir><file name="PaymentMethod.php" hash="21f151bbb4d251ef4e92c292e3ee027e"/><dir name="Resource"><file name="Setup.php" hash="2494181127c400e52393c06f380ecdd7"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ButtonsController.php" hash="41cb09f007ea5e6df1354e29189c8363"/><file name="IndexController.php" hash="a448ad93eadb4fcbaeed98d4df202c97"/></dir><file name="IndexController.php" hash="439e3259f8956dea927ae2b00642f1e4"/><file name="StaticController.php" hash="d56a70df2495e9b9764ef550b21b09b5"/></dir><dir name="etc"><file name="config.xml" hash="60f7b2b8c89f11a81806323e18faf457"/><file name="system.xml" hash="6c72d1ca4da44c7441cd4b93fc6026c3"/></dir><dir name="lib"><file name="PaygreenClient.php" hash="98d08c7011885f0d30a146916a74bd7f"/><file name="PaygrenModuleUtils.php" hash="cf7f835b9467e40f4873ca34dd4595ac"/></dir><dir name="public"><dir name="icons"><file name="paiement.png" hash="c413cdb06f10d973a1a008d58df59825"/><file name="paygreen_paiement.png" hash="c413cdb06f10d973a1a008d58df59825"/></dir></dir><dir name="sql"><dir name="paygreen_setup"><file name="mysql4-install-0.1.0.php" hash="910ce8551b0b3dc9fa0171f82359859e"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Wattisit_Paygreen.xml" hash="b9300cc18cf27d2c4e73acc3dd393c9e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="layout"><file name="paygreen.xml" hash="19079d4438a040b6b95a48cb651c50c3"/></dir><dir name="template"><dir name="paygreen"><file name="afficher.phtml" hash="76974630bce82ee2fc437957bc2d4bdc"/><file name="buttons.phtml" hash="b2c6264e4d99505080d7ef47247d58c0"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="paygreen.xml" hash="c935447e735eba2cf657543eaebffffb"/></dir><dir name="template"><dir name="paygreen"><file name="afficher.phtml" hash="9755e2421d8cfc5358d82f65bcb66352"/><file name="caller.phtml" hash="b6dfe497f7699290f6919398a240b7e6"/><file name="informations.phtml" hash="0048eedb8d2b01a432794e9b995744ad"/><file name="paiement.phtml" hash="fdd864256fc1147edbb902a78da8466a"/><file name="returned.phtml" hash="49d8bc37a8f79b38b464515a188c0ce5"/></dir></dir></dir></dir></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.0.0</min><max>5.5.0</max></php></required></dependencies>
28
  </package>