Apruve_B2B_Payment_Gateway - Version 1.0.14

Version Notes

Stable Version

Download this release

Release Info

Developer Apruve
Extension Apruve_B2B_Payment_Gateway
Version 1.0.14
Comparing to
See all releases


Code changes from version 1.0.13 to 1.0.14

app/code/community/Apruve/ApruvePayment/Block/Admin/Webhook.php CHANGED
@@ -24,15 +24,12 @@ class Apruve_ApruvePayment_Block_Admin_Webhook extends Mage_Adminhtml_Block_Syst
24
{
25
$merchantKey = Mage::getStoreConfig('payment/apruvepayment/merchant');
26
$apiKey = Mage::getStoreConfig('payment/apruvepayment/api');
27
- $baseFrontUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);
28
- $moduleControllerAction = 'apruvepayment/webhook/updateOrderStatus?';
29
if(!is_null($merchantKey) && !is_null($apiKey)) {
30
- $data = $apiKey.$merchantKey;
31
- $q = hash('sha256', $data);
32
- $url = $baseFrontUrl.$moduleControllerAction.$q;
33
- return $url;
34
} else {
35
-
36
$message = 'Please, specify merchant and api key';
37
return $message;
38
}
24
{
25
$merchantKey = Mage::getStoreConfig('payment/apruvepayment/merchant');
26
$apiKey = Mage::getStoreConfig('payment/apruvepayment/api');
27
if(!is_null($merchantKey) && !is_null($apiKey)) {
28
+ return Mage::app()->getDefaultStoreView()->getUrl(
29
+ "apruvepayment/webhook/updateOrderStatus",
30
+ array('_query' => array(hash('sha256', $apiKey.$merchantKey) => 1))
31
+ );
32
} else {
33
$message = 'Please, specify merchant and api key';
34
return $message;
35
}
app/code/community/Apruve/ApruvePayment/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<Apruve_ApruvePayment>
5
- <version>1.0.13</version>
6
</Apruve_ApruvePayment>
7
</modules>
8
<frontend>
2
<config>
3
<modules>
4
<Apruve_ApruvePayment>
5
+ <version>1.0.14</version>
6
</Apruve_ApruvePayment>
7
</modules>
8
<frontend>
app/design/frontend/base/default/template/apruvepayment/payment/form.phtml CHANGED
@@ -30,7 +30,7 @@ $paymentRequestModel = $helper->getPaymentRequestApiModel();
30
?>
31
32
<script type="text/javascript">
33
- $('label[for=p_method_apruvepayment]')[0].innerHTML += '<div id="apruveDiv" style="display: inline-block; position: absolute; margin-top: -3px; margin-left: 7px;"></div>';
34
var sh = '<?php echo $paymentRequestModel->getSecureHash();?>';
35
var pr = <?php echo $paymentRequestModel->getPaymentRequestJSON();?>;
36
var shopperName = '<?php echo $paymentRequestModel->getShopperInfo('name');?>';
30
?>
31
32
<script type="text/javascript">
33
+ $('p_method_apruvepayment').up().innerHTML += '<div id="apruveDiv" style="display: inline-block; position: absolute; margin-top: -3px; margin-left: 7px;"></div>';
34
var sh = '<?php echo $paymentRequestModel->getSecureHash();?>';
35
var pr = <?php echo $paymentRequestModel->getPaymentRequestJSON();?>;
36
var shopperName = '<?php echo $paymentRequestModel->getShopperInfo('name');?>';
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Apruve_B2B_Payment_Gateway</name>
4
- <version>1.0.13</version>
5
<stability>stable</stability>
6
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache License, 2.0</license>
7
<channel>community</channel>
@@ -10,9 +10,9 @@
10
<description>Payments designed for business spending. Increase sales and reduce cart abandonment by allowing your shoppers to send purchases directly to their company or client for payment, simply by using an email address instead of a credit card. Learn more and sign up for a free merchant account at http://www.apruve.com.</description>
11
<notes>Stable Version</notes>
12
<authors><author><name>Apruve</name><user>Apruve</user><email>magento@apruve.com</email></author></authors>
13
- <date>2015-12-10</date>
14
- <time>10:47:02</time>
15
- <contents><target name="magecommunity"><dir name="Apruve"><dir name="ApruvePayment"><dir name="Block"><dir name="Admin"><file name="Webhook.php" hash="339e11982444fd861a8ab3ee78e81f6e"/></dir><dir name="Payment"><file name="Form.php" hash="c84481487b8a831fc382d90c76eeb962"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a1f14f2f4383ddd39258fe7b2ad3e1e6"/></dir><file name="LICENSE.txt" hash="9b76dd4b62de4f9840b5d462fcb25e39"/><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="bacd428acbc15b9a873b4d81f29c0252"/><file name="Payment.php" hash="c4d46501092961d448a8592bb2f82abf"/><file name="PaymentRequest.php" hash="54e5e5246c555f50048f7752133074eb"/><file name="Rest.php" hash="36f1519db699ec5c8d45714cbcf35ecb"/></dir><file name="Mode.php" hash="680b0b1bbcece8ac6d6606b80e4669df"/><dir name="Mysql4"><file name="Setup.php" hash="8b3e5b033dac91b47e59c024e16c04ec"/></dir><file name="Observer.php" hash="aa9a79b176f7f0ac580c3c751bd199dd"/><file name="PaymentMethod.php" hash="d094261d4ad6fcbcca063c8bc78c6845"/></dir><dir name="controllers"><file name="WebhookController.php" hash="185f4757d5d289982f55d551d1b4d5ae"/></dir><dir name="etc"><file name="config.xml" hash="99c798654d174822132db3b641800788"/><file name="system.xml" hash="065fd7d1ced76bb5fb2ba4bcb779efb3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="apruvepayment.xml" hash="a5f41c280270a5fa44212c9d4cfe043a"/></dir><dir name="template"><dir name="apruvepayment"><file name="head.phtml" hash="36809c6a8fa5aad587b03e2107482bdf"/><dir name="payment"><file name="form.phtml" hash="fffe2fb194db0fa68bacf59174654a16"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apruve_ApruvePayment.xml" hash="b9d4a9486387dce0b7911d46f1ab81c7"/></dir></target><target name="mage"><dir name="js"><dir name="Apruve"><file name="ApruvePayment.js" hash="5b84bf57eb8ae2bb76d99a4ab6844450"/></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Apruve_B2B_Payment_Gateway</name>
4
+ <version>1.0.14</version>
5
<stability>stable</stability>
6
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache License, 2.0</license>
7
<channel>community</channel>
10
<description>Payments designed for business spending. Increase sales and reduce cart abandonment by allowing your shoppers to send purchases directly to their company or client for payment, simply by using an email address instead of a credit card. Learn more and sign up for a free merchant account at http://www.apruve.com.</description>
11
<notes>Stable Version</notes>
12
<authors><author><name>Apruve</name><user>Apruve</user><email>magento@apruve.com</email></author></authors>
13
+ <date>2016-01-28</date>
14
+ <time>11:31:45</time>
15
+ <contents><target name="magecommunity"><dir name="Apruve"><dir name="ApruvePayment"><dir name="Block"><dir name="Admin"><file name="Webhook.php" hash="5a4eb68f48306322a973f1f837f53ac8"/></dir><dir name="Payment"><file name="Form.php" hash="c84481487b8a831fc382d90c76eeb962"/></dir></dir><dir name="Helper"><file name="Data.php" hash="a1f14f2f4383ddd39258fe7b2ad3e1e6"/></dir><file name="LICENSE.txt" hash="9b76dd4b62de4f9840b5d462fcb25e39"/><dir name="Model"><dir name="Api"><file name="Abstract.php" hash="bacd428acbc15b9a873b4d81f29c0252"/><file name="Payment.php" hash="c4d46501092961d448a8592bb2f82abf"/><file name="PaymentRequest.php" hash="54e5e5246c555f50048f7752133074eb"/><file name="Rest.php" hash="36f1519db699ec5c8d45714cbcf35ecb"/></dir><file name="Mode.php" hash="680b0b1bbcece8ac6d6606b80e4669df"/><dir name="Mysql4"><file name="Setup.php" hash="8b3e5b033dac91b47e59c024e16c04ec"/></dir><file name="Observer.php" hash="aa9a79b176f7f0ac580c3c751bd199dd"/><file name="PaymentMethod.php" hash="d094261d4ad6fcbcca063c8bc78c6845"/></dir><dir name="controllers"><file name="WebhookController.php" hash="185f4757d5d289982f55d551d1b4d5ae"/></dir><dir name="etc"><file name="config.xml" hash="cac4242a38bc139af075b424ed8afe81"/><file name="system.xml" hash="065fd7d1ced76bb5fb2ba4bcb779efb3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="apruvepayment.xml" hash="a5f41c280270a5fa44212c9d4cfe043a"/></dir><dir name="template"><dir name="apruvepayment"><file name="head.phtml" hash="36809c6a8fa5aad587b03e2107482bdf"/><dir name="payment"><file name="form.phtml" hash="b5497b735afe4257831b005f7aeba199"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apruve_ApruvePayment.xml" hash="b9d4a9486387dce0b7911d46f1ab81c7"/></dir></target><target name="mage"><dir name="js"><dir name="Apruve"><file name="ApruvePayment.js" hash="5b84bf57eb8ae2bb76d99a4ab6844450"/></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>