On This Page
VPP Enroll
NOTE
Both FIDO Enrollment and FIDO Authentication use the same
/FIDO/Challenge endpoint to accomplish each task respectively.
Integrator Generates the Iframe
Please review the code sample below for an example on how to best generate the
Challenge
iframe.
<iframe name='fidoChallengeIframe' style= "position: relative; width:327px; height:393px; border:0px;" </iframe> <form id="fidoChallengeForm" target="fidoChallengeIframe" name="fidochallenge" method="POST" action=" https://centinelapistag.cardinalcommerce.com/V2/FIDO/Challenge"> <input type="hidden" name="JWT" value="Transactional JWT generated per specification" /> </form> <script>window.onload = function () { // Auto submit form on page load document.getElementById('fidoChalleneForm').submit(); } </script>
Visa Payment Passkey Enrollment Request with JWT
Visa Payment Passkey Enrollment Request with JWT
The FIDO challenge request uses the same JWT request format as other Cardinal Cruise
endpoints. See our existing JWT documentation for instructions on creating and
formatting the base JWT. As with other specialized uses of JWTs in the API, the
challenge JWT has a Payload object that contains Enroll-specific claims, as well as two
extra claims in the main body:
ReferenceId
and
ReturnURL
. { "iss": "MyMerchant-Api-Key-Id", "jti": "My-UUID-for-this-request", "iat": 1448997865, "OrgUnitId": "M59c2745f2f3e7357b4aa516a", "ReturnUrl": "https://onlinestore.com/myreturn", "ObjectifyPayload": true, "ReferenceId": "1234-54322-12354-6454" }
NOTE
For field definitions refer to the API reference.
NOTE
This FIDO call only supports SHA-256 algorithm when
generating a signature for the JWT.
After the request has been sent to Cardinal the cardholder will be prompted with
enrollment and will fill out the form and complete the FIDO Challenge. Cardinal then
sends the FIDO challenge response.
Visa Payment Passkey Enrollment Response with JWT
Visa Payment Passkey Enrollment Response with JWT
The /FIDO/Challenge endpoint will return the response as a JWT like most Cardinal
Cruise API endpoints. This section details the
Payload
claim within
the enroll JWT, which contains information unique to this endpoint. Please refer to
the existing documentation on JWTsfor more information
on handling JWT responses.Sample Enrolled Challenge
Response:
{ "iss": "MyMerchant-Api-Key-Id", "ref": "My-UUID-for-this-request", "iat": 1448997865, "exp": 1471021692, "OrgUnitId": "59c2745f2f3e7357b4aa516a", "ObjectifyPayload": true, "Payload": { "ChallengeState": "ENROLLED", "ReferenceId": "1234-54322-12354-6454", "ErrorNumber": 0, "ErrorDescription": "Success" } }
NOTE
For field definitions refer to the API
reference
When the challenge is received the cardholder is both enrolled and authenticated with
Visa Payment Passkey.
If a failure occurs, then Cybersource recommends continuing with authorization
without Visa Payment Passkey.