From e0fe512db8f97af8a78b02760b49b9a6deeda0fc Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Thu, 2 May 2019 16:19:34 +0200 Subject: [PATCH] Removed the Bitcoin payment method --- .../Mollie/Mpm/Model/Method/Bitcoin.php | 10 +- app/code/community/Mollie/Mpm/etc/config.xml | 2 +- app/code/community/Mollie/Mpm/etc/system.xml | 120 ------------------ .../Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.php | 54 ++++++++ .../template/mollie/mpm/payment/form.phtml | 1 - app/locale/de_DE/Mollie_Mpm.csv | 1 - app/locale/en_US/Mollie_Mpm.csv | 1 - app/locale/es_ES/Mollie_Mpm.csv | 1 - app/locale/fr_FR/Mollie_Mpm.csv | 1 - app/locale/nl_NL/Mollie_Mpm.csv | 1 - 10 files changed, 63 insertions(+), 129 deletions(-) create mode 100644 app/code/community/Mollie/Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.php diff --git a/app/code/community/Mollie/Mpm/Model/Method/Bitcoin.php b/app/code/community/Mollie/Mpm/Model/Method/Bitcoin.php index 64911cc9..3574ff40 100644 --- a/app/code/community/Mollie/Mpm/Model/Method/Bitcoin.php +++ b/app/code/community/Mollie/Mpm/Model/Method/Bitcoin.php @@ -29,8 +29,8 @@ * @author Mollie B.V. (info@mollie.nl) * @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; + } + + +} \ No newline at end of file diff --git a/app/code/community/Mollie/Mpm/etc/config.xml b/app/code/community/Mollie/Mpm/etc/config.xml index fe327bfe..22352c07 100644 --- a/app/code/community/Mollie/Mpm/etc/config.xml +++ b/app/code/community/Mollie/Mpm/etc/config.xml @@ -33,7 +33,7 @@ - 5.1.0 + 5.2.0 diff --git a/app/code/community/Mollie/Mpm/etc/system.xml b/app/code/community/Mollie/Mpm/etc/system.xml index 28608183..0c5df3df 100644 --- a/app/code/community/Mollie/Mpm/etc/system.xml +++ b/app/code/community/Mollie/Mpm/etc/system.xml @@ -716,126 +716,6 @@ - - - 0 - 100 - text - 1 - 1 - 1 - - - - select - adminhtml/system_config_source_yesno - 1 - 1 - 1 - 1 - - - <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> - - - - select - mpm/adminhtml_system_config_source_method - 3 - 1 - 1 - 1 - Payment API
Use the Payment API Platform for the transactions.

Order API
Use the new Order API Platform and get additional insights in the orders. Read more.]]>
- - 1 - -
- - - text - 4 - 1 - 1 - 1 - - 1 - payment - -
- {ordernumber}: The order number for this transaction
- {storename}: The name of the store

- (Note: This only works when the method is set to Payments API) - ]]>
-
- - - allowspecific - 5 - adminhtml/system_config_source_payment_allspecificcountries - 1 - 1 - 1 - - 1 - - - - - multiselect - 6 - adminhtml/system_config_source_country - 1 - 1 - 1 - 1 - - 1 - - - - - text - 7 - 1 - 1 - 1 - - 1 - - - - - text - 8 - 1 - 1 - 1 - - 1 - - - - - text - 9 - 1 - 1 - 1 - validate-number - - 1 - - -
-
0 diff --git a/app/code/community/Mollie/Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.php b/app/code/community/Mollie/Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.php new file mode 100644 index 00000000..24e057ca --- /dev/null +++ b/app/code/community/Mollie/Mpm/sql/mpm_setup/upgrade-5.1.0-5.2.0.php @@ -0,0 +1,54 @@ +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(); \ No newline at end of file diff --git a/app/design/adminhtml/default/default/template/mollie/mpm/payment/form.phtml b/app/design/adminhtml/default/default/template/mollie/mpm/payment/form.phtml index 7efb0a3d..eb845314 100644 --- a/app/design/adminhtml/default/default/template/mollie/mpm/payment/form.phtml +++ b/app/design/adminhtml/default/default/template/mollie/mpm/payment/form.phtml @@ -42,7 +42,6 @@ - diff --git a/app/locale/de_DE/Mollie_Mpm.csv b/app/locale/de_DE/Mollie_Mpm.csv index d56ed295..2ba3b527 100644 --- a/app/locale/de_DE/Mollie_Mpm.csv +++ b/app/locale/de_DE/Mollie_Mpm.csv @@ -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.
If you are not redirected shortly, click here.","Bitte warten Sie.
Wenn Sie nicht in Kürze weitergeleitet werden, dann klicken Sie hier." diff --git a/app/locale/en_US/Mollie_Mpm.csv b/app/locale/en_US/Mollie_Mpm.csv index 6168ebb9..559553e3 100644 --- a/app/locale/en_US/Mollie_Mpm.csv +++ b/app/locale/en_US/Mollie_Mpm.csv @@ -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.
If you are not redirected shortly, click here.","Please Wait.
If you are not redirected shortly, click here." diff --git a/app/locale/es_ES/Mollie_Mpm.csv b/app/locale/es_ES/Mollie_Mpm.csv index 29f9ec4e..65e0a2f8 100644 --- a/app/locale/es_ES/Mollie_Mpm.csv +++ b/app/locale/es_ES/Mollie_Mpm.csv @@ -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.
If you are not redirected shortly, click here.","Por favor, espere.
Si no se le redirige en breve, haga clic aquí." diff --git a/app/locale/fr_FR/Mollie_Mpm.csv b/app/locale/fr_FR/Mollie_Mpm.csv index a7a061f5..91ddabf0 100644 --- a/app/locale/fr_FR/Mollie_Mpm.csv +++ b/app/locale/fr_FR/Mollie_Mpm.csv @@ -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" diff --git a/app/locale/nl_NL/Mollie_Mpm.csv b/app/locale/nl_NL/Mollie_Mpm.csv index 12d6f4b9..10b20271 100644 --- a/app/locale/nl_NL/Mollie_Mpm.csv +++ b/app/locale/nl_NL/Mollie_Mpm.csv @@ -68,7 +68,6 @@ "Bank transfer","Overboeking" "PayPal","PayPal" "paysafecard","paysafecard" -"Bitcoin","Bitcoin" "KBC/CBC Payment Button","KBC/CBC-Betaalknop" "Please Wait.
If you are not redirected shortly, click here.","Moment geduld.
Indien u niet wordt doorgestuurd, klik hier." "Redirecting to Mollie","Doorverwijzen naar Mollie"