encryptBin

fun encryptBin(bin: String, publicKey: String): String

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

Return

The encrypted bin String.

Parameters

bin

The BIN value to be encrypted.

publicKey

The key to be used for encryption.

Throws

in case the encryption fails.