Encrypts a string using a provided public key.
The payload to encrypt.
The identifier of the key that is used to encrypt sensitive data. Retrieved from the Worldline Connect Client API.
The public key that is used to encrypt the sensitive data with. Retrieved from the Worldline Connect Client API.
A promise that contains the encrypted payload.
An interface describing cryptography engines. Implementations are used to encrypt payment requests.