Yellow_Pay - Version 1.0.1

Version Notes

Add option to display the text message "Pay with Bitcoin" instead of the "Bitcoin | powered by Yellow" image in the payment method section on checkout.

Download this release

Release Info

Developer Tawfek Daghistani
Extension Yellow_Pay
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/local/Yellow/Bitcoin/etc/config.xml CHANGED
@@ -27,7 +27,7 @@ SOFTWARE.
27
  <config>
28
  <modules>
29
  <Yellow_Bitcoin>
30
- <version>1.0.0</version>
31
  <depends>
32
  <Mage_Payment/>
33
  </depends>
27
  <config>
28
  <modules>
29
  <Yellow_Bitcoin>
30
+ <version>1.0.1</version>
31
  <depends>
32
  <Mage_Payment/>
33
  </depends>
app/code/local/Yellow/Bitcoin/etc/system.xml CHANGED
@@ -141,9 +141,19 @@ SOFTWARE.
141
  <label>Database Log</label>
142
  <frontend_type>select</frontend_type>
143
  <source_model>adminhtml/system_config_source_yesno</source_model>
144
- <sort_order>1</sort_order>
145
  <show_in_default>1</show_in_default>
146
  </db_log>
 
 
 
 
 
 
 
 
 
 
147
  <sort_order translate="label">
148
  <label>Sort Order</label>
149
  <frontend_type>text</frontend_type>
141
  <label>Database Log</label>
142
  <frontend_type>select</frontend_type>
143
  <source_model>adminhtml/system_config_source_yesno</source_model>
144
+ <sort_order>12</sort_order>
145
  <show_in_default>1</show_in_default>
146
  </db_log>
147
+ <show_logo translate="label">
148
+ <comment>
149
+ Whether to show an image (Yes) or just text (No) for the payment option
150
+ </comment>
151
+ <label>Show bitcoin logo on checkout</label>
152
+ <frontend_type>select</frontend_type>
153
+ <source_model>adminhtml/system_config_source_yesno</source_model>
154
+ <sort_order>13</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ </show_logo>
157
  <sort_order translate="label">
158
  <label>Sort Order</label>
159
  <frontend_type>text</frontend_type>
app/design/frontend/base/default/template/bitcoin/form/logo.phtml CHANGED
@@ -1,5 +1,6 @@
1
- <!-- Yellow Logo -->
2
  <div id="bitcoin">
 
 
3
  <img src="<?php echo $this->getSkinUrl('images/bitcoin/bitcoin_accepted.png', array('_secure' => true)); ?>"
4
  alt="<?php echo Mage::helper('bitcoin')->__('Yellow Bitcoin') ?>" class="v-middle" style="height:35px;"/>
5
  <span style="margin-top: 6px;">
@@ -10,5 +11,15 @@
10
  </a>
11
  </small>
12
  </span>
13
- </div>
14
  <!-- Yellow Logo -->
 
 
 
 
 
 
 
 
 
 
 
 
1
  <div id="bitcoin">
2
+ <?php if(Mage::getStoreConfig("payment/bitcoin/show_logo")):?>
3
+ <!-- Yellow Logo -->
4
  <img src="<?php echo $this->getSkinUrl('images/bitcoin/bitcoin_accepted.png', array('_secure' => true)); ?>"
5
  alt="<?php echo Mage::helper('bitcoin')->__('Yellow Bitcoin') ?>" class="v-middle" style="height:35px;"/>
6
  <span style="margin-top: 6px;">
11
  </a>
12
  </small>
13
  </span>
 
14
  <!-- Yellow Logo -->
15
+ <?php else : ?>
16
+ <p>
17
+ <?php echo $this->__("Pay with Bitcoin");?>
18
+ <small>
19
+ <a href="<?php echo "http://yellowpay.co/what-is-bitcoin"; ?>" target="_blank">
20
+ <?php echo Mage::helper('bitcoin')->__('What is Bitcoin ?'); ?>
21
+ </a>
22
+ </small>
23
+ </p>
24
+ <?php endif;?>
25
+ </div>
app/etc/modules/Yellow_Bitcoin.xml CHANGED
@@ -33,7 +33,7 @@ SOFTWARE.
33
  <depends>
34
  <Mage_Payment/>
35
  </depends>
36
- <version>1.0.0</version>
37
  </Yellow_Bitcoin>
38
  </modules>
39
  </config>
33
  <depends>
34
  <Mage_Payment/>
35
  </depends>
36
+ <version>1.0.1</version>
37
  </Yellow_Bitcoin>
38
  </modules>
39
  </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Yellow_Pay</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="https://github.com/YellowPay/yellow-magento/blob/master/LICENSE.md">MITL</license>
7
  <channel>community</channel>
@@ -30,13 +30,11 @@ Bitcoin payment is received and the customer is redirected to an order confirmat
30
  &#xD;
31
  6.&#xD;
32
  Yellow converts the received Bitcoin payment into a national currency (like AED) and transfers it to the merchant's bank account</description>
33
- <notes>* Payment invoice is now responsive&#xD;
34
- * Fix some styling issue (e.g. image size in email, fullscreen invoice width)&#xD;
35
- * Make plugin more permissive of api changes</notes>
36
  <authors><author><name>Tawfek Daghistani</name><user>tawfekov</user><email>tawfekov@gmail.com</email></author><author><name>James Piechota</name><user>YellowPay</user><email>james@yellowpay.co</email></author></authors>
37
- <date>2015-04-26</date>
38
- <time>20:02:08</time>
39
- <contents><target name="magelocal"><dir name="Yellow"><dir name="Bitcoin"><dir name="Block"><dir name="Adminhtml"><dir name="Ipn"><dir name="Edit"><file name="Form.php" hash="7f80eace317f9fe82d4f76c1964c1130"/><dir name="Tab"><file name="Form.php" hash="6a89244929f6cb68dfee02e8559cafb2"/></dir><file name="Tabs.php" hash="238c2dc91e560ea5b71964c8257d52a1"/></dir><file name="Edit.php" hash="025d0b4b35397890207a7ea8af97ee0e"/><file name="Grid.php" hash="84bf9234f25b8b27bbb1032442fc26ba"/></dir><file name="Ipn.php" hash="5fe044c4cb3fffcdab958c481a83e864"/><dir name="Log"><dir name="Edit"><file name="Form.php" hash="27fa08c710def8bf91ba212882c74e83"/><dir name="Tab"><file name="Form.php" hash="d9a427fd3e1011188f0214c128d3bb4e"/></dir><file name="Tabs.php" hash="275d186945a3cfc9d73ab2b7a606ca18"/></dir><file name="Edit.php" hash="6a4763b0d2427ce58ae46adef581d2f6"/><file name="Grid.php" hash="7eea4350f39da7956abfd60dec08e512"/></dir><file name="Log.php" hash="bca0901efdb1f99e5103fce583774967"/></dir><dir name="Form"><file name="Bitcoin.php" hash="def396189c0b2bc7d393cbb0f01eaa94"/></dir><dir name="Fullscreen"><dir name="Widget"><file name="Content.php" hash="f97e2a8a3ef850272fb5d3a7e2dd750d"/><file name="Footer.php" hash="d10cd8c519422fd4de3defcd88569239"/><file name="Header.php" hash="ba790b89254447b7d4a9362d02d2b4f3"/></dir></dir><file name="Info.php" hash="1d2052d6dcf46c18dd846d1072f259ef"/><file name="Status.php" hash="dd26ce7879dc006f19b8528b4cfe6dd4"/><file name="Widget.php" hash="6d640b82fae0c83cce79aed368a05044"/></dir><dir name="Helper"><file name="Data.php" hash="b96124f0753fdaa49644b8fdac5f95ce"/></dir><dir name="Model"><file name="Bitcoin.php" hash="6d3b84f607ca2591d12db196da60cd71"/><file name="Http.php" hash="8cd7ca764944940130a54b7ed2927fdd"/><file name="Ipn.php" hash="cd66beab4f6bea576c6997bff68e0de2"/><file name="Log.php" hash="67d5fbbc997e57cefdbc1c8b28a94d93"/><dir name="Resource"><dir name="Ipn"><file name="Collection.php" hash="74285c584012f2b9d079ba258bc30ac9"/></dir><file name="Ipn.php" hash="a81ef4ed09a444a61c11ad1e92965438"/><dir name="Log"><file name="Collection.php" hash="fe97d78a654f856ea4eb005728b683e3"/></dir><file name="Log.php" hash="70de1ff87111d0ef4961c89810a1d8a0"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IpnController.php" hash="fcd760bd4f54eab247544dcd70cfa3e2"/><file name="LogController.php" hash="dbe296b63e4d3f6b7cc3b231fae8bf72"/></dir><file name="IndexController.php" hash="314d06d1fc10c37a171c07d23dc694f4"/></dir><dir name="etc"><file name="config.xml" hash="c3ed8674d1f925d2757984dda143ff08"/><file name="system.xml" hash="fa824ad05da3e4c10dab7841e9bf180f"/></dir><dir name="sql"><dir name="bitcoin_setup"><file name="mysql4-install-0.1.0.php" hash="2cd90bb78e7befc41e7b3c74d602db86"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="029263662ecc7b7dfe8e76cfa907b38b"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="afa8d749b6f82519964f9fe2aa4ff4a1"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="1872837133e08ed077cfa52eafd91a3a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bitcoin.xml" hash="7bfade000e7b0161459d711da6cc7461"/></dir><dir name="template"><dir name="bitcoin"><dir name="info"><file name="invoice.phtml" hash="61aa4bdffb8c22cc8601087cd1219057"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bitcoin.xml" hash="a014f0f6db51f74368c2b613038347a3"/></dir><dir name="template"><dir name="bitcoin"><dir name="form"><file name="bitcoin.phtml" hash="372b44fb50d60ff9d5d276d7110ecb22"/><file name="logo.phtml" hash="e5b1e7582fbea573179f7875fda5c5a0"/></dir><dir name="fullscreen"><dir name="widget"><file name="content.phtml" hash="6bfc9ee8833020bf300273efb8768111"/><file name="footer.phtml" hash="e27fae4bc2d4bb87322b1246e3607c2b"/><file name="header.phtml" hash="959f3d652959d9eefde349f5bd42b412"/></dir></dir><dir name="info"><file name="invoice.phtml" hash="ba13d5900d99c8fcf550601e378dcb4c"/></dir><file name="status.phtml" hash="4d7753c3efdcad9a2974b89ec636aa4c"/><file name="widget.phtml" hash="fe6e73c20d78b9a8ca5d6195b7fd07f8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Yellow_Bitcoin.xml" hash="4d89864189b7df774ee433a8fb4d33fe"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="images"><dir name="bitcoin"><file name="bitcoin_accepted.png" hash="0682420205f3e2001b72901c44073163"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="bitcoin.css" hash="64690606065417b6a4a717dab367d7df"/></dir><dir name="images"><dir name="bitcoin"><file name="bitcoin_accepted.png" hash="0682420205f3e2001b72901c44073163"/></dir></dir><dir name="js"><file name="iframeResizer.min.js" hash="0f471bcfd5d0edf49ef67542b7a763a0"/></dir></dir></dir></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Yellow_Pay</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://github.com/YellowPay/yellow-magento/blob/master/LICENSE.md">MITL</license>
7
  <channel>community</channel>
30
  &#xD;
31
  6.&#xD;
32
  Yellow converts the received Bitcoin payment into a national currency (like AED) and transfers it to the merchant's bank account</description>
33
+ <notes>Add option to display the text message "Pay with Bitcoin" instead of the "Bitcoin | powered by Yellow" image in the payment method section on checkout.</notes>
 
 
34
  <authors><author><name>Tawfek Daghistani</name><user>tawfekov</user><email>tawfekov@gmail.com</email></author><author><name>James Piechota</name><user>YellowPay</user><email>james@yellowpay.co</email></author></authors>
35
+ <date>2015-05-31</date>
36
+ <time>12:42:34</time>
37
+ <contents><target name="magelocal"><dir name="Yellow"><dir name="Bitcoin"><dir name="Block"><dir name="Adminhtml"><dir name="Ipn"><dir name="Edit"><file name="Form.php" hash="7f80eace317f9fe82d4f76c1964c1130"/><dir name="Tab"><file name="Form.php" hash="6a89244929f6cb68dfee02e8559cafb2"/></dir><file name="Tabs.php" hash="238c2dc91e560ea5b71964c8257d52a1"/></dir><file name="Edit.php" hash="025d0b4b35397890207a7ea8af97ee0e"/><file name="Grid.php" hash="84bf9234f25b8b27bbb1032442fc26ba"/></dir><file name="Ipn.php" hash="5fe044c4cb3fffcdab958c481a83e864"/><dir name="Log"><dir name="Edit"><file name="Form.php" hash="27fa08c710def8bf91ba212882c74e83"/><dir name="Tab"><file name="Form.php" hash="d9a427fd3e1011188f0214c128d3bb4e"/></dir><file name="Tabs.php" hash="275d186945a3cfc9d73ab2b7a606ca18"/></dir><file name="Edit.php" hash="6a4763b0d2427ce58ae46adef581d2f6"/><file name="Grid.php" hash="7eea4350f39da7956abfd60dec08e512"/></dir><file name="Log.php" hash="bca0901efdb1f99e5103fce583774967"/></dir><dir name="Form"><file name="Bitcoin.php" hash="def396189c0b2bc7d393cbb0f01eaa94"/></dir><dir name="Fullscreen"><dir name="Widget"><file name="Content.php" hash="f97e2a8a3ef850272fb5d3a7e2dd750d"/><file name="Footer.php" hash="d10cd8c519422fd4de3defcd88569239"/><file name="Header.php" hash="ba790b89254447b7d4a9362d02d2b4f3"/></dir></dir><file name="Info.php" hash="1d2052d6dcf46c18dd846d1072f259ef"/><file name="Status.php" hash="dd26ce7879dc006f19b8528b4cfe6dd4"/><file name="Widget.php" hash="6d640b82fae0c83cce79aed368a05044"/></dir><dir name="Helper"><file name="Data.php" hash="b96124f0753fdaa49644b8fdac5f95ce"/></dir><dir name="Model"><file name="Bitcoin.php" hash="6d3b84f607ca2591d12db196da60cd71"/><file name="Http.php" hash="8cd7ca764944940130a54b7ed2927fdd"/><file name="Ipn.php" hash="cd66beab4f6bea576c6997bff68e0de2"/><file name="Log.php" hash="67d5fbbc997e57cefdbc1c8b28a94d93"/><dir name="Resource"><dir name="Ipn"><file name="Collection.php" hash="74285c584012f2b9d079ba258bc30ac9"/></dir><file name="Ipn.php" hash="a81ef4ed09a444a61c11ad1e92965438"/><dir name="Log"><file name="Collection.php" hash="fe97d78a654f856ea4eb005728b683e3"/></dir><file name="Log.php" hash="70de1ff87111d0ef4961c89810a1d8a0"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="IpnController.php" hash="fcd760bd4f54eab247544dcd70cfa3e2"/><file name="LogController.php" hash="dbe296b63e4d3f6b7cc3b231fae8bf72"/></dir><file name="IndexController.php" hash="314d06d1fc10c37a171c07d23dc694f4"/></dir><dir name="etc"><file name="config.xml" hash="0aef510767a85e9b966cd99c190a0ab3"/><file name="system.xml" hash="0d315f8e5068d86cd0ea299ec1aa308b"/></dir><dir name="sql"><dir name="bitcoin_setup"><file name="mysql4-install-0.1.0.php" hash="2cd90bb78e7befc41e7b3c74d602db86"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="029263662ecc7b7dfe8e76cfa907b38b"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="afa8d749b6f82519964f9fe2aa4ff4a1"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="1872837133e08ed077cfa52eafd91a3a"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bitcoin.xml" hash="7bfade000e7b0161459d711da6cc7461"/></dir><dir name="template"><dir name="bitcoin"><dir name="info"><file name="invoice.phtml" hash="61aa4bdffb8c22cc8601087cd1219057"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bitcoin.xml" hash="a014f0f6db51f74368c2b613038347a3"/></dir><dir name="template"><dir name="bitcoin"><dir name="form"><file name="bitcoin.phtml" hash="372b44fb50d60ff9d5d276d7110ecb22"/><file name="logo.phtml" hash="a776733bc82c1968caa277b182497b1d"/></dir><dir name="fullscreen"><dir name="widget"><file name="content.phtml" hash="6bfc9ee8833020bf300273efb8768111"/><file name="footer.phtml" hash="e27fae4bc2d4bb87322b1246e3607c2b"/><file name="header.phtml" hash="959f3d652959d9eefde349f5bd42b412"/></dir></dir><dir name="info"><file name="invoice.phtml" hash="ba13d5900d99c8fcf550601e378dcb4c"/></dir><file name="status.phtml" hash="4d7753c3efdcad9a2974b89ec636aa4c"/><file name="widget.phtml" hash="fe6e73c20d78b9a8ca5d6195b7fd07f8"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Yellow_Bitcoin.xml" hash="9a37264bc23d374f4dced72980c05fcd"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="images"><dir name="bitcoin"><file name="bitcoin_accepted.png" hash="0682420205f3e2001b72901c44073163"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><file name="bitcoin.css" hash="64690606065417b6a4a717dab367d7df"/></dir><dir name="images"><dir name="bitcoin"><file name="bitcoin_accepted.png" hash="0682420205f3e2001b72901c44073163"/></dir></dir><dir name="js"><file name="iframeResizer.min.js" hash="0f471bcfd5d0edf49ef67542b7a763a0"/></dir></dir></dir></dir></target></contents>
38
  <compatible/>
39
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
40
  </package>