Option 2 - JWT - Card BIN passed in JWT

This implementation option is the simplest and recommended approach which requires less moving parts.  As part of the JWT generation, all you will need to do is add the card bin to full card number in the Payload within the Transactional JWT.  When the Device Data Collection URL is invoked, the Transactional JWT will be posted over to the URL.  

Integration Steps:

  1. Card BIN goes into the Transactional JWT 

  2. POST Transactional JWT to the Device Data Collection URL

  3. Handle the Response from the Device Data Collection URL on the ReturnUrl provided within the TransactionalJWT

Option 1 Example -

<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"> <input type="hidden" name="JWT" value="Transactional JWT generated per specification" /> </form> <script>window.onload = function () { // Auto submit form on page load document.getElementById('collectionForm').submit(); } </script>

NOTE: This example shows the ReturnUrl being populated in the Transactional JWT instead of a POST parameter.

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