CardEncrypter

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

Functions

Link copied to clipboard
fun encrypt(unencryptedCard: UnencryptedCard, publicKey: String): String

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

Link copied to clipboard
fun encryptBin(bin: String, publicKey: String): String

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

Link copied to clipboard
fun encryptFields(unencryptedCard: UnencryptedCard, publicKey: String): EncryptedCard

Encrypts the available card data from UnencryptedCard into individual encrypted blocks.