Skip to content

Commit

Permalink
Merge pull request #50 from Nets-eCom/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Kaczorex committed Mar 27, 2023
2 parents 30d549d + 0a008b7 commit 66c3e5f
Show file tree
Hide file tree
Showing 89 changed files with 239 additions and 231 deletions.
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# NetsPaymentCore - Payment Core for simple integration Netaxept API for plugins
# NexiNetsPaymentCore - Payment Core for simple integration with Netaxept API for plugins
============================================

| Core | NetsCore - Payment Core |
|-------------------|-------------------------|
| Author | `Nets eCom` |
| Version | `1.1.1` |
| License | `MIT License` |
| Supporting System | `Netaxept` |
| Core | NexiNetsCore - Payment Core
|-------------------|-------------------------
| Author | `Nexi/Nets eCom LAKA`
| Version | `1.2`
| License | `MIT License`


### What it is
NexiNetsPaymentCore is an SDK for payment plug-ins. It can be updated separately from the payment plugins themselves.

### Updating the SDK

* If the latest SDK package has been released and you don't have it in your plugin, then all you need to do is the following:
* composer update nexi-nets-ecom-integrations/paymentcore
* if the SDK was manually installed via composer use the below command:
* composer reinstall nexi-nets-ecom-integrations/paymentcore
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"name": "nets-ecom-integrations/paymentcore",
"name": "nexi-nets-ecom-integrations/paymentcore",
"description": "Core for Netaxept payments plugin",
"type": "library",
"license": "MIT",
"version": "1.1.1",

"version": "1.2",
"autoload": {
"psr-4": {
"NetsCore\\": "src/"
"NexiNetsCore\\": "src/"
}
},
"authors": [
{
"name": "Nets-eCom"
"name": "Nexi/Nets-eCom"
}
],
"require": {
Expand Down
10 changes: 5 additions & 5 deletions src/Auth/NetaxeptAPIAuthService.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace NetsCore\Auth;
namespace NexiNetsCore\Auth;

use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Interfaces\APIAuthServiceInterface;
use NetsCore\Interfaces\ConfigurationInterface;
use NetsCore\Services\ApiService;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Interfaces\APIAuthServiceInterface;
use NexiNetsCore\Interfaces\ConfigurationInterface;
use NexiNetsCore\Services\ApiService;

class NetaxeptAPIAuthService implements APIAuthServiceInterface
{
Expand Down
10 changes: 5 additions & 5 deletions src/Auth/NetaxeptSandboxAPIAuthService.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace NetsCore\Auth;
namespace NexiNetsCore\Auth;

use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Interfaces\APIAuthServiceInterface;
use NetsCore\Interfaces\ConfigurationInterface;
use NetsCore\Services\ApiService;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Interfaces\APIAuthServiceInterface;
use NexiNetsCore\Interfaces\ConfigurationInterface;
use NexiNetsCore\Services\ApiService;

class NetaxeptSandboxAPIAuthService implements APIAuthServiceInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Clients/BaseAPIClient.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace NetsCore\Clients;
namespace NexiNetsCore\Clients;

use NetsCore\Interfaces\APIClientInterface;
use NetsCore\Interfaces\PaymentObjectInterface;
use NexiNetsCore\Interfaces\APIClientInterface;
use NexiNetsCore\Interfaces\PaymentObjectInterface;

class BaseAPIClient implements APIClientInterface
{
Expand Down
14 changes: 7 additions & 7 deletions src/Clients/NetaxeptAPIClient.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace NetsCore\Clients;
namespace NexiNetsCore\Clients;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\Request;
use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Exceptions\ApiResponseException;
use NetsCore\Interfaces\APIClientInterface;
use NetsCore\Interfaces\PaymentRequestInterface;
use NetsCore\Interfaces\PaymentObjectInterface;
use NetsCore\Services\LogsService;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Exceptions\ApiResponseException;
use NexiNetsCore\Interfaces\APIClientInterface;
use NexiNetsCore\Interfaces\PaymentRequestInterface;
use NexiNetsCore\Interfaces\PaymentObjectInterface;
use NexiNetsCore\Services\LogsService;

class NetaxeptAPIClient implements APIClientInterface
{
Expand Down
14 changes: 7 additions & 7 deletions src/Clients/NetaxeptSandboxAPIClient.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

namespace NetsCore\Clients;
namespace NexiNetsCore\Clients;

use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\Request;
use LogicException;
use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Exceptions\ApiResponseException;
use NetsCore\Interfaces\APIClientInterface;
use NetsCore\Interfaces\PaymentRequestInterface;
use NetsCore\Interfaces\PaymentObjectInterface;
use NetsCore\Services\LogsService;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Exceptions\ApiResponseException;
use NexiNetsCore\Interfaces\APIClientInterface;
use NexiNetsCore\Interfaces\PaymentRequestInterface;
use NexiNetsCore\Interfaces\PaymentObjectInterface;
use NexiNetsCore\Services\LogsService;

class NetaxeptSandboxAPIClient implements APIClientInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Configuration/NetaxeptConfiguration.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NetsCore\Configuration;
namespace NexiNetsCore\Configuration;

use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Enums\ClientTypeEnum;
use NetsCore\Interfaces\ConfigurationInterface;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Enums\ClientTypeEnum;
use NexiNetsCore\Interfaces\ConfigurationInterface;

class NetaxeptConfiguration implements ConfigurationInterface
{
Expand Down
8 changes: 4 additions & 4 deletions src/Configuration/NetaxeptSandboxConfiguration.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace NetsCore\Configuration;
namespace NexiNetsCore\Configuration;

use NetsCore\Enums\ApiUrlsEnum;
use NetsCore\Enums\ClientTypeEnum;
use NetsCore\Interfaces\ConfigurationInterface;
use NexiNetsCore\Enums\ApiUrlsEnum;
use NexiNetsCore\Enums\ClientTypeEnum;
use NexiNetsCore\Interfaces\ConfigurationInterface;

class NetaxeptSandboxConfiguration implements ConfigurationInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/BasketItemDto.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class BasketItemDto
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/CardDetails.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class CardDetails
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/Customer/AddressDto.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept\Customer;
namespace NexiNetsCore\Dto\Netaxept\Customer;

class AddressDto
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dto/Netaxept/Customer/CompanyCustomerDto.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\Customer;
namespace NexiNetsCore\Dto\Netaxept\Customer;

use NetsCore\Interfaces\CustomerInterface;
use NexiNetsCore\Interfaces\CustomerInterface;

class CompanyCustomerDto implements CustomerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dto/Netaxept/Customer/CustomerDto.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\Customer;
namespace NexiNetsCore\Dto\Netaxept\Customer;

use NetsCore\Interfaces\CustomerInterface;
use NexiNetsCore\Interfaces\CustomerInterface;

class CustomerDto implements CustomerInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dto/Netaxept/Customer/IndividualCustomerDto.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\Customer;
namespace NexiNetsCore\Dto\Netaxept\Customer;

use NetsCore\Interfaces\CustomerInterface;
use NexiNetsCore\Interfaces\CustomerInterface;

class IndividualCustomerDto implements CustomerInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept\Customer\Transformer;
namespace NexiNetsCore\Dto\Netaxept\Customer\Transformer;

interface CustomerDtoTransformerInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Dto/Netaxept/PayPageConfigurationDto.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

use NetsCore\Enums\PageTypeEnum;
use NexiNetsCore\Enums\PageTypeEnum;

class PayPageConfigurationDto
{
/**
* @var PaymentMethodActionInfoDto[]
*/
public ?array $paymentMethodActionInfo;
public ?array $paymentMethodActionInfoList;
public string $language;
public string $pageType;
public string $templateName;
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/PaymentDetail.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class PaymentDetail
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/PaymentMethodActionInfoDto.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class PaymentMethodActionInfoDto
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class InitialPaymentMethodTokenizationDetailsDto implements PaymentMethodDetailsInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class MerchantInitiatedPaymentWithTokenDto implements PaymentMethodDetailsInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dto/Netaxept/PaymentMethodDetails/PaymentWithTokenDto.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class PaymentWithTokenDto implements PaymentMethodDetailsInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class SepaDirectDepositTypeADto implements PaymentMethodDetailsInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class SepaDirectDepositTypeCDto implements PaymentMethodDetailsInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Dto/Netaxept/PaymentMethodDetails/SofortDto.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace NetsCore\Dto\Netaxept\PaymentMethodDetails;
namespace NexiNetsCore\Dto\Netaxept\PaymentMethodDetails;

use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;

class SofortDto implements PaymentMethodDetailsInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/PaymentSummary.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class PaymentSummary
{
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/PaymentTransaction.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

use DateTime;
use Exception;
Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/PaymentTransactionCollection.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion src/Dto/Netaxept/RedirectUrlDto.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NetsCore\Dto\Netaxept;
namespace NexiNetsCore\Dto\Netaxept;

class RedirectUrlDto
{
Expand Down
14 changes: 7 additions & 7 deletions src/Dto/Netaxept/Request/PaymentObject.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace NetsCore\Dto\Netaxept\Request;
namespace NexiNetsCore\Dto\Netaxept\Request;

use NetsCore\Dto\Netaxept\BasketItemDto;
use NetsCore\Dto\Netaxept\PayPageConfigurationDto;
use NetsCore\Dto\Netaxept\RedirectUrlDto;
use NetsCore\Interfaces\CustomerInterface;
use NetsCore\Interfaces\PaymentMethodDetailsInterface;
use NetsCore\Interfaces\PaymentObjectInterface;
use NexiNetsCore\Dto\Netaxept\BasketItemDto;
use NexiNetsCore\Dto\Netaxept\PayPageConfigurationDto;
use NexiNetsCore\Dto\Netaxept\RedirectUrlDto;
use NexiNetsCore\Interfaces\CustomerInterface;
use NexiNetsCore\Interfaces\PaymentMethodDetailsInterface;
use NexiNetsCore\Interfaces\PaymentObjectInterface;

class PaymentObject implements PaymentObjectInterface
{
Expand Down
Loading

0 comments on commit 66c3e5f

Please sign in to comment.