# DeviceInformation

- [JSON representation](https://developers.google.com/pay/india-cards-v1/payment-integrator-india-cards-api/DeviceInformation#SCHEMA_REPRESENTATION)

Contains information about the user's device. It is sent when available and required in the current context. For example, it can be used to provide a better user experience by redirecting the user to a URL optimized for their device.

| JSON representation |
|---|
| ``` { "userAgent": string, "userIpAddress": string } ``` |

| Fields ||
|---|---|
| `userAgent` | `string` **REQUIRED**: The browser's user agent. |
| `userIpAddress` | `string` **OPTIONAL**: This is the IP address of the user's device if the purchase was made by a user in session. This can be either IPv4 or IPv6 version. If the particular contract doesn't stipulate the need for this field, it will always be empty. |