Support for Encrypt Module

Created on 28 January 2024, 5 months ago
Updated 31 January 2024, 5 months ago

Hello and thanks for the great module,

Problem/Motivation

Can you provide support for Encrypt module → too? It is a dependency for 2FA and we cannot use both modules, unfortunately.

Best,
Orkut

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇹🇷Turkey Orkut Murat Yılmaz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Orkut Murat Yılmaz
  • Status changed to Postponed: needs info 5 months ago
  • 🇹🇷Turkey Kartagis Istanbul

    What feature of encrypt might iyzipay need?

  • Status changed to Active 5 months ago
  • 🇹🇷Turkey Orkut Murat Yılmaz

    When we install iyzipay, it installs Encryption module → , because it's a dependency. After the installation, it starts a conflict between Encrypt → and Encryption modules.

    Encrypt module is being used by the variety of modules, especially in Drupal 10. TFA 2.0.x → module uses it as a dependency.

    I've examined the code of the iyzipay module and I've noticed that the module uses Encryption as service:

    On the 182nd line of src/Plugin/Commerce/PaymentGateway/IyzipayOnsite.php, it is defined as a variable:

    $encryption_service = \Drupal::service('encryption');
    

    Also, on the 26th line of src/Plugin/Commerce/PaymentMethodType/FullCreditCard.php too.

    The modules use Encrypt (instead of Encryption) calls the Encrypt via api like:

    use Drupal\encrypt\EncryptionProfileInterface;
    use Drupal\encrypt\EncryptServiceInterface;
    use Drupal\encrypt\Entity\EncryptionProfile;
    

    Adding Encrypt functionality will be so nice for more advanced security options to iyzico module.

Production build 0.69.0 2024