From 8cd8fd6dc9bf015d3299e81b9abd89dae8959237 Mon Sep 17 00:00:00 2001 From: Anne Date: Mon, 29 Nov 2021 15:18:59 +0100 Subject: [PATCH 1/2] toevoegen biercheque --- Model/Config.php | 1 + Model/Config/Source/Available/Biercheque.php | 8 + Model/ConfigProvider.php | 1 + Model/Paymentmethod/Biercheque.php | 13 ++ etc/adminhtml/paymentmethods.xml | 1 + etc/adminhtml/paymentmethods/biercheque.xml | 152 ++++++++++++++++++ etc/config.xml | 12 ++ etc/payment.xml | 3 + view/frontend/layout/checkout_index_index.xml | 3 + .../web/js/view/payment/method-renderer.js | 1 + 10 files changed, 195 insertions(+) create mode 100644 Model/Config/Source/Available/Biercheque.php create mode 100644 Model/Paymentmethod/Biercheque.php create mode 100644 etc/adminhtml/paymentmethods/biercheque.xml diff --git a/Model/Config.php b/Model/Config.php index 027a0d9d..1de31fd9 100644 --- a/Model/Config.php +++ b/Model/Config.php @@ -30,6 +30,7 @@ class Config "paynl_payment_amazonpay" => "22", "paynl_payment_amex" => "9", "paynl_payment_applepay" => "114", + "paynl_payment_biercheque" => "204", "paynl_payment_billink" => "16", "paynl_payment_capayable" => "18", "paynl_payment_capayable_gespreid" => "19", diff --git a/Model/Config/Source/Available/Biercheque.php b/Model/Config/Source/Available/Biercheque.php new file mode 100644 index 00000000..3d861c95 --- /dev/null +++ b/Model/Config/Source/Available/Biercheque.php @@ -0,0 +1,8 @@ + + diff --git a/etc/adminhtml/paymentmethods/biercheque.xml b/etc/adminhtml/paymentmethods/biercheque.xml new file mode 100644 index 00000000..9281e7d4 --- /dev/null +++ b/etc/adminhtml/paymentmethods/biercheque.xml @@ -0,0 +1,152 @@ + + + + + + + Paynl\Payment\Model\Config\Source\Available\Biercheque + payment/paynl_payment_biercheque/active + + + + payment/paynl_payment_biercheque/title + + 1 + + + + + Paynl\Payment\Model\Config\Source\Order\Status\PendingPayment + + 1 + + payment/paynl_payment_biercheque/order_status + + + + Paynl\Payment\Model\Config\Source\Order\Status\Processing + + 1 + + payment/paynl_payment_biercheque/order_status_authorized + + + + Paynl\Payment\Model\Config\Source\Order\Status\Processing + + 1 + + payment/paynl_payment_biercheque/order_status_processing + + + + Magento\Config\Model\Config\Source\Yesno + payment/paynl_payment_biercheque/holded + + 1 + + + + + + Magento\Payment\Model\Config\Source\Allspecificcountries + payment/paynl_payment_biercheque/allowspecific + + 1 + + + + + Magento\Directory\Model\Config\Source\Country + 1 + payment/paynl_payment_biercheque/specificcountry + + 1 + 1 + + + + + + 1 + + payment/paynl_payment_biercheque/instructions + + + + payment/paynl_payment_biercheque/min_order_total + + 1 + + + + + payment/paynl_payment_biercheque/max_order_total + + 1 + + + + + validate-number + payment/paynl_payment_biercheque/sort_order + + 1 + + + + + Paynl\Payment\Model\Config\Source\SendNewOrderEmail + payment/paynl_payment_biercheque/send_new_order_email + + 1 + + + + + Magento\Shipping\Model\Config\Source\Allmethods + 1 + + 1 + + payment/paynl_payment_biercheque/disallowedshipping + + + + + Paynl\Payment\Model\Config\Source\ShowCompanyOptions + + 1 + + payment/paynl_payment_biercheque/showforcompany + + + + + + + The id of the payment method, only change this if you are told to do so + payment/paynl_payment_biercheque/payment_option_id + + + + + diff --git a/etc/config.xml b/etc/config.xml index 029088fc..b951cf57 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -104,6 +104,18 @@ In order to pay for your order click the link below paynl_payment after_payment + + 0 + Biercheque + 2622 + pending_payment + processing + processing + order + Paynl\Payment\Model\Paymentmethod\Biercheque + paynl_payment + after_payment + 0 Achteraf betalen via Billink diff --git a/etc/payment.xml b/etc/payment.xml index 8e95b1d7..ec27e59b 100644 --- a/etc/payment.xml +++ b/etc/payment.xml @@ -27,6 +27,9 @@ 0 + + 0 + 0 diff --git a/view/frontend/layout/checkout_index_index.xml b/view/frontend/layout/checkout_index_index.xml index 2096ea1d..56a6b99f 100644 --- a/view/frontend/layout/checkout_index_index.xml +++ b/view/frontend/layout/checkout_index_index.xml @@ -39,6 +39,9 @@ true + + true + true diff --git a/view/frontend/web/js/view/payment/method-renderer.js b/view/frontend/web/js/view/payment/method-renderer.js index 8fd759df..1b445d23 100644 --- a/view/frontend/web/js/view/payment/method-renderer.js +++ b/view/frontend/web/js/view/payment/method-renderer.js @@ -17,6 +17,7 @@ define( {type: 'paynl_payment_alipay', component: defaultComponent}, {type: 'paynl_payment_amazonpay', component: defaultComponent}, {type: 'paynl_payment_amex', component: defaultComponent}, + {type: 'paynl_payment_biercheque', component: defaultComponent}, {type: 'paynl_payment_billink', component: defaultComponent}, {type: 'paynl_payment_capayable', component: defaultComponent}, {type: 'paynl_payment_capayable_gespreid', component: defaultComponent}, From 3d2d1a24cbff7b008f0fc9dcc0d541a9fe4808b9 Mon Sep 17 00:00:00 2001 From: Anne Date: Fri, 3 Dec 2021 12:03:48 +0100 Subject: [PATCH 2/2] sort order --- etc/adminhtml/paymentmethods/biercheque.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/adminhtml/paymentmethods/biercheque.xml b/etc/adminhtml/paymentmethods/biercheque.xml index 9281e7d4..c3460779 100644 --- a/etc/adminhtml/paymentmethods/biercheque.xml +++ b/etc/adminhtml/paymentmethods/biercheque.xml @@ -1,7 +1,7 @@ - +