* All rights reserved * * Reuse or modification of this source code is not allowed * without written permission from creativestyle GmbH * * @category Creativestyle * @package Creativestyle_CheckoutByAmazon * @copyright Copyright (c) 2012 creativestyle GmbH (http://www.creativestyle.de) * @author Marek Zabrowarny / creativestyle GmbH */ class Creativestyle_CheckoutByAmazon_Model_Payment_Abstract extends Mage_Payment_Model_Method_Abstract { protected $_code = 'amazonpayments_abstract'; protected $_isGateway = false; protected $_canAuthorize = true; protected $_canCapture = true; protected $_canCapturePartial = false; protected $_canRefund = true; protected $_canRefundInvoicePartial = false; protected $_canVoid = true; protected $_canUseInternal = false; protected $_canUseCheckout = true; protected $_canUseForMultishipping = false; protected $_isInitializeNeeded = false; protected $_order = null; protected function _getOrder() { if (null === $this->_order) { $paymentInfo = $this->getInfoInstance(); $this->_order = Mage::getModel('sales/order')->loadByIncrementId($paymentInfo->getOrder()->getRealOrderId()); } return $this->_order; } }