Version Notes
Add version display to the admin configuration
Example callback URLs are now based on the default store base_url
The quotes now remain active until final paid status
Download this release
Release Info
Developer | Toby Rhodes |
Extension | chippinpayments |
Version | 0.1.4 |
Comparing to | |
See all releases |
Code changes from version 0.1.3 to 0.1.4
- app/code/community/Chippin/ChippinPayment/Block/Adminhtml/System/Config/Fieldset/Hint.php +9 -2
- app/code/community/Chippin/ChippinPayment/Helper/Data.php +5 -0
- app/code/community/Chippin/ChippinPayment/controllers/StandardController.php +2 -2
- app/design/adminhtml/default/default/template/chippinpayment/system/config/fieldset/hint.phtml +10 -3
- app/etc/modules/Chippin_ChippinPayment.xml +1 -1
- package.xml +7 -5
app/code/community/Chippin/ChippinPayment/Block/Adminhtml/System/Config/Fieldset/Hint.php
CHANGED
@@ -14,14 +14,21 @@ class Chippin_ChippinPayment_Block_Adminhtml_System_Config_Fieldset_Hint
|
|
14 |
*/
|
15 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
16 |
{
|
17 |
-
$
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
$integrationUrls = array(
|
20 |
'Canceled' => $oUrl->getUrl("chippin/standard/canceled", $params),
|
21 |
'Completed' => $oUrl->getUrl("chippin/standard/completed", $params),
|
22 |
'Contributed' => $oUrl->getUrl("chippin/standard/contributed", $params),
|
23 |
'Failed' => $oUrl->getUrl("chippin/standard/failed", $params),
|
24 |
'Invited' => $oUrl->getUrl("chippin/standard/invited", $params),
|
|
|
25 |
'Rejected' => $oUrl->getUrl("chippin/standard/rejected", $params),
|
26 |
'Timed Out' => $oUrl->getUrl("chippin/standard/timedout", $params)
|
27 |
);
|
14 |
*/
|
15 |
public function render(Varien_Data_Form_Element_Abstract $element)
|
16 |
{
|
17 |
+
$storeId = Mage::app()
|
18 |
+
->getWebsite(true)
|
19 |
+
->getDefaultGroup()
|
20 |
+
->getDefaultStoreId();
|
21 |
+
|
22 |
+
//$oUrl = Mage::getModel('core/url');
|
23 |
+
$oUrl = Mage::app()->getStore($storeId);
|
24 |
+
$params = array('_secure' => true, '_store_to_url' => false, '_type' => 'direct_link');
|
25 |
$integrationUrls = array(
|
26 |
'Canceled' => $oUrl->getUrl("chippin/standard/canceled", $params),
|
27 |
'Completed' => $oUrl->getUrl("chippin/standard/completed", $params),
|
28 |
'Contributed' => $oUrl->getUrl("chippin/standard/contributed", $params),
|
29 |
'Failed' => $oUrl->getUrl("chippin/standard/failed", $params),
|
30 |
'Invited' => $oUrl->getUrl("chippin/standard/invited", $params),
|
31 |
+
'Paid' => $oUrl->getUrl("chippin/standard/paid", $params),
|
32 |
'Rejected' => $oUrl->getUrl("chippin/standard/rejected", $params),
|
33 |
'Timed Out' => $oUrl->getUrl("chippin/standard/timedout", $params)
|
34 |
);
|
app/code/community/Chippin/ChippinPayment/Helper/Data.php
CHANGED
@@ -26,4 +26,9 @@ class Chippin_ChippinPayment_Helper_Data extends Mage_Core_Helper_Abstract
|
|
26 |
return $this->_config;
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
26 |
return $this->_config;
|
27 |
}
|
28 |
|
29 |
+
public function getExtensionVersion()
|
30 |
+
{
|
31 |
+
return (string) Mage::getConfig()->getNode()->modules->Chippin_ChippinPayment->version;
|
32 |
+
}
|
33 |
+
|
34 |
}
|
app/code/community/Chippin/ChippinPayment/controllers/StandardController.php
CHANGED
@@ -82,7 +82,7 @@ class Chippin_ChippinPayment_StandardController extends Mage_Core_Controller_Fro
|
|
82 |
|
83 |
$session = Mage::getSingleton('checkout/session');
|
84 |
$session->setQuoteId($order->getQuoteId());
|
85 |
-
Mage::getSingleton('checkout/session')->getQuote()->setIsActive(
|
86 |
|
87 |
$this->_redirect('chippin/checkout/contributed', array('_secure' => true));
|
88 |
}
|
@@ -111,7 +111,7 @@ class Chippin_ChippinPayment_StandardController extends Mage_Core_Controller_Fro
|
|
111 |
|
112 |
$session = Mage::getSingleton('checkout/session');
|
113 |
$session->setQuoteId($order->getQuoteId());
|
114 |
-
Mage::getSingleton('checkout/session')->getQuote()->setIsActive(
|
115 |
|
116 |
$this->_redirect('chippin/checkout/declined', array('_secure' => true));
|
117 |
}
|
82 |
|
83 |
$session = Mage::getSingleton('checkout/session');
|
84 |
$session->setQuoteId($order->getQuoteId());
|
85 |
+
Mage::getSingleton('checkout/session')->getQuote()->setIsActive(true)->save();
|
86 |
|
87 |
$this->_redirect('chippin/checkout/contributed', array('_secure' => true));
|
88 |
}
|
111 |
|
112 |
$session = Mage::getSingleton('checkout/session');
|
113 |
$session->setQuoteId($order->getQuoteId());
|
114 |
+
Mage::getSingleton('checkout/session')->getQuote()->setIsActive(true)->save();
|
115 |
|
116 |
$this->_redirect('chippin/checkout/declined', array('_secure' => true));
|
117 |
}
|
app/design/adminhtml/default/default/template/chippinpayment/system/config/fieldset/hint.phtml
CHANGED
@@ -4,15 +4,22 @@
|
|
4 |
<div class="chippin-payment-notice">
|
5 |
<?php echo Mage::helper('chippinpayment')->__('Not yet got a Chippin account? Click <a href="%s" target="_blank">here</a> to register.', $this->getSignupLink()); ?>
|
6 |
</div>
|
|
|
7 |
<?php
|
8 |
endif;
|
9 |
?>
|
|
|
10 |
<ul>
|
11 |
<li>
|
12 |
-
<strong>Integrtion Urls</strong><br/>
|
13 |
-
Enter these into the Chippin configuration screen.
|
14 |
-
</li>
|
15 |
<?php foreach ($this->getIntegrationUrls() as $label => $url) { ?>
|
16 |
<li><?php echo $label; ?>: <?php echo $url; ?></li>
|
17 |
<?php } ?>
|
18 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<div class="chippin-payment-notice">
|
5 |
<?php echo Mage::helper('chippinpayment')->__('Not yet got a Chippin account? Click <a href="%s" target="_blank">here</a> to register.', $this->getSignupLink()); ?>
|
6 |
</div>
|
7 |
+
<br/>
|
8 |
<?php
|
9 |
endif;
|
10 |
?>
|
11 |
+
<hr/>
|
12 |
<ul>
|
13 |
<li>
|
14 |
+
<strong>Example Integrtion Callback Urls</strong><br/>
|
15 |
+
Enter these into the Chippin configuration screen. <strong>These examples assume that the module is enabled on the default store.</strong> <em>If this is not the case then you should configure the callback URLs to match your specific configuration.</em><br/><br/>
|
|
|
16 |
<?php foreach ($this->getIntegrationUrls() as $label => $url) { ?>
|
17 |
<li><?php echo $label; ?>: <?php echo $url; ?></li>
|
18 |
<?php } ?>
|
19 |
</ul>
|
20 |
+
<br/>
|
21 |
+
<hr/>
|
22 |
+
<br/>
|
23 |
+
<p><strong>Installed version of the Chippin integration <?php echo Mage::helper('chippinpayment')->getExtensionVersion() ?></strong></p>
|
24 |
+
<br/>
|
25 |
+
<hr/>
|
app/etc/modules/Chippin_ChippinPayment.xml
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
<Mage_Core />
|
9 |
<Mage_Payment />
|
10 |
</depends>
|
11 |
-
<version>0.1.
|
12 |
</Chippin_ChippinPayment>
|
13 |
</modules>
|
14 |
</config>
|
8 |
<Mage_Core />
|
9 |
<Mage_Payment />
|
10 |
</depends>
|
11 |
+
<version>0.1.4</version>
|
12 |
</Chippin_ChippinPayment>
|
13 |
</modules>
|
14 |
</config>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>chippinpayments</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://raw.githubusercontent.com/Chippin/magento-chippin/master/LICENSE">MIT</license>
|
7 |
<channel>community</channel>
|
@@ -12,11 +12,13 @@
|
|
12 |
At the end of your checkout process, you redirect to Chippin with the basic details of the customer and your own unique order reference. At this point, the customer can invite their friends and family to ‘chippin’ for the item(s) they are purchasing.
|
13 |

|
14 |
Chippin is a simple ‘plug-in’ that integrates quickly and seamlessly into any merchant’s online checkout. It enables consumers to easily split the cost of an online transaction safely and securely to their own and the merchant’s benefit.</description>
|
15 |
-
<notes>
|
|
|
|
|
16 |
<authors><author><name>Toby Rhodes</name><user>chippin</user><email>alistair_stead+chippin@me.com</email></author><author><name>Alistair Stead</name><user>astead</user><email>alistair_stead@me.com</email></author></authors>
|
17 |
-
<date>2016-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Chippin"><dir name="ChippinPayment"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.5.0</min><max>7.0.0</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>chippinpayments</name>
|
4 |
+
<version>0.1.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://raw.githubusercontent.com/Chippin/magento-chippin/master/LICENSE">MIT</license>
|
7 |
<channel>community</channel>
|
12 |
At the end of your checkout process, you redirect to Chippin with the basic details of the customer and your own unique order reference. At this point, the customer can invite their friends and family to ‘chippin’ for the item(s) they are purchasing.
|
13 |

|
14 |
Chippin is a simple ‘plug-in’ that integrates quickly and seamlessly into any merchant’s online checkout. It enables consumers to easily split the cost of an online transaction safely and securely to their own and the merchant’s benefit.</description>
|
15 |
+
<notes>Add version display to the admin configuration
|
16 |
+
Example callback URLs are now based on the default store base_url
|
17 |
+
The quotes now remain active until final paid status</notes>
|
18 |
<authors><author><name>Toby Rhodes</name><user>chippin</user><email>alistair_stead+chippin@me.com</email></author><author><name>Alistair Stead</name><user>astead</user><email>alistair_stead@me.com</email></author></authors>
|
19 |
+
<date>2016-10-03</date>
|
20 |
+
<time>15:53:44</time>
|
21 |
+
<contents><target name="magecommunity"><dir name="Chippin"><dir name="ChippinPayment"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="065377d94d6de8dbd5de8ea19eafe6a9"/></dir></dir></dir></dir><dir name="Form"><file name="Payment.php" hash="3a0271b81e0f2e4462d62bfdb25ca9b1"/></dir><dir name="Info"><file name="Payment.php" hash="dabf48fb246889ec342489ef8d1cede7"/></dir><file name="Redirect.php" hash="c0993c4c8b742f47b2e50cb4e8a79a82"/></dir><dir name="Helper"><file name="Checkout.php" hash="9d926f78da4debf034066f8e0909787c"/><file name="Data.php" hash="1dda04dbc384d0a6a4028cc9b66af581"/></dir><dir name="Model"><file name="Autoloader.php" hash="3feb122acae6983aba3e1fd2987ec06e"/><file name="Config.php" hash="4eaf3cad0239f78cc32568626dd5ccd5"/><file name="Order.php" hash="3a85255dfc216e5c7f11dcb09832f04b"/><dir name="Payment"><file name="Method.php" hash="fc80bbd7cbd274a7e545895bb7617269"/></dir><dir name="Resource"><file name="Setup.php" hash="86818d277788c5ba4a6b00656aaf9b0e"/></dir></dir><dir name="controllers"><file name="CheckoutController.php" hash="20dd2caff614689b5fe253b427e4939a"/><file name="StandardController.php" hash="5c433d1f42b092a0c83bc1208d433b5f"/></dir><dir name="data"><dir name="chippinpayment_setup"><file name="data-install-0.1.0.php" hash="70a757cb1d3c5a740a6751c8bb5ba229"/></dir></dir><dir name="etc"><file name="config.xml" hash="90354ec90e2ca99e0223ecc5396ee5fa"/><file name="system.xml" hash="a5045c351c97fddc10fe07e914b5ccc0"/></dir></dir></dir></target><target name="magelib"><dir name="Chippin"><dir name="SDK"><file name="Chippin.php" hash="8153aa6f7711b3e584eb15b922b8a6e3"/><file name="Merchant.php" hash="37bf825d41f2e6302bbee702c6171deb"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="chippinpayment"><file name="contributed.phtml" hash="1052c0346d429ffe0132c2f44f51b8b9"/><file name="declined.phtml" hash="789367eaac0e485e7526db9511eabfec"/><dir name="form"><file name="mark.phtml" hash="96911c10bf80f2eca89245ee575d628a"/></dir></dir></dir><dir name="layout"><file name="chippin.xml" hash="10deabd178d52fe3d3016c997a6fd2f8"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="chippinpayment"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="a5affb67f4d8b330c5ba6c8b840f4937"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Chippin_ChippinPayment.xml" hash="e90b70037ad52126c357bf0f15c5d29b"/></dir></target></contents>
|
22 |
<compatible/>
|
23 |
<dependencies><required><php><min>5.5.0</min><max>7.0.0</max></php></required></dependencies>
|
24 |
</package>
|