-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fabian Böttcher
committed
Aug 28, 2020
1 parent
184fe5a
commit e138b4b
Showing
5 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Components\RequestBuilder; | ||
|
||
use PayonePayment\PaymentMethod\PayoneEps; | ||
use PayonePayment\Struct\PaymentTransaction; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Component\HttpFoundation\ParameterBag; | ||
|
||
class EpsRequestBuilder extends AbstractRequestBuilder | ||
{ | ||
public function supports(string $paymentMethodId): bool | ||
{ | ||
return $paymentMethodId === PayoneEps::UUID; | ||
} | ||
|
||
public function getAdditionalRequestParameters(PaymentTransaction $transaction, Context $context, ParameterBag $parameterBag): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Components\RequestBuilder; | ||
|
||
use PayonePayment\PaymentMethod\PayoneIDeal; | ||
use PayonePayment\Struct\PaymentTransaction; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Component\HttpFoundation\ParameterBag; | ||
|
||
class IDealRequestBuilder extends AbstractRequestBuilder | ||
{ | ||
public function supports(string $paymentMethodId): bool | ||
{ | ||
return $paymentMethodId === PayoneIDeal::UUID; | ||
} | ||
|
||
public function getAdditionalRequestParameters(PaymentTransaction $transaction, Context $context, ParameterBag $parameterBag): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Components\RequestBuilder; | ||
|
||
use PayonePayment\PaymentMethod\PayonePaydirekt; | ||
use PayonePayment\Struct\PaymentTransaction; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Component\HttpFoundation\ParameterBag; | ||
|
||
class PaydirektRequestBuilder extends AbstractRequestBuilder | ||
{ | ||
public function supports(string $paymentMethodId): bool | ||
{ | ||
return $paymentMethodId === PayonePaydirekt::UUID; | ||
} | ||
|
||
public function getAdditionalRequestParameters(PaymentTransaction $transaction, Context $context, ParameterBag $parameterBag): array | ||
{ | ||
return []; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/Components/RequestBuilder/PrepaymentRequestBuilder.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Components\RequestBuilder; | ||
|
||
use PayonePayment\PaymentMethod\PayonePrepayment; | ||
use PayonePayment\Struct\PaymentTransaction; | ||
use Shopware\Core\Framework\Context; | ||
use Symfony\Component\HttpFoundation\ParameterBag; | ||
|
||
class PrepaymentRequestBuilder extends AbstractRequestBuilder | ||
{ | ||
public function supports(string $paymentMethodId): bool | ||
{ | ||
return $paymentMethodId === PayonePrepayment::UUID; | ||
} | ||
|
||
public function getAdditionalRequestParameters(PaymentTransaction $transaction, Context $context, ParameterBag $parameterBag): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters