Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Single custom table `netseasy_payment` (setup in `sql/maho_netseasy_setup/instal
- Private helper accessors pattern: `private function getHelper()`, `private function getApiPayment()`
- Logging goes to `netseasy.log` file
- Translations via `app/locale/en_US/Maho_NetsEasy.csv`
- License header: OSL-3.0, copyright Maho (https://mahocommerce.com)
- License header: SPDX format. PHP/phtml/JS/XML carry `SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>` and `SPDX-License-Identifier: OSL-3.0`. PHP/phtml keep the SPDX block inside the top `/** */` docblock with `@package Maho_NetsEasy`; XML uses a plain `<!-- -->` comment (no `@package`); JS uses `//` line comments.
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Block/Checkout.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Block_Checkout extends Mage_Core_Block_Template
{
#[\Override]
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Block/Form.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Block_Form extends Mage_Payment_Block_Form
{
#[\Override]
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Block/Info.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Block_Info extends Mage_Payment_Block_Info
{
#[\Override]
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Block/Redirect.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Block_Redirect extends Mage_Core_Block_Template
{
#[\Override]
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Helper/Data.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Helper_Data extends Mage_Core_Helper_Abstract
{
protected $_moduleName = 'Maho_NetsEasy';
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Api/Client.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

use Symfony\Component\HttpClient\HttpClient;
use Symfony\Contracts\HttpClient\HttpClientInterface;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

abstract class Maho_NetsEasy_Model_Api_Dto_AbstractRequest
{
abstract public function toArray(): array;
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Api/Dto/ChargeRequest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_ChargeRequest extends Maho_NetsEasy_Model_Api_Dto_AbstractRequest
{
/** @var Maho_NetsEasy_Model_Api_Dto_OrderItem[] */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_ChargeResponse
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_CreatePaymentRequest extends Maho_NetsEasy_Model_Api_Dto_AbstractRequest
{
/** @var Maho_NetsEasy_Model_Api_Dto_OrderItem[] */
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Api/Dto/OrderItem.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_OrderItem
{
public function __construct(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_PaymentResponse
{
public function __construct(
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Api/Dto/RefundRequest.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_RefundRequest extends Maho_NetsEasy_Model_Api_Dto_AbstractRequest
{
/** @var Maho_NetsEasy_Model_Api_Dto_OrderItem[] */
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Dto_RefundResponse
{
public function __construct(
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Api/Payment.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Api_Payment
{
private function getClient(): Maho_NetsEasy_Model_Api_Client
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Locale.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

/**
* Locale, currency validation, and country code mapping for Nets Easy API
*/
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Observer.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Observer
{
/**
Expand Down
12 changes: 5 additions & 7 deletions app/code/community/Maho/NetsEasy/Model/Payment.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<?php

declare(strict_types=1);

/**
* Maho
*
* @package Maho_NetsEasy
* @copyright Copyright (c) 2026 Maho (https://mahocommerce.com)
* @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* SPDX-FileCopyrightText: 2026 Maho <https://mahocommerce.com>
* SPDX-License-Identifier: OSL-3.0
* @package Maho_NetsEasy
*/

declare(strict_types=1);

class Maho_NetsEasy_Model_Payment extends Mage_Payment_Model_Method_Abstract
{
protected $_code = 'netseasy';
Expand Down
Loading