Skip to content

Instantly share code, notes, and snippets.

@lstrojny
Created April 21, 2013 21:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lstrojny/5431154 to your computer and use it in GitHub Desktop.
Save lstrojny/5431154 to your computer and use it in GitHub Desktop.
Manual payment method (backend only)
<?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