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 with SHA-512.
Example session ID generation
- You need the
sessionIdto make an API request. - You need the
secretKeyfor decryption later.
Step 2: Sending the API request
Once you generate thesessionId, you can send a request to retrieve encrypted card details. Send a request to the get a card’s encrypted data endpoint.