Skip to content

Commit

Permalink
Added paymentmethods Focum, Klarna and Yehhpay
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Jun 8, 2017
1 parent c70f4e5 commit a1f0bc2
Show file tree
Hide file tree
Showing 15 changed files with 379 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Model/Config/Source/Available/Fashiongiftcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

class Fashiongiftcard extends Available
{
protected $_code = 'paynl_payment_Fashiongiftcard';
protected $_code = 'paynl_payment_fashiongiftcard';
}
12 changes: 12 additions & 0 deletions Model/Config/Source/Available/Focum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;


class Focum extends Available
{
protected $_code = 'paynl_payment_focum';
}
12 changes: 12 additions & 0 deletions Model/Config/Source/Available/Klarna.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;


class Klarna extends Available
{
protected $_code = 'paynl_payment_klarna';
}
12 changes: 12 additions & 0 deletions Model/Config/Source/Available/Yehhpay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;


class Yehhpay extends Available
{
protected $_code = 'paynl_payment_yehhpay';
}
3 changes: 3 additions & 0 deletions Model/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ class ConfigProvider implements ConfigProviderInterface
'paynl_payment_clickandbuy',
'paynl_payment_fashioncheque',
'paynl_payment_fashiongiftcard',
'paynl_payment_focum',
'paynl_payment_gezondheidsbon',
'paynl_payment_giropay',
'paynl_payment_givacard',
'paynl_payment_ideal',
'paynl_payment_instore',
'paynl_payment_klarna',
'paynl_payment_maestro',
'paynl_payment_mistercash',
'paynl_payment_mybank',
Expand All @@ -44,6 +46,7 @@ class ConfigProvider implements ConfigProviderInterface
'paynl_payment_vvvgiftcard',
'paynl_payment_webshopgiftcard',
'paynl_payment_wijncadeau',
'paynl_payment_yehhpay',
'paynl_payment_yourgift'
];

Expand Down
8 changes: 8 additions & 0 deletions Model/Paymentmethod/Focum.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
namespace Paynl\Payment\Model\Paymentmethod;

class Focum extends PaymentMethod
{
protected $_code = 'paynl_payment_focum';

}
7 changes: 7 additions & 0 deletions Model/Paymentmethod/Klarna.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
namespace Paynl\Payment\Model\Paymentmethod;

class Klarna extends PaymentMethod
{
protected $_code = 'paynl_payment_klarna';
}
7 changes: 7 additions & 0 deletions Model/Paymentmethod/Yehhpay.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
namespace Paynl\Payment\Model\Paymentmethod;

class Yehhpay extends PaymentMethod
{
protected $_code = 'paynl_payment_yehhpay';
}
3 changes: 3 additions & 0 deletions etc/adminhtml/paymentmethods.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
<include path="Paynl_Payment::paymentmethods/clickandbuy.xml" />
<include path="Paynl_Payment::paymentmethods/fashioncheque.xml" />
<include path="Paynl_Payment::paymentmethods/fashiongiftcard.xml" />
<include path="Paynl_Payment::paymentmethods/focum.xml" />
<include path="Paynl_Payment::paymentmethods/gezondheidsbon.xml" />
<include path="Paynl_Payment::paymentmethods/giropay.xml" />
<include path="Paynl_Payment::paymentmethods/givacard.xml" />
<include path="Paynl_Payment::paymentmethods/ideal.xml" />
<include path="Paynl_Payment::paymentmethods/instore.xml" />
<include path="Paynl_Payment::paymentmethods/klarna.xml" />
<include path="Paynl_Payment::paymentmethods/maestro.xml" />
<include path="Paynl_Payment::paymentmethods/mistercash.xml" />
<include path="Paynl_Payment::paymentmethods/mybank.xml" />
Expand All @@ -33,5 +35,6 @@
<include path="Paynl_Payment::paymentmethods/vvvgiftcard.xml" />
<include path="Paynl_Payment::paymentmethods/webshopgiftcard.xml" />
<include path="Paynl_Payment::paymentmethods/wijncadeau.xml" />
<include path="Paynl_Payment::paymentmethods/yehhpay.xml" />
<include path="Paynl_Payment::paymentmethods/yourgift.xml" />
</include>
90 changes: 90 additions & 0 deletions etc/adminhtml/paymentmethods/focum.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="paynl_payment_focum" sortOrder="650" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Focum - Achteraf Betalen</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Enabled</label>
<source_model>Paynl\Payment\Model\Config\Source\Available\Focum</source_model>
<config_path>payment/paynl_payment_focum/active</config_path>
</field>
<field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Title</label>
<config_path>payment/paynl_payment_focum/title</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="order_status" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>New Order Status</label>
<source_model>Paynl\Payment\Model\Config\Source\Order\Status\PendingPayment</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_focum/order_status</config_path>
</field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Applicable Countries</label>
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
<config_path>payment/paynl_payment_focum/allowspecific</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Specific Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty>
<config_path>payment/paynl_payment_focum/specificcountry</config_path>
<depends>
<field id="allowspecific">1</field>
<field id="active">1</field>
</depends>
</field>
<field id="instructions" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Instructions</label>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_focum/instructions</config_path>
</field>
<field id="min_order_total" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Minimum Order Total</label>
<config_path>payment/paynl_payment_focum/min_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="max_order_total" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Maximum Order Total</label>
<config_path>payment/paynl_payment_focum/max_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

<field id="sort_order" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/paynl_payment_focum/sort_order</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

</group>
</include>

90 changes: 90 additions & 0 deletions etc/adminhtml/paymentmethods/klarna.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="paynl_payment_klarna" sortOrder="1075" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Klarna</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Enabled</label>
<source_model>Paynl\Payment\Model\Config\Source\Available\Klarna</source_model>
<config_path>payment/paynl_payment_klarna/active</config_path>
</field>
<field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Title</label>
<config_path>payment/paynl_payment_klarna/title</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="order_status" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>New Order Status</label>
<source_model>Paynl\Payment\Model\Config\Source\Order\Status\PendingPayment</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_klarna/order_status</config_path>
</field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Applicable Countries</label>
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
<config_path>payment/paynl_payment_klarna/allowspecific</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Specific Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty>
<config_path>payment/paynl_payment_klarna/specificcountry</config_path>
<depends>
<field id="allowspecific">1</field>
<field id="active">1</field>
</depends>
</field>
<field id="instructions" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Instructions</label>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_klarna/instructions</config_path>
</field>
<field id="min_order_total" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Minimum Order Total</label>
<config_path>payment/paynl_payment_klarna/min_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="max_order_total" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Maximum Order Total</label>
<config_path>payment/paynl_payment_klarna/max_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

<field id="sort_order" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/paynl_payment_klarna/sort_order</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

</group>
</include>

90 changes: 90 additions & 0 deletions etc/adminhtml/paymentmethods/yehhpay.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<group id="paynl_payment_yehhpay" sortOrder="2350" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Yehhpay - Achteraf betalen</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Enabled</label>
<source_model>Paynl\Payment\Model\Config\Source\Available\Yehhpay</source_model>
<config_path>payment/paynl_payment_yehhpay/active</config_path>
</field>
<field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Title</label>
<config_path>payment/paynl_payment_yehhpay/title</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="order_status" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>New Order Status</label>
<source_model>Paynl\Payment\Model\Config\Source\Order\Status\PendingPayment</source_model>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_yehhpay/order_status</config_path>
</field>
<field id="allowspecific" translate="label" type="allowspecific" sortOrder="40" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Applicable Countries</label>
<source_model>Magento\Payment\Model\Config\Source\Allspecificcountries</source_model>
<config_path>payment/paynl_payment_yehhpay/allowspecific</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="specificcountry" translate="label" type="multiselect" sortOrder="50" showInDefault="1"
showInWebsite="1" showInStore="1">
<label>Payment from Specific Countries</label>
<source_model>Magento\Directory\Model\Config\Source\Country</source_model>
<can_be_empty>1</can_be_empty>
<config_path>payment/paynl_payment_yehhpay/specificcountry</config_path>
<depends>
<field id="allowspecific">1</field>
<field id="active">1</field>
</depends>
</field>
<field id="instructions" translate="label" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Instructions</label>
<depends>
<field id="active">1</field>
</depends>
<config_path>payment/paynl_payment_yehhpay/instructions</config_path>
</field>
<field id="min_order_total" translate="label" type="text" sortOrder="70" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Minimum Order Total</label>
<config_path>payment/paynl_payment_yehhpay/min_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>
<field id="max_order_total" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Maximum Order Total</label>
<config_path>payment/paynl_payment_yehhpay/max_order_total</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

<field id="sort_order" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1"
showInStore="1">
<label>Sort Order</label>
<frontend_class>validate-number</frontend_class>
<config_path>payment/paynl_payment_yehhpay/sort_order</config_path>
<depends>
<field id="active">1</field>
</depends>
</field>

</group>
</include>

Loading

0 comments on commit a1f0bc2

Please sign in to comment.