-
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.
Merge pull request #56 from p1fb/SW6-55-fix-prepayment-bug
SW6-55: Fix Prepayment Implementation
- Loading branch information
Showing
9 changed files
with
116 additions
and
7 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
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
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
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
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