Step 1: Generating the session ID
Use thegenerateSessionID method to generate the SessionId. This ensures that only the correct user can decrypt the data. You’ll need the public RSA key for your environment:
Requirements
- The secret must be a 32-character hexadecimal string with no spaces or dashes.
- The encryption must use RSA-OAEP padding.
Example session ID generation
- The
sessionIdis required for making an API request. - The
secretKeywill be needed for decryption later.
Step 2: Sending the API request
Once thesessionId is generated, you can send a request to retrieve encrypted card details. Send a request to the get a card’s encrypted data endpoint.