Skip to content

Commit

Permalink
MAGE-529: Fix after method removal
Browse files Browse the repository at this point in the history
- using pseudo method
  • Loading branch information
BoulangerV committed Aug 19, 2022
1 parent 509bb3c commit e630404
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 241 deletions.
4 changes: 3 additions & 1 deletion app/code/community/Payone/Core/Helper/Payment/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ class Payone_Core_Helper_Payment_Data extends Mage_Payment_Helper_Data
*/
protected $deletedMethodTitles = array(
'payone_masterpass' => 'Masterpass',
'payone_wallet_paydirekt_express' => 'Paydirekt Express'
);

/**
* @var array
*/
protected $deletedMethodClearingTypes = array(
'masterpass' => 'wlt'
'masterpass' => 'wlt',
'wallet_paydirekt_express' => 'Paydirekt Express'
);

public function getMethodInstance($code)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ public function mapFromPayment(Mage_Sales_Model_Order_Payment $payment)
if($workOrderId = $payment->getAdditionalInformation(Payone_Core_Model_Service_Paypal_Express_Checkout::PAYONE_EXPRESS_CHECKOUT_WORKORDERID)) {
$request->setWorkorderId($workOrderId);
}
//Add workorderid when paydirekt express checkout is used
if($workOrderId = $payment->getAdditionalInformation(Payone_Core_Model_Service_Paydirekt_Express_Checkout::PAYONE_PAYDIREKT_CHECKOUT_WORKORDERID)) {
$request->setWorkorderId($workOrderId);
}

$payment = $this->mapPaymentParameters();

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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 design_frontend_base_default
* @subpackage template
* @copyright Copyright (c) 2019 <kontakt@fatchip.de> - www.fatchip.com
* @author Vincent Boulanger <vincent.boulanger@fatchip.de>
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
* @link http://www.fatchip.com
*/

/** @var $this Payone_Core_Block_Payment_Method_Info_Pseudo */
?>
<?php
echo $this->escapeHtml($this->getMethodTitle())
?>
10 changes: 1 addition & 9 deletions lib/Payone/Api/Mapper/Request/Payment/Genericpayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Payone_Api_Mapper_Request_Payment_Genericpayment
/**
* Convert amount for payone service request
* @param Payone_Api_Request_Interface $request
* @return type
* @return array
*/
public function map(Payone_Api_Request_Interface $request)
{
Expand All @@ -34,14 +34,6 @@ public function map(Payone_Api_Request_Interface $request)
$this->mapAmount($request);
}

if ($request instanceof Payone_Api_Request_PaydirektExpressSetCheckout && $request->getInvoicing()) {
foreach ($request->getInvoicing()->getItems() as $invoicingItem) {
$invoicingItem->setPr(
round($invoicingItem->getPr(), 2) * 100
);
}
}

return $request->toArray();
}

Expand Down
70 changes: 0 additions & 70 deletions lib/Payone/Api/Request/PaydirektExpressSetCheckout.php

This file was deleted.

86 changes: 0 additions & 86 deletions skin/frontend/base/default/payone/core/paydirektexpress.css

This file was deleted.

0 comments on commit e630404

Please sign in to comment.