diff --git a/Model/Config/Source/Available/Creditclick.php b/Model/Config/Source/Available/Creditclick.php new file mode 100644 index 00000000..40561422 --- /dev/null +++ b/Model/Config/Source/Available/Creditclick.php @@ -0,0 +1,12 @@ + + */ +class Creditclick extends PaymentMethod +{ + protected $_code = 'paynl_payment_creditclick'; + + protected function getDefaultPaymentOptionId() + { + return 2107; + } +} diff --git a/Model/Paymentmethod/Przelewy24.php b/Model/Paymentmethod/Przelewy24.php new file mode 100644 index 00000000..f7b0189c --- /dev/null +++ b/Model/Paymentmethod/Przelewy24.php @@ -0,0 +1,21 @@ + + */ +class Przelewy24 extends PaymentMethod +{ + protected $_code = 'paynl_payment_przelewy24'; + + protected function getDefaultPaymentOptionId() + { + return 2151; + } +} diff --git a/Model/Paymentmethod/Tikkie.php b/Model/Paymentmethod/Tikkie.php new file mode 100644 index 00000000..0325fbe7 --- /dev/null +++ b/Model/Paymentmethod/Tikkie.php @@ -0,0 +1,21 @@ + + */ +class Tikkie extends PaymentMethod +{ + protected $_code = 'paynl_payment_tikkie'; + + protected function getDefaultPaymentOptionId() + { + return 2104; + } +} diff --git a/README.md b/README.md index 62cd1f35..fdb34435 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,8 @@ Giropay |American Express | FashionCheque |Focum AchterafBetalen.nl | AmazonPay MyBank | Carte Bancaire | Podium Cadeaukaart | Capayable Achteraf Betalen | Cashly | SOFORT | PostePay | Gezondheidsbon | Capayable Gespreid betalen | Pay Fixed Price (phone) | Maestro | Dankort | Fashion Giftcard | Klarna | Instore Payments (POS) | -Bank Transfer | Cartasi | GivaCard | SprayPay | | -| | | YourGift | | | +Bank Transfer | Cartasi | GivaCard | SprayPay | Przelewy24 | +| Tikkie | | YourGift | Creditclick | | | | | Paysafecard | diff --git a/etc/adminhtml/paymentmethods.xml b/etc/adminhtml/paymentmethods.xml index 6f0a8db6..77e61f61 100644 --- a/etc/adminhtml/paymentmethods.xml +++ b/etc/adminhtml/paymentmethods.xml @@ -16,6 +16,7 @@ + @@ -35,9 +36,11 @@ + + @@ -45,4 +48,4 @@ - \ No newline at end of file + diff --git a/etc/adminhtml/paymentmethods/creditclick.xml b/etc/adminhtml/paymentmethods/creditclick.xml new file mode 100644 index 00000000..93d5179e --- /dev/null +++ b/etc/adminhtml/paymentmethods/creditclick.xml @@ -0,0 +1,31 @@ + + + + + + + Paynl\Payment\Model\Config\Source\Available\Creditclick + payment/paynl_payment_creditclick/active + + + + payment/paynl_payment_creditclick/title + + 1 + + + + + + + The id of the payment method, only change this if you are told to do so + payment/paynl_payment_creditclick/payment_option_id + + + + diff --git a/etc/adminhtml/paymentmethods/przelewy24.xml b/etc/adminhtml/paymentmethods/przelewy24.xml new file mode 100644 index 00000000..bf89f1b4 --- /dev/null +++ b/etc/adminhtml/paymentmethods/przelewy24.xml @@ -0,0 +1,31 @@ + + + + + + + Paynl\Payment\Model\Config\Source\Available\Przelewy24 + payment/paynl_payment_przelewy24/active + + + + payment/paynl_payment_przelewy24/title + + 1 + + + + + + + The id of the payment method, only change this if you are told to do so + payment/paynl_payment_przelewy24/payment_option_id + + + + diff --git a/etc/adminhtml/paymentmethods/tikkie.xml b/etc/adminhtml/paymentmethods/tikkie.xml new file mode 100644 index 00000000..8607d744 --- /dev/null +++ b/etc/adminhtml/paymentmethods/tikkie.xml @@ -0,0 +1,31 @@ + + + + + + + Paynl\Payment\Model\Config\Source\Available\Tikkie + payment/paynl_payment_tikkie/active + + + + payment/paynl_payment_tikkie/title + + 1 + + + + + + + The id of the payment method, only change this if you are told to do so + payment/paynl_payment_tikkie/payment_option_id + + + + diff --git a/etc/config.xml b/etc/config.xml index 6ae1018d..4806d8db 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -145,6 +145,18 @@ paynl_payment after_payment + + 0 + Creditclick + 2107 + pending_payment + processing + processing + order + Paynl\Payment\Model\Paymentmethod\Creditclick + paynl_payment + after_payment + 0 Dankort @@ -375,6 +387,18 @@ paynl_payment after_payment + + 0 + Przelewy24 + 2151 + pending_payment + processing + processing + order + Paynl\Payment\Model\Paymentmethod\Przelewy24 + paynl_payment + after_payment + 0 Sofortbanking @@ -412,6 +436,18 @@ paynl_payment after_payment + + 0 + Tikkie + 2104 + pending_payment + processing + processing + order + Paynl\Payment\Model\Paymentmethod\Tikkie + paynl_payment + after_payment + 0 Visa / Mastercard diff --git a/etc/payment.xml b/etc/payment.xml index 7a706571..ef742a76 100644 --- a/etc/payment.xml +++ b/etc/payment.xml @@ -39,6 +39,9 @@ 0 + + 0 + 0 @@ -90,6 +93,9 @@ 0 + + 0 + 0 @@ -99,6 +105,9 @@ 0 + + 0 + 0 diff --git a/view/frontend/layout/checkout_index_index.xml b/view/frontend/layout/checkout_index_index.xml index 62f9987a..34e6dbd1 100644 --- a/view/frontend/layout/checkout_index_index.xml +++ b/view/frontend/layout/checkout_index_index.xml @@ -50,6 +50,9 @@ true + + true + true @@ -107,6 +110,9 @@ true + + true + true @@ -116,6 +122,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 62bd4819..81de048c 100644 --- a/view/frontend/web/js/view/payment/method-renderer.js +++ b/view/frontend/web/js/view/payment/method-renderer.js @@ -23,6 +23,7 @@ define( {type: 'paynl_payment_cartebleue', component: defaultComponent}, {type: 'paynl_payment_cashly', component: defaultComponent}, {type: 'paynl_payment_clickandbuy', component: defaultComponent}, + {type: 'paynl_payment_creditclick', component: defaultComponent}, {type: 'paynl_payment_dankort', component: defaultComponent}, {type: 'paynl_payment_eps', component: defaultComponent}, {type: 'paynl_payment_fashioncheque', component: defaultComponent}, @@ -42,9 +43,11 @@ define( {type: 'paynl_payment_paysafecard', component: defaultComponent}, {type: 'paynl_payment_podiumcadeaukaart', component: defaultComponent}, {type: 'paynl_payment_postepay', component: defaultComponent}, + {type: 'paynl_payment_przelewy24', component: defaultComponent}, {type: 'paynl_payment_sofortbanking', component: defaultComponent}, {type: 'paynl_payment_spraypay', component: defaultComponent}, {type: 'paynl_payment_telefonischbetalen', component: defaultComponent}, + {type: 'paynl_payment_tikkie', component: defaultComponent}, {type: 'paynl_payment_visamastercard', component: defaultComponent}, {type: 'paynl_payment_vvvgiftcard', component: defaultComponent}, {type: 'paynl_payment_webshopgiftcard', component: defaultComponent},