Version Notes
Hide widget when other payment methods are selected
Download this release
Release Info
Developer | James Piechota |
Extension | Yellow_Pay |
Version | 0.1.7 |
Comparing to | |
See all releases |
Code changes from version 0.1.6 to 0.1.7
app/design/frontend/base/default/template/bitcoin/widget.phtml
CHANGED
@@ -2,14 +2,17 @@
|
|
2 |
$url = $this->GetWidgetUrl();
|
3 |
$iframe = false;
|
4 |
switch ($url) {
|
5 |
-
case '
|
6 |
case 'disabled':
|
|
|
7 |
break;
|
8 |
case 'paid':
|
9 |
echo 'Order payment received. Place Order to complete.';
|
|
|
10 |
break;
|
11 |
case false:
|
12 |
echo 'Error creating invoice. Please try again or try another payment solution.';
|
|
|
13 |
break;
|
14 |
default:
|
15 |
$iframe = '<iframe src="' . $url . '" style="width:500px; height:255px; overflow:hidden; border:none; margin:auto; display:block;" scrolling="no" allowtransparency="true" frameborder="0"> </iframe>';
|
2 |
$url = $this->GetWidgetUrl();
|
3 |
$iframe = false;
|
4 |
switch ($url) {
|
5 |
+
case 'no payment':
|
6 |
case 'disabled':
|
7 |
+
$iframe = false;
|
8 |
break;
|
9 |
case 'paid':
|
10 |
echo 'Order payment received. Place Order to complete.';
|
11 |
+
$iframe = false;
|
12 |
break;
|
13 |
case false:
|
14 |
echo 'Error creating invoice. Please try again or try another payment solution.';
|
15 |
+
$iframe = false;
|
16 |
break;
|
17 |
default:
|
18 |
$iframe = '<iframe src="' . $url . '" style="width:500px; height:255px; overflow:hidden; border:none; margin:auto; display:block;" scrolling="no" allowtransparency="true" frameborder="0"> </iframe>';
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Yellow_Pay</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://github.com/YellowPay/yellow-magento/blob/master/LICENSE.md">MITL</license>
|
7 |
<channel>community</channel>
|
@@ -30,11 +30,11 @@ Bitcoin payment is received and the customer is redirected to an order confirmat
|
|
30 |

|
31 |
6.
|
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>
|
34 |
<authors><author><name>James Piechota</name><user>YellowPay</user><email>james@yellowpay.co</email></author><author><name>Tawfek Daghistani</name><user>tawfekov</user><email>tawfekov@gmail.com</email></author></authors>
|
35 |
<date>2014-10-13</date>
|
36 |
-
<time>
|
37 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Yellow_Bitcoin.xml" hash="b994ecfa72adf5cac1168178b7dd233c"/></dir></target><target name="magelocal"><dir name="Yellow"><dir name="Bitcoin"><dir name="Block"><dir name="Form"><file name="Bitcoin.php" hash="9f2f3403e2578263b8c73aa495b0b473"/></dir><file name="Index.php" hash="0a2ac65b25a7c31aa457b4688b8c28ac"/><dir name="Info"><file name="Bitcoin.php" hash="7c4f19e8b6cecc559e4df0a215eba6c9"/></dir><file name="Status.php" hash="e437b9f4b6c9349f96520a220228ee4e"/><file name="Widget.php" hash="7be6cd4ce33257dcb9c754b1da6852a6"/></dir><dir name="Helper"><file name="Data.php" hash="53c324df464a427bc974ccb30b9b2b74"/></dir><dir name="Model"><file name="Bitcoin.php" hash="d15d724b03aa7dce33cd7ad65d276557"/><file name="Http.php" hash="301e3a15684059765766403072db1615"/><file name="Ipn.php" hash="c0243c3c80c8bc94604f9b79c569bd6f"/><dir name="Resource"><dir name="Ipn"><file name="Collection.php" hash="d4a1c628a1c815a9a9cc8db6fe84a27d"/></dir><file name="Ipn.php" hash="cb1c60decd1fcc786dbaa30e0bc4314d"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="00b98e5b0f134fb16f8fcda6de63db06"/></dir><dir name="etc"><file name="config.xml" hash="0c0b116a7afbf509f951dcb7cfdc624e"/><file name="system.xml" hash="1a1b2bd102795f244bb8331a5d419c45"/></dir><dir name="sql"><dir name="bitcoin_setup"><file name="mysql4-install-0.1.0.php" hash="c0ca52e99ed9379d1e417d6fbc409e83"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="029263662ecc7b7dfe8e76cfa907b38b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bitcoin"><dir name="form"><file name="bitcoin.phtml" hash="ef1c94b1705cf6a003efe60ffa370662"/></dir><file name="index.phtml" hash="22b757c8eae6298b157dfe59495e0345"/><dir name="info"><file name="bitcoin.phtml" hash="297b5f325aa90c0e8d9df673b5f42654"/></dir><file name="status.phtml" hash="4d7753c3efdcad9a2974b89ec636aa4c"/><file name="widget.phtml" hash="
|
38 |
<compatible/>
|
39 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
40 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Yellow_Pay</name>
|
4 |
+
<version>0.1.7</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 |

|
31 |
6.
|
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>Hide widget when other payment methods are selected</notes>
|
34 |
<authors><author><name>James Piechota</name><user>YellowPay</user><email>james@yellowpay.co</email></author><author><name>Tawfek Daghistani</name><user>tawfekov</user><email>tawfekov@gmail.com</email></author></authors>
|
35 |
<date>2014-10-13</date>
|
36 |
+
<time>20:30:50</time>
|
37 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Yellow_Bitcoin.xml" hash="b994ecfa72adf5cac1168178b7dd233c"/></dir></target><target name="magelocal"><dir name="Yellow"><dir name="Bitcoin"><dir name="Block"><dir name="Form"><file name="Bitcoin.php" hash="9f2f3403e2578263b8c73aa495b0b473"/></dir><file name="Index.php" hash="0a2ac65b25a7c31aa457b4688b8c28ac"/><dir name="Info"><file name="Bitcoin.php" hash="7c4f19e8b6cecc559e4df0a215eba6c9"/></dir><file name="Status.php" hash="e437b9f4b6c9349f96520a220228ee4e"/><file name="Widget.php" hash="7be6cd4ce33257dcb9c754b1da6852a6"/></dir><dir name="Helper"><file name="Data.php" hash="53c324df464a427bc974ccb30b9b2b74"/></dir><dir name="Model"><file name="Bitcoin.php" hash="d15d724b03aa7dce33cd7ad65d276557"/><file name="Http.php" hash="301e3a15684059765766403072db1615"/><file name="Ipn.php" hash="c0243c3c80c8bc94604f9b79c569bd6f"/><dir name="Resource"><dir name="Ipn"><file name="Collection.php" hash="d4a1c628a1c815a9a9cc8db6fe84a27d"/></dir><file name="Ipn.php" hash="cb1c60decd1fcc786dbaa30e0bc4314d"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="00b98e5b0f134fb16f8fcda6de63db06"/></dir><dir name="etc"><file name="config.xml" hash="0c0b116a7afbf509f951dcb7cfdc624e"/><file name="system.xml" hash="1a1b2bd102795f244bb8331a5d419c45"/></dir><dir name="sql"><dir name="bitcoin_setup"><file name="mysql4-install-0.1.0.php" hash="c0ca52e99ed9379d1e417d6fbc409e83"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="029263662ecc7b7dfe8e76cfa907b38b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bitcoin"><dir name="form"><file name="bitcoin.phtml" hash="ef1c94b1705cf6a003efe60ffa370662"/></dir><file name="index.phtml" hash="22b757c8eae6298b157dfe59495e0345"/><dir name="info"><file name="bitcoin.phtml" hash="297b5f325aa90c0e8d9df673b5f42654"/></dir><file name="status.phtml" hash="4d7753c3efdcad9a2974b89ec636aa4c"/><file name="widget.phtml" hash="fcce304261bd2d3e8d69c6c15f4a68eb"/></dir></dir><dir name="layout"><file name="bitcoin.xml" hash="71f89164224ff02c8afc1ebad86ed6ee"/></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>
|