Skip to content

Commit

Permalink
PISHPS-265: remove ideal issuer dropdown (#743)
Browse files Browse the repository at this point in the history
* NTR: PISHPS-265: remove ideal issuer dropdown

* NTR: remove store-api tests

---------

Co-authored-by: Vitalij Mik <[email protected]>
  • Loading branch information
BlackScorp and Vitalij Mik authored May 10, 2024
1 parent b62ad4c commit 09ab3b4
Show file tree
Hide file tree
Showing 30 changed files with 5 additions and 862 deletions.
30 changes: 0 additions & 30 deletions src/Controller/StoreApi/iDEAL/Response/IssuersResponse.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/Controller/StoreApi/iDEAL/Response/StoreIssuerResponse.php

This file was deleted.

98 changes: 0 additions & 98 deletions src/Controller/StoreApi/iDEAL/iDealControllerBase.php

This file was deleted.

63 changes: 0 additions & 63 deletions src/Controller/Storefront/iDEAL/iDealControllerBase.php

This file was deleted.

88 changes: 0 additions & 88 deletions src/Gateway/Mollie/Model/Issuer.php

This file was deleted.

30 changes: 0 additions & 30 deletions src/Gateway/Mollie/MollieGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
namespace Kiener\MolliePayments\Gateway\Mollie;

use Kiener\MolliePayments\Factory\MollieApiFactory;
use Kiener\MolliePayments\Gateway\Mollie\Model\Issuer;
use Kiener\MolliePayments\Gateway\MollieGatewayInterface;
use Mollie\Api\MollieApiClient;
use Mollie\Api\Resources\Method;
use Mollie\Api\Resources\Order;
use Mollie\Api\Resources\Payment;
use Mollie\Api\Resources\Profile;
use Mollie\Api\Resources\Subscription;
use Mollie\Api\Resources\Terminal;
use Mollie\Api\Types\PaymentMethod;

class MollieGateway implements MollieGatewayInterface
{
Expand Down Expand Up @@ -88,34 +85,7 @@ public function getOrganizationId(): string
return (string)$orgId;
}

/**
* @throws \Mollie\Api\Exceptions\ApiException
* @return Issuer[]
*/
public function getIDealIssuers(): array
{
$parameters = [
'include' => 'issuers',
];

/** @var Method $iDeal */
$iDeal = $this->apiClient->methods->get(PaymentMethod::IDEAL, $parameters);

$issuers = [];

/** @var \Mollie\Api\Resources\Issuer $issuer */
foreach ($iDeal->issuers as $issuer) {
$issuers[] = new Issuer(
$issuer->id,
$issuer->name,
$issuer->image->size1x,
$issuer->image->size2x,
$issuer->image->svg
);
}

return $issuers;
}

/**
* @throws \Mollie\Api\Exceptions\ApiException
Expand Down
5 changes: 0 additions & 5 deletions src/Gateway/MollieGatewayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Kiener\MolliePayments\Gateway;

use Kiener\MolliePayments\Gateway\Mollie\Model\Issuer;
use Mollie\Api\Resources\Order;
use Mollie\Api\Resources\Payment;
use Mollie\Api\Resources\Subscription;
Expand All @@ -25,10 +24,6 @@ public function getOrganizationId(): string;
*/
public function getProfileId(): string;

/**
* @return Issuer[]
*/
public function getIDealIssuers(): array;

/**
* @return Terminal[]
Expand Down
Loading

0 comments on commit 09ab3b4

Please sign in to comment.