From 5e24e83e9d87fc4c5e0c01ac5ccb313dbad05e5f Mon Sep 17 00:00:00 2001 From: kGablo Date: Tue, 23 Jan 2024 17:55:00 +0100 Subject: [PATCH] Disable card save --- Model/Tpay.php | 2 +- etc/adminhtml/system.xml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Model/Tpay.php b/Model/Tpay.php index 0a34d10..1741d93 100755 --- a/Model/Tpay.php +++ b/Model/Tpay.php @@ -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 diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 21a70fd..d0c6e3c 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -138,12 +138,6 @@ Find in Merchant’s panel: Credit cards payment -> API 1 - - - Only available for logged in users - Magento\Config\Model\Config\Source\Yesno - 1 -