Skip to content

Commit

Permalink
Added copyright on all php files
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Pieters committed Dec 15, 2015
1 parent 04075d4 commit 91cc643
Show file tree
Hide file tree
Showing 63 changed files with 181 additions and 522 deletions.
3 changes: 1 addition & 2 deletions Block/Adminhtml/System/Config/Fieldset/Expanded.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
* Copyright © 2015 Pay.nl All rights reserved.
*/
namespace Paynl\Payment\Block\Adminhtml\System\Config\Fieldset;

Expand Down
4 changes: 2 additions & 2 deletions Controller/Checkout/Redirect.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2015 Pay.nl
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Controller\Checkout;
Expand Down
4 changes: 2 additions & 2 deletions Controller/Exchange/Index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2015 Pay.nl
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Controller\Exchange;
Expand Down
6 changes: 2 additions & 4 deletions Controller/Finish/Index.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2015 Pay.nl
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Controller\Finish;
Expand Down Expand Up @@ -77,8 +77,6 @@ public function execute()

if ($transaction->isPaid() || $transaction->isPending()) {
$resultRedirect = $this->resultRedirectFactory->create();


return $resultRedirect->setPath('checkout/onepage/success');
} else {
//canceled, reorder
Expand Down
4 changes: 2 additions & 2 deletions Model/Config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Copyright (C) 2015 Pay.nl
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model;
Expand Down
3 changes: 3 additions & 0 deletions Model/Config/Source/Available/Afterpay.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

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

Expand Down
19 changes: 15 additions & 4 deletions Model/Config/Source/Available/Available.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

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

Expand Down Expand Up @@ -51,10 +54,18 @@ public function toOptionArray()
*/
public function toArray()
{
if ($this->_isAvailable()) {
return [0 => __('No'), 1 => __('Yes')];
} else {
return [0 => __('Not available (please edit the serviceID ('.$this->_config->getServiceId().') on admin.pay.nl')];
$configured = $this->_config->configureSDK();
if (!$configured) {
return [0 => __('Enter your API-token and ServiceId first')];
}
try {
if ($this->_isAvailable()) {
return [0 => __('No'), 1 => __('Yes')];
} else {
return [0 => __('Not available, you can enable this on admin.pay.nl')];
}
} catch(\Exception $e){
return [0 => 'Error: '.$e->getMessage()];
}

}
Expand Down
3 changes: 3 additions & 0 deletions Model/Config/Source/Available/Billink.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

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

Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Cartebleue.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Clickandbuy.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Fashioncheque.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Fashiongiftcard.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Gezondheidsbon.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Giropay.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Givacard.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Ideal.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Maestro.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Mistercash.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Mybank.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Overboeking.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Paypal.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Paysafecard.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Podiumcadeaukaart.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Postepay.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Sofortbanking.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Telefonischbetalen.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Visamastercard.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Webshopgiftcard.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Wijncadeau.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
5 changes: 1 addition & 4 deletions Model/Config/Source/Available/Yourgift.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
<?php
/**
* Created by PhpStorm.
* User: andy
* Date: 11-12-2015
* Time: 11:30
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Available;
Expand Down
17 changes: 2 additions & 15 deletions Model/Config/Source/Order/Status/PendingPayment.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
<?php
/*
* Copyright (C) 2015 Andy Pieters <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Config\Source\Order\Status;
Expand Down
4 changes: 2 additions & 2 deletions Model/ConfigProvider.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model;

use Magento\Checkout\Model\ConfigProviderInterface;
Expand Down
17 changes: 2 additions & 15 deletions Model/Paymentmethod/Afterpay.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
<?php
/*
* Copyright (C) 2015 Andy Pieters <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
/**
* Copyright © 2015 Pay.nl All rights reserved.
*/

namespace Paynl\Payment\Model\Paymentmethod;
Expand Down
Loading

0 comments on commit 91cc643

Please sign in to comment.