Skip to content

Commit

Permalink
Fixing issues after merge with "develop"
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianTuriacArnia committed Jan 15, 2024
1 parent a098749 commit 4a0e6f3
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Gateway/Request/Capayable/In3V3DataBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function build(array $buildSubject): array

$data = [];

if ($this->capayableIn3Config->isV3()) {
if (!$this->capayableIn3Config->isV2()) {
$payment->setAdditionalInformation("buckaroo_in3_v3", true);
$data['payment_method'] = 'in3';
}
Expand Down
12 changes: 12 additions & 0 deletions Model/ConfigProvider/Method/Ideal.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,16 @@ public function getImageUrl($imgName, string $extension = 'png')
{
return parent::getImageUrl("ideal/{$imgName}", "svg");
}

public function getAllIssuers(): array
{
$issuers = $this->getIssuers();
$issuersPrepared = [];
foreach ($issuers as $issuer) {
$issuer['img'] = $issuer['logo'];
$issuersPrepared[$issuer['code']] = $issuer;
}

return $issuersPrepared;
}
}
1 change: 0 additions & 1 deletion Service/Ideal/IssuersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function __construct(
public function get(): array
{
$issuers = $this->getCachedIssuers();
$issuers = null;
if ($issuers === null) {
return $this->updateCacheIssuers();
}
Expand Down
27 changes: 14 additions & 13 deletions etc/adminhtml/system/payment_methods/creditcard.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,6 @@

<group id="buckaroo_magento2_default" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Method specific configuration</label>
<field id="allowed_issuers" translate="label comment" type="multiselect" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Allowed credit and debit cards</label>
<comment><![CDATA[Select payment method specific Credit and debit card.]]></comment>
<config_path>payment/buckaroo_magento2_creditcard/allowed_issuers</config_path>
<source_model>Buckaroo\Magento2\Model\Config\Source\Creditcard</source_model>
</field>

<field id="sorted_issuers" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort Credit-debitcard issuers</label>
<frontend_model>Buckaroo\Magento2\Block\Adminhtml\Form\Field\SortIssuers</frontend_model>
<comment><![CDATA[Select sort order on credit and debit card.]]></comment>
<config_path>payment/buckaroo_magento2_creditcard/sorted_issuers</config_path>
</field>

<group id="buckaroo_magento2_card_specific" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Card specific settings</label>
Expand Down Expand Up @@ -164,6 +151,20 @@
<config_path>payment/buckaroo_magento2_creditcards/selection_type</config_path>
</field>

<field id="allowed_issuers" translate="label comment" type="multiselect" sortOrder="56" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Allowed credit and debit cards</label>
<comment><![CDATA[Select payment method specific Credit and debit card.]]></comment>
<config_path>payment/buckaroo_magento2_creditcard/allowed_issuers</config_path>
<source_model>Buckaroo\Magento2\Model\Config\Source\Creditcard</source_model>
</field>

<field id="sorted_issuers" translate="label comment" type="text" sortOrder="57" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort Credit-debitcard issuers</label>
<frontend_model>Buckaroo\Magento2\Block\Adminhtml\Form\Field\SortIssuers</frontend_model>
<comment><![CDATA[Select sort order on credit and debit card.]]></comment>
<config_path>payment/buckaroo_magento2_creditcard/sorted_issuers</config_path>
</field>

<group id="buckaroo_magento2_advanced" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Configuration</label>

Expand Down
10 changes: 0 additions & 10 deletions etc/adminhtml/system/payment_methods/creditclick.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ For precise cost details, please reach out to <a href="mailto:[email protected]
<group id="buckaroo_magento2_advanced" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Advanced Configuration</label>

<field id="sorted_issuers" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Sort iDEAL banks</label>
<frontend_model>Buckaroo\Magento2\Block\Adminhtml\Form\Field\SortIssuers</frontend_model>
<comment><![CDATA[Select sort order iDEAL Processing Issuers.]]></comment>
<depends>
<field id="show_issuers">1</field>
</depends>
<config_path>payment/buckaroo_magento2_creditclick/sorted_issuers</config_path>
</field>

<field id="order_email" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Send order confirmation email</label>
<comment><![CDATA[Enable to send an order confirmation email to the customer when the creating of the order is successful. Specific for this payment method.]]></comment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@
<!-- ko text: name --><!-- /ko -->
</label>
</div>
<div class="bk-img-wrap">
<img data-bind="attr: { src: img }"/>
<div class="bk-mode-and-img">
<!-- ko if: $parent.isTestMode -->
<div class="bk-test-mode"><div class="bk-test-text" data-bind="i18n: 'Test Mode'"></div></div>
<!-- /ko -->
<div class="bk-img-wrap">
<img data-bind="attr: { src: img, alt: name }" />
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 4a0e6f3

Please sign in to comment.