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..c3460779 --- /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},