diff --git a/README.md b/README.md index 73311ca..2d64163 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ Author: Contributions: - [Ermanno Baschiera](https://github.com/ebaschiera) +- [azambon](https://github.com/azambon) - For a full list of contributors visit [Magento Module Satispay on GitHub](https://github.com/bitbull-team/magento-module-satispay/graphs/contributors) ## License diff --git a/composer.json b/composer.json index e2bbf06..e9d14cb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "Bitbull/Satispay", + "name": "bitbull/satispay", "license": "OSL-3.0", "type": "magento-module", "description": "Magento module for Satispay Payment integration", diff --git a/src/app/code/community/Bitbull/Satispay/Helper/Order.php b/src/app/code/community/Bitbull/Satispay/Helper/Order.php index 414621a..881aae7 100644 --- a/src/app/code/community/Bitbull/Satispay/Helper/Order.php +++ b/src/app/code/community/Bitbull/Satispay/Helper/Order.php @@ -64,6 +64,8 @@ public function update($order, $chargeId=null) { ->addObject($invoice->getOrder()); $transactionSave->save(); + + Mage::dispatchEvent('satispay_update_success', array('order' => $order, 'charge' => $charge)); } elseif(in_array($charge->status, array(Satispay_Core_Client::PAYMENT_STATUS_DECLINED, Satispay_Core_Client::PAYMENT_STATUS_FAILURE))) { $helper->getLogger()->info('Charge in ' . $charge->status . ' status: cancelling order'); @@ -72,8 +74,11 @@ public function update($order, $chargeId=null) { $order->addStatusHistoryComment('Charge in ' . $charge->status . ' status.'); $order->save(); + Mage::dispatchEvent('satispay_update_failure', array('order' => $order, 'charge' => $charge)); } else { $helper->getLogger()->info('No action taken for status ' . $charge->status); + + Mage::dispatchEvent('satispay_update_other', array('order' => $order, 'charge' => $charge)); } } } diff --git a/src/app/code/community/Bitbull/Satispay/etc/config.xml b/src/app/code/community/Bitbull/Satispay/etc/config.xml index 669ddf4..8bc8f73 100644 --- a/src/app/code/community/Bitbull/Satispay/etc/config.xml +++ b/src/app/code/community/Bitbull/Satispay/etc/config.xml @@ -2,7 +2,7 @@ - 0.2.1 + 0.2.5 @@ -72,7 +72,6 @@ Pay with Satispay - pending_payment sale satispay/payment +39 diff --git a/src/app/code/community/Bitbull/Satispay/etc/system.xml b/src/app/code/community/Bitbull/Satispay/etc/system.xml index 48c0675..80bdc12 100644 --- a/src/app/code/community/Bitbull/Satispay/etc/system.xml +++ b/src/app/code/community/Bitbull/Satispay/etc/system.xml @@ -18,7 +18,7 @@ 1 1 1 - 0 + 1 <label>Title</label> @@ -26,7 +26,7 @@ <sort_order>2</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> - <show_in_store>0</show_in_store> + <show_in_store>1</show_in_store> @@ -34,7 +34,7 @@ 3 1 1 - 0 + 1 @@ -43,7 +43,7 @@ 4 1 1 - 0 + 1 @@ -51,7 +51,7 @@ 5 1 1 - 0 + 1 @@ -60,7 +60,7 @@ 6 1 1 - 0 + 1 @@ -68,7 +68,7 @@ 7 1 1 - 0 + 1 validate-number @@ -79,7 +79,7 @@ 110 1 1 - 0 + 1 1