How retrieval works
Retrieving full card details requires an encryptedSessionId header so only
the authorized cardholder can access the data. The flow has three steps:
1
Generate an encrypted session key
Generate a session key, then encrypt it with Rainβs RSA public key using
RSA-OAEP. The encrypted value is your
SessionId.2
Request the encrypted details
Call Get a cardβs encrypted data
with the encrypted
SessionId in the request header.3
Decrypt on the client
Decrypt the returned PAN and CVC with your session key using AES.
Implementation guides
For complete code, follow the guide for your environment:- Manually implementing encryption and decryption for a browser client.
- Use encryption outside a browser environment for server-side Node.js.
Whatβs next
Test with simulations
Simulate card transactions in the sandbox before you go live.
Manage transactions
Follow transactions from authorization through settlement once cards are
live.