- Combining the Authentication and the Authorization Services
- Implementing SDK Payer Authentication
- Authentication Examples Using Primary Account Numbers
- Authentication Examples Using Digital Payment (Google Pay)
- Authentication Examples Using TMS Tokens
- Authentication Examples Using Flex Microform Tokens
- Authentication Examples Using Network Token/Tokenized Cards
- Authentication Examples of Merchant-Initiated Transactions
Receiving the Device Data Collection URL Response
Receiving the response indicates that the device data collection URL completed its processing.
The response is an event callback that contains a message with the status of the
device data collection process.
Use the
event.origin
URL that corresponds to your environment: - Test:https://centinelapistag.cardinalcommerce.com
- Production:https://centinelapi.cardinalcommerce.com
Study the example below to understand how to subscribe to the event. Add JavaScript
to receive the response from the device data collection iframe. Place the JavaScript
after the closing
</body>
element.Listen for Device Data Collection Response
window.addEventListener("message", function(event) { if (event.origin === https://centinelapistag.cardinalcommerce.com) { console.log(event.data); } }, false);
This example shows a response payload from the event. None of the returned data needs
to be stored for future use.
Event Listener Callback Payload
{ "MessageType": "profile.completed", "Session Id": "f54ea591-51ac-48de-b908-eecf4ff6beff", "Status": true }