diff --git a/Model/Config/Source/Available/Good4fun.php b/Model/Config/Source/Available/Good4fun.php new file mode 100644 index 00000000..26d79455 --- /dev/null +++ b/Model/Config/Source/Available/Good4fun.php @@ -0,0 +1,12 @@ + + diff --git a/etc/adminhtml/paymentmethods/good4fun.xml b/etc/adminhtml/paymentmethods/good4fun.xml new file mode 100644 index 00000000..66718097 --- /dev/null +++ b/etc/adminhtml/paymentmethods/good4fun.xml @@ -0,0 +1,152 @@ + + + + + + + Paynl\Payment\Model\Config\Source\Available\Good4fun + payment/paynl_payment_good4fun/active + + + + payment/paynl_payment_good4fun/title + + 1 + + + + + Paynl\Payment\Model\Config\Source\Order\Status\PendingPayment + + 1 + + payment/paynl_payment_good4fun/order_status + + + + Paynl\Payment\Model\Config\Source\Order\Status\Processing + + 1 + + payment/paynl_payment_good4fun/order_status_authorized + + + + Paynl\Payment\Model\Config\Source\Order\Status\Processing + + 1 + + payment/paynl_payment_good4fun/order_status_processing + + + + Magento\Config\Model\Config\Source\Yesno + payment/paynl_payment_good4fun/holded + + 1 + + + + + + Magento\Payment\Model\Config\Source\Allspecificcountries + payment/paynl_payment_good4fun/allowspecific + + 1 + + + + + Magento\Directory\Model\Config\Source\Country + 1 + payment/paynl_payment_good4fun/specificcountry + + 1 + 1 + + + + + + 1 + + payment/paynl_payment_good4fun/instructions + + + + payment/paynl_payment_good4fun/min_order_total + + 1 + + + + + payment/paynl_payment_good4fun/max_order_total + + 1 + + + + + validate-number + payment/paynl_payment_good4fun/sort_order + + 1 + + + + + Paynl\Payment\Model\Config\Source\SendNewOrderEmail + payment/paynl_payment_good4fun/send_new_order_email + + 1 + + + + + Magento\Shipping\Model\Config\Source\Allmethods + 1 + + 1 + + payment/paynl_payment_good4fun/disallowedshipping + + + + + Paynl\Payment\Model\Config\Source\showCompanyOptions + + 1 + + payment/paynl_payment_good4fun/showforcompany + + + + + + + The id of the payment method, only change this if you are told to do so + payment/paynl_payment_good4fun/payment_option_id + + + + + diff --git a/etc/config.xml b/etc/config.xml index 6a9be53a..9abd31e1 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -288,6 +288,18 @@ In order to pay for your order click the link below paynl_payment after_payment + + 0 + Good4Fun + 2628 + pending_payment + processing + processing + order + Paynl\Payment\Model\Paymentmethod\Good4fun + paynl_payment + after_payment + 0 Huis en Tuin Cadeau diff --git a/etc/payment.xml b/etc/payment.xml index 18491fc8..c4529dd3 100644 --- a/etc/payment.xml +++ b/etc/payment.xml @@ -63,6 +63,9 @@ 0 + + 0 + 0 diff --git a/view/frontend/layout/checkout_index_index.xml b/view/frontend/layout/checkout_index_index.xml index 511f9174..6b37ceae 100644 --- a/view/frontend/layout/checkout_index_index.xml +++ b/view/frontend/layout/checkout_index_index.xml @@ -83,6 +83,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 5625764e..1d3b547b 100644 --- a/view/frontend/web/js/view/payment/method-renderer.js +++ b/view/frontend/web/js/view/payment/method-renderer.js @@ -32,6 +32,7 @@ define( {type: 'paynl_payment_gezondheidsbon', component: defaultComponent}, {type: 'paynl_payment_giropay', component: defaultComponent}, {type: 'paynl_payment_givacard', component: defaultComponent}, + {type: 'paynl_payment_good4fun', component: defaultComponent}, {type: 'paynl_payment_huisentuincadeau', component: defaultComponent}, {type: 'paynl_payment_ideal', component: defaultComponent}, {type: 'paynl_payment_instore', component: defaultComponent},