Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Generating an Authentication JWT with ReferenceId
After the Data Exchange API response is received, the integrator must generate an Authentication JWT with the ReferenceId received in the response. The Authentication JWT and the DeviceDataCollectionUrl must be sent up to the merchant's frontend in order to complete the Device Data Collection requirement. In addition, the integrator can also include a ReturnUrl as a root level custom claim in order to receive the response from Device Data Collection Url.
Example of the Authentication JWT with a root level ReturnURL custom claim
|
Initiating the Device Data Collection Url
Depending on the Device Data Collection response you expect, you will need to use either of the following endpoints:
Connection URLs for Staging and Production:
Environment | URL |
---|---|
Staging | |
Production |
GetInfo
Response Options | Path | Response Object |
---|---|---|
| /V1/Cruise/Collect | |
/V2/Cruise/Collect | ||
postMessage | /V1/Cruise/Collect | |
/V2/Cruise/Collect |
Now that you have successfully called the Data Exchange API to start the Device Data Collection session, generated an Authentication JWT, you will need to pass the Authentication JWT and Device Data Collection URL up to your frontend. The front end is the location required to initiate the DeviceDataCollectionUrl because this url needs access to the Consumer's browser in order to invoke Method Url. You will need to initiate a form post in a hidden iframe to the Device Data Collection URL that was passed up from your backend system and the Authentication JWT as a post parameter.
Info |
---|
For browser compatibility, the iframe should be made hidden with the following style setting: The iframe height and width should also be set to 10 px: These settings help maximize the ACS’s ability to run the necessary data collection scripts. See the code snippet below for examples of both. |
|
Info |
---|
Click here to review how to handle the Device Data Collection responses. |
Table of Contents | ||||
---|---|---|---|---|
|