-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from michielgerritsen/feature/removed-bitcoin
Removed the Bitcoin payment method
- Loading branch information
Showing
10 changed files
with
63 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,8 @@ | |
* @author Mollie B.V. ([email protected]) | ||
* @copyright Copyright (c) 2012-2019 Mollie B.V. (https://www.mollie.nl) | ||
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2 | ||
* @deprecated 5.2.0 The Bitcoin method is no longer support by Mollie. | ||
*/ | ||
|
||
class Mollie_Mpm_Model_Method_Bitcoin extends Mollie_Mpm_Model_Method_Abstract | ||
{ | ||
|
||
|
@@ -55,4 +55,10 @@ class Mollie_Mpm_Model_Method_Bitcoin extends Mollie_Mpm_Model_Method_Abstract | |
protected $_canRefund = false; | ||
protected $_canRefundInvoicePartial = false; | ||
|
||
} | ||
public function isAvailable($quote = null) | ||
{ | ||
return false; | ||
} | ||
|
||
|
||
} |
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
54 changes: 54 additions & 0 deletions
54
app/code/community/Mollie/Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.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,54 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2012-2019, Mollie B.V. | ||
* All rights reserved. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* - Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* - Redistributions in binary form must reproduce the above copyright notice, | ||
* this list of conditions and the following disclaimer in the documentation | ||
* and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY | ||
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
* DAMAGE. | ||
* | ||
* @category Mollie | ||
* @package Mollie_Mpm | ||
* @author Mollie B.V. ([email protected]) | ||
* @copyright Copyright (c) 2012-2019 Mollie B.V. (https://www.mollie.nl) | ||
* @license http://www.opensource.org/licenses/bsd-license.php BSD-License 2 | ||
*/ | ||
|
||
/** @var Mage_Sales_Model_Resource_Setup $installer */ | ||
$installer = $this; | ||
$installer->startSetup(); | ||
|
||
$paths = [ | ||
'payment/mollie_bitcoin/active', | ||
'payment/mollie_bitcoin/title', | ||
'payment/mollie_bitcoin/method', | ||
'payment/mollie_bitcoin/payment_description', | ||
'payment/mollie_bitcoin/allowspecific', | ||
'payment/mollie_bitcoin/specificcountry', | ||
'payment/mollie_bitcoin/min_order_total', | ||
'payment/mollie_bitcoin/max_order_total', | ||
'payment/mollie_bitcoin/sort_order', | ||
]; | ||
|
||
foreach ($paths as $path) { | ||
$installer->deleteConfigData($path); | ||
} | ||
|
||
$installer->endSetup(); |
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
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