GenericEncrypter

Allows the encryption of any type of data to be sent to Adyen's APIs. Use this class with custom component integrations.

Functions

Link copied to clipboard
fun encryptField(fieldKeyToEncrypt: String, fieldValueToEncrypt: Any?, publicKey: String): String

Encrypts a single field into a block of content.

Link copied to clipboard
fun encryptFields(publicKey: String, vararg fieldsToEncrypt: Pair<String, Any?>): String

Encrypts multiple fields into a single block of content.