Using a Card Identifier (Push)

Using a Card Identifier (Server-to-Server)

In this approach, the card details are attached to the user session before initializing the Sunlight SDK. Unlike the server-to-server method, where card details are securely retrieved from your server, this method involves providing card details directly during the initialization process. The card details are then associated with the user session and are only available for the duration of that session.

This method is suitable when you prefer to attach card details directly to the user's session and do not expose a public endpoint for card details. It allows you to use the attached card details for card switching during the session, but the data is available only temporarily and is not persisted beyond the session duration.