-
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.
PAYOSWXP-115: amazon pay: add platform_id
- Loading branch information
1 parent
9718a48
commit 31ae088
Showing
13 changed files
with
50 additions
and
54 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
src/Payone/RequestParameter/Builder/Amazon/AbstractAmazonParameterBuilder.php
This file was deleted.
Oops, something went wrong.
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
26 changes: 26 additions & 0 deletions
26
src/Payone/RequestParameter/Builder/AmazonPayExpress/AbstractRequestParameterBuilder.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,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace PayonePayment\Payone\RequestParameter\Builder\AmazonPayExpress; | ||
|
||
use PayonePayment\PaymentHandler\PayoneAmazonPayExpressPaymentHandler; | ||
use PayonePayment\Payone\RequestParameter\Builder\Amazon\AbstractAmazonRequestParameterBuilder; | ||
use PayonePayment\Payone\RequestParameter\Struct\AbstractRequestParameterStruct; | ||
|
||
abstract class AbstractRequestParameterBuilder extends \PayonePayment\Payone\RequestParameter\Builder\AbstractRequestParameterBuilder | ||
{ | ||
public function getRequestParameter(AbstractRequestParameterStruct $arguments): array | ||
{ | ||
return [ | ||
'clearingtype' => AbstractAmazonRequestParameterBuilder::CLEARING_TYPE, | ||
'wallettype' => AbstractAmazonRequestParameterBuilder::WALLET_TYPE, | ||
'add_paydata[platform_id]' => AbstractAmazonRequestParameterBuilder::PLATFORM_ID, | ||
]; | ||
} | ||
|
||
public function supports(AbstractRequestParameterStruct $arguments): bool | ||
{ | ||
return $arguments->getPaymentMethod() === PayoneAmazonPayExpressPaymentHandler::class; | ||
} | ||
} |
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
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