Skip to content

Commit

Permalink
Merge pull request #115 from michielgerritsen/feature/removed-bitcoin
Browse files Browse the repository at this point in the history
Removed the Bitcoin payment method
  • Loading branch information
Marvin-Magmodules authored May 6, 2019
2 parents 8c5ee86 + e0fe512 commit eb7c1be
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 129 deletions.
10 changes: 8 additions & 2 deletions app/code/community/Mollie/Mpm/Model/Method/Bitcoin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{

Expand All @@ -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;
}


}
2 changes: 1 addition & 1 deletion app/code/community/Mollie/Mpm/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<config>
<modules>
<Mollie_Mpm>
<version>5.1.0</version>
<version>5.2.0</version>
</Mollie_Mpm>
</modules>
<global>
Expand Down
120 changes: 0 additions & 120 deletions app/code/community/Mollie/Mpm/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -716,126 +716,6 @@
</sort_order>
</fields>
</mollie_belfius>
<mollie_bitcoin translate="label" module="mpm">
<label>Mollie - Bitcoin</label>
<expanded>0</expanded>
<sort_order>100</sort_order>
<frontend_type>text</frontend_type>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<fields>
<active translate="label">
<label>Enabled</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</active>
<title translate="label">
<label>Title</label>
<frontend_type>text</frontend_type>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<active>1</active>
</depends>
</title>
<method translate="label tooltip">
<label>Method</label>
<frontend_type>select</frontend_type>
<source_model>mpm/adminhtml_system_config_source_method</source_model>
<sort_order>3</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<comment><![CDATA[<strong>Payment API</strong><br>Use the Payment API Platform for the transactions.<br><br><strong>Order API</strong><br>Use the new Order API Platform and get additional insights in the orders. Read <a href="https://docs.mollie.com/orders/why-use-orders" target="_blank" >more.</a>]]></comment>
<depends>
<active>1</active>
</depends>
</method>
<payment_description translate="label">
<label>Description</label>
<frontend_type>text</frontend_type>
<sort_order>4</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<active>1</active>
<method>payment</method>
</depends>
<comment><![CDATA[The description to be used for this transaction. These variables are available:<br><br>
<strong>{ordernumber}</strong>: The order number for this transaction<br>
<strong>{storename}</strong>: The name of the store<br><br>
(Note: This only works when the method is set to Payments API)
]]></comment>
</payment_description>
<allowspecific translate="label">
<label>Payment from Applicable Countries</label>
<frontend_type>allowspecific</frontend_type>
<sort_order>5</sort_order>
<source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<active>1</active>
</depends>
</allowspecific>
<specificcountry translate="label">
<label>Payment from Specific Countries</label>
<frontend_type>multiselect</frontend_type>
<sort_order>6</sort_order>
<source_model>adminhtml/system_config_source_country</source_model>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<can_be_empty>1</can_be_empty>
<depends>
<active>1</active>
</depends>
</specificcountry>
<min_order_total translate="label">
<label>Minimum Order Total</label>
<frontend_type>text</frontend_type>
<sort_order>7</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<active>1</active>
</depends>
</min_order_total>
<max_order_total translate="label">
<label>Maximum Order Total</label>
<frontend_type>text</frontend_type>
<sort_order>8</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<depends>
<active>1</active>
</depends>
</max_order_total>
<sort_order translate="label">
<label>Sort Order</label>
<frontend_type>text</frontend_type>
<sort_order>9</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
<frontend_class>validate-number</frontend_class>
<depends>
<active>1</active>
</depends>
</sort_order>
</fields>
</mollie_bitcoin>
<mollie_creditcard translate="label" module="mpm">
<label>Mollie - Credit Card</label>
<expanded>0</expanded>
Expand Down
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();
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
<option value="bancontact">Bancontact</option>
<option value="banktransfer">Banktransfer</option>
<option value="belfius">Belfius</option>
<option value="bitcoin">Bitcoin</option>
<option value="creditcard">Creditcard</option>
<option value="eps">EPS</option>
<option value="giftcard">Giftcard</option>
Expand Down
1 change: 0 additions & 1 deletion app/locale/de_DE/Mollie_Mpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"Bank transfer","Überweisung"
"PayPal","PayPal"
"paysafecard","Paysafecard"
"Bitcoin","Bitcoin"
"KBC/CBC Payment Button","KBC/CBC-Bezahl-Knopf"
"Please select","Bitte auswählen"
"Please Wait.<br>If you are not redirected shortly, click here.","Bitte warten Sie.<br>Wenn Sie nicht in Kürze weitergeleitet werden, dann klicken Sie hier."
Expand Down
1 change: 0 additions & 1 deletion app/locale/en_US/Mollie_Mpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"Bank transfer","Bank transfer"
"PayPal","PayPal"
"paysafecard","paysafecard"
"Bitcoin","Bitcoin"
"KBC/CBC Payment Button","KBC/CBC Payment Button"
"Please select","Please select"
"Please Wait.<br>If you are not redirected shortly, click here.","Please Wait.<br>If you are not redirected shortly, click here."
Expand Down
1 change: 0 additions & 1 deletion app/locale/es_ES/Mollie_Mpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"Bank transfer","Transferencia bancaria"
"PayPal","Paypal"
"paysafecard","paysafecard"
"Bitcoin","Bitcoin"
"KBC/CBC Payment Button","KBC/CBC-Botón de pago"
"Please select","Por favor, seleccione"
"Please Wait.<br>If you are not redirected shortly, click here.","Por favor, espere. <br>Si no se le redirige en breve, haga clic aquí."
Expand Down
1 change: 0 additions & 1 deletion app/locale/fr_FR/Mollie_Mpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
"Bank transfer","Virement girale"
"PayPal","PayPal"
"paysafecard","paysafecard"
"Bitcoin","Bitcoin"
"KBC/CBC Payment Button","Bouton de paiement KBC/CBC"
"Multi Currency","Multicurrency"
"Extension Version","Version d'extension"
Expand Down
1 change: 0 additions & 1 deletion app/locale/nl_NL/Mollie_Mpm.csv
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"Bank transfer","Overboeking"
"PayPal","PayPal"
"paysafecard","paysafecard"
"Bitcoin","Bitcoin"
"KBC/CBC Payment Button","KBC/CBC-Betaalknop"
"Please Wait.<br>If you are not redirected shortly, click here.","Moment geduld.<br>Indien u niet wordt doorgestuurd, klik hier."
"Redirecting to Mollie","Doorverwijzen naar Mollie"
Expand Down

0 comments on commit eb7c1be

Please sign in to comment.