Skip to content

Commit

Permalink
Disable card save
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jan 23, 2024
1 parent 88992a0 commit 5e24e83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Model/Tpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public function getConfigData($field, $storeId = null)

public function getCardSaveEnabled(): bool
{
return (bool) $this->getConfigData('cardpayment_settings/card_save_enabled');
return false;
}

public function getCheckoutCustomerId(): ?string
Expand Down
6 changes: 0 additions & 6 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,6 @@
<comment>Find in Merchant’s panel: Credit cards payment -> API</comment>
<depends><field id="cardpayment_api_active">1</field></depends>
</field>
<field id="card_save_enabled" translate="label" type="select" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable credit card saving</label>
<comment>Only available for logged in users</comment>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends><field id="cardpayment_api_active">1</field></depends>
</field>
</group>
<group id="sale_settings" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Additional settings</label>
Expand Down

0 comments on commit 5e24e83

Please sign in to comment.