This repository has been archived by the owner on Dec 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Method Specific input into PaymentMethodInput
- Loading branch information
Showing
10 changed files
with
90 additions
and
92 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
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
35 changes: 35 additions & 0 deletions
35
...tests/integration/testsuite/Magento/GraphQl/Braintree/_files/enable_braintree_payment.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,35 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Magento\Framework\App\Config\Storage\Writer; | ||
use Magento\Framework\App\Config\Storage\WriterInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
use Magento\Framework\Encryption\EncryptorInterface; | ||
use Magento\Braintree\Model\Ui\ConfigProvider; | ||
use Magento\Framework\App\Config\ScopeConfigInterface; | ||
|
||
$objectManager = Bootstrap::getObjectManager(); | ||
|
||
/** @var Writer $configWriter */ | ||
$configWriter = $objectManager->get(WriterInterface::class); | ||
/** @var EncryptorInterface $encryptor */ | ||
$encryptor = $objectManager->get(EncryptorInterface::class); | ||
|
||
/** @var $mutableScopeConfig */ | ||
$mutableScopeConfig = $objectManager->get( | ||
\Magento\Framework\App\Config\MutableScopeConfigInterface::class | ||
); | ||
|
||
$configWriter->save('payment/' . ConfigProvider::CODE . '/merchant_id', 'def_merchant_id'); | ||
$configWriter->save('payment/' . ConfigProvider::CODE . '/public_key', $encryptor->encrypt('def_public_key')); | ||
$configWriter->save('payment/' . ConfigProvider::CODE . '/private_key', $encryptor->encrypt('def_private_key')); | ||
$configWriter->save('payment/' . ConfigProvider::CODE . '/active', '1'); | ||
$configWriter->save('payment/' . ConfigProvider::CODE . '/environment', 'sandbox'); | ||
$configWriter->save('payment/' . ConfigProvider::CC_VAULT_CODE . '/active', '1'); | ||
|
||
$scopeConfig = $objectManager->get(ScopeConfigInterface::class); | ||
$scopeConfig->clean(); |
31 changes: 31 additions & 0 deletions
31
...egration/testsuite/Magento/GraphQl/Braintree/_files/enable_braintree_payment_rollback.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,31 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
use Magento\Framework\App\Config\Storage\Writer; | ||
use Magento\Framework\App\Config\Storage\WriterInterface; | ||
use Magento\TestFramework\Helper\Bootstrap; | ||
use Magento\Framework\Encryption\EncryptorInterface; | ||
use Magento\Braintree\Model\Ui\ConfigProvider; | ||
|
||
$objectManager = Bootstrap::getObjectManager(); | ||
|
||
/** @var Writer $configWriter */ | ||
$configWriter = $objectManager->get(WriterInterface::class); | ||
/** @var EncryptorInterface $encryptor */ | ||
$encryptor = $objectManager->get(EncryptorInterface::class); | ||
|
||
/** @var $mutableScopeConfig */ | ||
$mutableScopeConfig = $objectManager->get( | ||
\Magento\Framework\App\Config\MutableScopeConfigInterface::class | ||
); | ||
|
||
$configWriter->delete('payment/' . ConfigProvider::CODE . '/merchant_id'); | ||
$configWriter->delete('payment/' . ConfigProvider::CODE . '/public_key'); | ||
$configWriter->delete('payment/' . ConfigProvider::CODE . '/private_key'); | ||
$configWriter->delete('payment/' . ConfigProvider::CODE . '/active'); | ||
$configWriter->delete('payment/' . ConfigProvider::CODE . '/environment'); | ||
$configWriter->delete('payment/' . ConfigProvider::CC_VAULT_CODE . '/active'); |
36 changes: 0 additions & 36 deletions
36
dev/tests/integration/testsuite/Magento/GraphQl/Braintree/_files/payments.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