Created
April 21, 2013 21:31
-
-
Save lstrojny/5431154 to your computer and use it in GitHub Desktop.
Manual payment method (backend only)
This file contains hidden or 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
<?php | |
class Akjumii_Payment_Model_Method_Manual extends Mage_Payment_Model_Method_Abstract | |
{ | |
protected $_code = 'manual_payment'; | |
protected $_isGateway = false; | |
protected $_canAuthorize = false; | |
protected $_canVoid = false; | |
protected $_canUseInternal = true; | |
protected $_canUseCheckout = false; | |
protected $_canUseForMultishipping = false; | |
protected $_canSaveCc = false; | |
public function isAvailable($quote = null) | |
{ | |
return Mage::app()->getStore()->isAdmin(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment