Skip to content

Commit

Permalink
Merge pull request #353 from BoulangerV/MAGE-340_Paydirekt-Express-Ch…
Browse files Browse the repository at this point in the history
…eckout

Mage 340 paydirekt express checkout
  • Loading branch information
T-Kuchel authored Sep 6, 2019
2 parents a6ebbfd + 9a7ee47 commit 2dbcd18
Show file tree
Hide file tree
Showing 61 changed files with 4,733 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function getMethods()
}

$aRestrictedMethods = $this->getRestrictedMethods();
$aRestrictedMethods[] = Payone_Core_Model_System_Config_PaymentMethodCode::WALLETPAYDIREKTEXPRESS;
if (!empty($aRestrictedMethods)) {
$this->methods = array_filter(
$this->methods,
Expand Down
41 changes: 41 additions & 0 deletions app/code/community/Payone/Core/Block/Paydirekt/Express/Cancel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
*
* NOTICE OF LICENSE
*
* This source file is subject to the GNU General Public License (GPL 3)
* that is bundled with this package in the file LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Payone_Core to newer
* versions in the future. If you wish to customize Payone_Core for your
* needs please refer to http://www.payone.de for more information.
*
* @category Payone
* @package Payone_Core_Block
* @subpackage Paydirekt_Express
* @copyright Copyright (c) 2019 <[email protected]> - www.fatchip.de
* @author FATCHIP GmbH <[email protected]>
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
* @link http://www.fatchip.de
*/
class Payone_Core_Block_Paydirekt_Express_Cancel extends Mage_Core_Block_Template
{
const CART_URL = 'checkout/cart';

/**
* Retrieve payment method and assign additional template values
*/
protected function _beforeToHtml()
{
}

/**
* @return string
*/
public function getCartUrl()
{
return Mage::getUrl(self::CART_URL);
}
}
170 changes: 170 additions & 0 deletions app/code/community/Payone/Core/Block/Paydirekt/Express/Review.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
<?php
/**
*
* NOTICE OF LICENSE
*
* This source file is subject to the GNU General Public License (GPL 3)
* that is bundled with this package in the file LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Payone_Core to newer
* versions in the future. If you wish to customize Payone_Core for your
* needs please refer to http://www.payone.de for more information.
*
* @category Payone
* @package Payone_Core_Block
* @subpackage Paydirekt_Express
* @copyright Copyright (c) 2019 <[email protected]> - www.fatchip.de
* @author FATCHIP GmbH <[email protected]>
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
* @link http://www.fatchip.de
*/
class Payone_Core_Block_Paydirekt_Express_Review extends Mage_Core_Block_Template
{
/** @var int */
protected $quoteId;
/** @var Payone_Core_Block_Paydirekt_Express_Review_Billing */
protected $billing;
/** @var Payone_Core_Block_Paydirekt_Express_Review_Shipping */
protected $shipping;
/** @var Payone_Core_Block_Paydirekt_Express_Review_ShippingMethod */
protected $shippingMethod;
/** @var Payone_Core_Block_Paydirekt_Express_Review_PaymentMethod */
protected $paymentMethod;
/** @var Payone_Core_Block_Paydirekt_Express_Review_Items */
protected $itemsReview;
/** @var Mage_Checkout_Block_Agreements */
protected $checkoutAgreements;

/**
* Retrieve payment method and assign additional template values
*/
protected function _beforeToHtml()
{

}

/**
* @return Mage_Sales_Model_Quote
*/
public function getQuote()
{
/** @var Mage_Sales_Model_Quote $quote */
$quote = Mage::getModel('sales/quote')->load($this->quoteId);

return $quote;
}

/**
* @return int
*/
public function getQuoteId()
{
return $this->quoteId;
}

/**
* @param int $quoteId
*/
public function setQuoteId($quoteId)
{
$this->quoteId = $quoteId;
}

/**
* @return Payone_Core_Block_Paydirekt_Express_Review_Billing
*/
public function getBilling()
{
return $this->billing;
}

/**
* @param Payone_Core_Block_Paydirekt_Express_Review_Billing $billing
*/
public function setBilling($billing)
{
$this->billing = $billing;
}

/**
* @return Payone_Core_Block_Paydirekt_Express_Review_Shipping
*/
public function getShipping()
{
return $this->shipping;
}

/**
* @param Payone_Core_Block_Paydirekt_Express_Review_Shipping $shipping
*/
public function setShipping($shipping)
{
$this->shipping = $shipping;
}

/**
* @return Payone_Core_Block_Paydirekt_Express_Review_ShippingMethod
*/
public function getShippingMethod()
{
return $this->shippingMethod;
}

/**
* @param Payone_Core_Block_Paydirekt_Express_Review_ShippingMethod $shippingMethod
*/
public function setShippingMethod($shippingMethod)
{
$this->shippingMethod = $shippingMethod;
}

/**
* @return Payone_Core_Block_Paydirekt_Express_Review_PaymentMethod
*/
public function getPaymentMethod()
{
return $this->paymentMethod;
}

/**
* @param Payone_Core_Block_Paydirekt_Express_Review_PaymentMethod $paymentMethod
*/
public function setPaymentMethod($paymentMethod)
{
$this->paymentMethod = $paymentMethod;
}

/**
* @return Payone_Core_Block_Paydirekt_Express_Review_Items
*/
public function getItemsReview()
{
return $this->itemsReview;
}

/**
* @param Payone_Core_Block_Paydirekt_Express_Review_Items $itemsReview
*/
public function setItemsReview($itemsReview)
{
$this->itemsReview = $itemsReview;
}

/**
* @return Mage_Checkout_Block_Agreements
*/
public function getCheckoutAgreements()
{
return $this->checkoutAgreements;
}

/**
* @param Mage_Checkout_Block_Agreements $checkoutAgreements
*/
public function setCheckoutAgreements($checkoutAgreements)
{
$this->checkoutAgreements = $checkoutAgreements;
}
}
Loading

0 comments on commit 2dbcd18

Please sign in to comment.