Object CardEncrypter

  • All Implemented Interfaces:

    
    public class CardEncrypter
    
                        

    Allows the encryption of card data to be sent to Adyen's APIs. Use this class with the custom card integration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • encrypt

         final String encrypt(UnencryptedCard unencryptedCard, String publicKey)

        Encrypts all the card data present in UnencryptedCard into a single block of content.

        Parameters:
        unencryptedCard - The card data to be encrypted.
        publicKey - The key to be used for encryption.
        Returns:

        The encrypted card data String.

      • encryptBin

         final String encryptBin(String bin, String publicKey)

        Encrypts the BIN of the card to be used in the Bin Lookup endpoint.

        Parameters:
        bin - The BIN value to be encrypted.
        publicKey - The key to be used for encryption.
        Returns:

        The encrypted bin String.