-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
0cadd0b
commit d377c97
Showing
8 changed files
with
212 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
/** | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is provided with Magento in the file LICENSE.txt. | ||
* It is also available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* See DISCLAIMER.md for disclaimer details. | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace MultiSafepay\ConnectCore\Model\Ui\Gateway; | ||
|
||
use Magento\Framework\Exception\LocalizedException; | ||
use MultiSafepay\ConnectCore\Model\Ui\GenericConfigProvider; | ||
|
||
class In3B2bConfigProvider extends GenericConfigProvider | ||
{ | ||
public const CODE = 'multisafepay_in3b2b'; | ||
|
||
/** | ||
* Retrieve assoc array of checkout configuration | ||
* | ||
* @return array | ||
* @throws LocalizedException | ||
*/ | ||
public function getConfig(): array | ||
{ | ||
return [ | ||
'payment' => [ | ||
$this->getCode() => [ | ||
'image' => $this->getImage(), | ||
'is_preselected' => $this->isPreselected(), | ||
'payment_type' => $this->getPaymentType() | ||
] | ||
] | ||
]; | ||
} | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.