-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6399d5
commit 1ad6fb8
Showing
16 changed files
with
96 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
app/code/community/Satispay/Satispay/controllers/CronController.php
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
app/code/community/Satispay/Satispay/controllers/ExpireController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
require_once(dirname(__FILE__).'/../includes/online-api-php-sdk/init.php'); | ||
|
||
class Satispay_Satispay_ExpireController extends Mage_Core_Controller_Front_Action { | ||
public function indexAction() { | ||
$helper = Mage::helper('satispay'); | ||
|
||
\SatispayOnline\Api::setSecurityBearer($helper->getSecurityBearer()); | ||
\SatispayOnline\Api::setStaging($helper->isStaging()); | ||
\SatispayOnline\Api::setPluginName('Magento'); | ||
\SatispayOnline\Api::setType('ECOMMERCE-PLUGIN'); | ||
$magentoVersion = Mage::getVersionInfo(); | ||
\SatispayOnline\Api::setPlatformVersion($magentoVersion['major'].'.'.$magentoVersion['minor'].'.'.$magentoVersion['revision']); | ||
|
||
$order = Mage::getModel('sales/order')->load($this->getRequest()->getQuery('order_id')); | ||
if ($order->getStatus() === 'pending') { | ||
$order->cancel()->save(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
app/code/community/Satispay/Satispay/includes/online-api-php-sdk/init.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php | ||
require(dirname(__FILE__) . '/lib/Api.php'); | ||
require_once(dirname(__FILE__) . '/lib/Api.php'); | ||
|
||
require(dirname(__FILE__) . '/lib/Bearer.php'); | ||
require(dirname(__FILE__) . '/lib/Charge.php'); | ||
require(dirname(__FILE__) . '/lib/Checkout.php'); | ||
require(dirname(__FILE__) . '/lib/Refund.php'); | ||
require(dirname(__FILE__) . '/lib/User.php'); | ||
require_once(dirname(__FILE__) . '/lib/Bearer.php'); | ||
require_once(dirname(__FILE__) . '/lib/Charge.php'); | ||
require_once(dirname(__FILE__) . '/lib/Checkout.php'); | ||
require_once(dirname(__FILE__) . '/lib/Refund.php'); | ||
require_once(dirname(__FILE__) . '/lib/User.php'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.