-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into MAGE-505-Fix_Paydirekt_Shipping_VAT
- Loading branch information
Showing
13 changed files
with
265 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
87 changes: 87 additions & 0 deletions
87
app/code/community/Payone/Core/Model/Payment/Method/WalletWeChatPay.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?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_Model | ||
* @subpackage Payment | ||
* @copyright Copyright (c) 2020 <[email protected]> - www.fatchip.de | ||
* @author Fatchip GmbH <[email protected]> | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link https://www.fatchip.de | ||
*/ | ||
|
||
/** | ||
* | ||
* @category Payone | ||
* @package Payone_Core_Model | ||
* @subpackage Payment | ||
* @copyright Copyright (c) 2020 <[email protected]> - www.fatchip.de | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link https://www.fatchip.de | ||
*/ | ||
class Payone_Core_Model_Payment_Method_WalletWeChatPay extends Payone_Core_Model_Payment_Method_Abstract | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $methodType = Payone_Core_Model_System_Config_PaymentMethodType::WALLETWECHATPAY; | ||
/** | ||
* @var string | ||
*/ | ||
protected $_code = Payone_Core_Model_System_Config_PaymentMethodCode::WALLETWECHATPAY; | ||
/** | ||
* @var string | ||
*/ | ||
protected $_formBlockType = 'payone_core/payment_method_form_wallet'; | ||
/** | ||
* @var string | ||
*/ | ||
protected $_infoBlockType = 'payone_core/payment_method_info_wallet'; | ||
|
||
/** @var Payone_Core_Model_Config_Payment_Method_Interface[] */ | ||
protected $matchingConfigs = array(); | ||
/** | ||
* @var bool | ||
*/ | ||
protected $_canUseInternal = false; | ||
|
||
/** | ||
* @api | ||
* | ||
* To be used in Form_Block, which has to display all wallet types | ||
* | ||
* @param Mage_Sales_Model_Quote $quote | ||
* @return Payone_Core_Model_Config_Payment_Method_Interface | ||
*/ | ||
public function getAllConfigsByQuote(Mage_Sales_Model_Quote $quote) | ||
{ | ||
if (empty($this->matchingConfigs)) { | ||
$configStore = $this->getConfigStore($quote->getStoreId()); | ||
|
||
$this->matchingConfigs = $configStore->getPayment()->getMethodsForQuote($this->methodType, $quote); | ||
} | ||
|
||
return $this->matchingConfigs; | ||
} | ||
|
||
/** | ||
* @param $redirectUrl | ||
*/ | ||
public function setRedirectUrl($redirectUrl) | ||
{ | ||
$oSession = Mage::getSingleton('checkout/session'); | ||
$oSession->setPayoneExternalCheckoutActive(true); | ||
$this->redirectUrl = $redirectUrl; | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
57 changes: 57 additions & 0 deletions
57
lib/Payone/Api/Request/Parameter/Authorization/PaymentMethod/WalletWeChatPay.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?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 to newer | ||
* versions in the future. If you wish to customize Payone for your | ||
* needs please refer to http://www.payone.de for more information. | ||
* | ||
* @category Payone | ||
* @package Payone_Api | ||
* @subpackage Request | ||
* @copyright Copyright (c) 2020 <[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 | ||
*/ | ||
|
||
/** | ||
* | ||
* @category Payone | ||
* @package Payone_Api | ||
* @subpackage Request | ||
* @copyright Copyright (c) 2020 <fatchip.de> - www.fatchip.de | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link http://www.fatchip.de | ||
*/ | ||
class Payone_Api_Request_Parameter_Authorization_PaymentMethod_WalletWeChatPay | ||
extends Payone_Api_Request_Parameter_Authorization_PaymentMethod_Wallet | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $businessrelation = NULL; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBusinessrelation() | ||
{ | ||
return $this->businessrelation; | ||
} | ||
|
||
/** | ||
* @param string $businessrelation | ||
*/ | ||
public function setBusinessrelation($businessrelation) | ||
{ | ||
$this->businessrelation = $businessrelation; | ||
} | ||
|
||
} |
This file contains 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
44 changes: 44 additions & 0 deletions
44
lib/Payone/Settings/Data/ConfigFile/PaymentMethod/WalletWechatpay.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?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 to newer | ||
* versions in the future. If you wish to customize Payone for your | ||
* needs please refer to http://www.payone.de for more information. | ||
* | ||
* @category Payone | ||
* @package Payone_Settings | ||
* @subpackage Data | ||
* @copyright Copyright (c) 2020 <[email protected]> - www.fatchip.de | ||
* @author Fatchip GmbH <[email protected]> | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link https://www.fatchip.de | ||
*/ | ||
|
||
/** | ||
* | ||
* @category Payone | ||
* @package Payone_Settings | ||
* @subpackage Data | ||
* @copyright Copyright (c) 2020 <[email protected]> - www.fatchip.de | ||
* @license <http://www.gnu.org/licenses/> GNU General Public License (GPL 3) | ||
* @link https://www.fatchip.de | ||
*/ | ||
class Payone_Settings_Data_ConfigFile_PaymentMethod_Walletwechatpay | ||
extends Payone_Settings_Data_ConfigFile_PaymentMethod_Abstract | ||
implements Payone_Settings_Data_ConfigFile_Interface | ||
{ | ||
/** @var string */ | ||
protected $key = Payone_Enum_ClearingType::WALLETWECHATPAY; | ||
|
||
public function getKey() | ||
{ | ||
return $this->key; | ||
} | ||
} |