Skip to content

Commit

Permalink
Merge pull request #221 from wmde/payment-with-ppl-api
Browse files Browse the repository at this point in the history
Use new API-based PayPal payments
  • Loading branch information
gbirke authored Oct 23, 2023
2 parents eab0d34 + 8b5b3e5 commit 17d4d7f
Show file tree
Hide file tree
Showing 56 changed files with 390 additions and 1,198 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"wmde/euro": "~1.0",
"wmde/freezable-value-object": "~2.0",
"wmde/fun-validators": "~4.0",
"wmde/fundraising-payments": "~6.0"
"wmde/fundraising-payments": "~7.0"
},
"repositories": [
{
Expand Down
4 changes: 0 additions & 4 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Method WMDE\\\\Fundraising\\\\DonationContext\\\\DataAccess\\\\DoctrineDonationPrePersistSubscriber\\:\\:prePersist\\(\\) has parameter \\$args with generic class Doctrine\\\\Persistence\\\\Event\\\\LifecycleEventArgs but does not specify its types\\: TObjectManager$#"
count: 1
path: src/DataAccess/DoctrineDonationPrePersistSubscriber.php

-
message: "#^Method WMDE\\\\Fundraising\\\\DonationContext\\\\Domain\\\\Model\\\\DonorType\\:\\:__callStatic\\(\\) has parameter \\$arguments with no type specified\\.$#"
Expand Down
21 changes: 0 additions & 21 deletions src/Authorization/DonationTokenFetcher.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Authorization/DonationTokenFetchingException.php

This file was deleted.

36 changes: 0 additions & 36 deletions src/Authorization/DonationTokens.php

This file was deleted.

27 changes: 0 additions & 27 deletions src/Authorization/RandomTokenGenerator.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Authorization/TokenGenerator.php

This file was deleted.

97 changes: 0 additions & 97 deletions src/DataAccess/DoctrineDonationAuthorizer.php

This file was deleted.

58 changes: 0 additions & 58 deletions src/DataAccess/DoctrineDonationPrePersistSubscriber.php

This file was deleted.

51 changes: 0 additions & 51 deletions src/DataAccess/DoctrineDonationTokenFetcher.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use Doctrine\ORM\EntityManager;
use WMDE\Fundraising\PaymentContext\DataAccess\DoctrinePaymentRepository;
use WMDE\Fundraising\PaymentContext\DataAccess\PaymentNotFoundException;
use WMDE\Fundraising\PaymentContext\Domain\Exception\PaymentNotFoundException;
use WMDE\Fundraising\PaymentContext\Domain\Model\PayPalPayment;

class RepositoryPaypalParentFinder implements PaypalParentFinder {
Expand Down
6 changes: 3 additions & 3 deletions src/DonationAcceptedEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace WMDE\Fundraising\DonationContext;

use WMDE\Fundraising\DonationContext\Authorization\DonationAuthorizer;
use WMDE\Fundraising\DonationContext\Domain\Repositories\DonationRepository;
use WMDE\Fundraising\DonationContext\Domain\Repositories\GetDonationException;
use WMDE\Fundraising\DonationContext\Infrastructure\DonationAuthorizationChecker;
use WMDE\Fundraising\DonationContext\UseCases\DonationNotifier;

class DonationAcceptedEventHandler {
Expand All @@ -16,11 +16,11 @@ class DonationAcceptedEventHandler {
public const DATABASE_ERROR_OCCURRED = 'Database error occurred';
public const SUCCESS = null;

private DonationAuthorizer $authorizer;
private DonationAuthorizationChecker $authorizer;
private DonationRepository $repository;
private DonationNotifier $notifier;

public function __construct( DonationAuthorizer $authorizer, DonationRepository $repository, DonationNotifier $notifier ) {
public function __construct( DonationAuthorizationChecker $authorizer, DonationRepository $repository, DonationNotifier $notifier ) {
$this->authorizer = $authorizer;
$this->repository = $repository;
$this->notifier = $notifier;
Expand Down
Loading

0 comments on commit 17d4d7f

Please sign in to comment.