Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After the BIN Intelligence 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. 

...

Code Block
languagehtml
<iframe name="collectionFrame" height="10" width="10" style="visibility: hidden; position: absolute; top: -1000px; left: -1000px;">></iframe>
  <form id="collectionForm" target='collectionFrame' name="devicedata" method="POST" action="https://centinelapistag.cardinalcommerce.com/V2/Cruise/Collect">
 
  <!-- POST Parameters: is the JWT which is the Authentication JWT with the ReferenceId from the BIN Intelligence API Response -->
    <input type="hidden" name="JWT" value="Authentication JWT generated per specification" />
 
</form>

 <script>window.onload = function () {
      // Auto submit form on page load
      document.getElementById('collectionForm').submit();
    }
  </script>
</iframe>
Info

Click here to review how to handle the Device Data Collection responses.