Skip to main content
Security best practices:
  • Never store decrypted card details.
  • Only request full card details when absolutely necessary.
  • Always use the latest encryption libraries to maintain security.

Step 1: Generating the session ID

Use the generateSessionID 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.
  • Encryption must use RSA-OAEP padding with the provided public key.

Example session ID generation

  • The sessionId is required to make an API request.
  • The secretKey will be needed for decryption later.

Step 2: Sending the API request

Once the sessionId is generated, you can send a request to retrieve encrypted card details.

Requesting encrypted card details

Send a request to the get a card’s encrypted data endpoint.

Example API request

Example API response

Step 3: Decrypting the encrypted card data

To decrypt the received encrypted card details, use AES-128-GCM decryption.

Example card data decryption

Example final output