The following steps outline the requirements for integrating CCA into your baseline Cardinal Cruise integration, which was completed by following the steps in the Getting Started With Cardinal Centinel section.
Step 1: JWT Creation
Step 2: Include the Script
Step 3: Configure It
Step 4: Listen for Events
Step 5: Initialize It
Step 6: Include BIN Detection
Step 7: Start Cardinal Consumer Authentication with Lookup Request
Step 8: Handling the Lookup Response
Step 9: Continue with CCA
Step 10: Handling the CCA Response
Step 11: JWT Validation
The below document outlines the transactional flow to complete a CCA hybrid transaction.
The below steps are required to enable CCA with your Cardinal Cruise Hybrid integration. We included sections in addition to Getting Started With Cardinal Centinel for including BIN Detection, running the Lookup Request & Response, Continuing with CCA and listening & processing the response.
Cardinal Cruise JS Hybrid integration allows for more flexibility when initiating CCA. As an integrator, it is required to run Steps 1 through Step 5 prior to initiating the cmpi_lookup request. However, you have the option to run Steps 1 through Steps 5 on a page prior to where the cmpi_lookup is initiated. This can be leveraged as a way to run the required device data collection and allow enough time to complete. |
When integrating Cardinal Cruise Hybrid method for CCA, it is required to populate the DFReferenceId in the cmpi_lookup request. In order to populate this ID correctly, there are two options available.
Option 1: You can subscribe to the payments.setupComplete callback function and pull the sessionId from the response and use that as your DFReferenceId in the cmpi_lookup request. Note, you will not need to add or populate the ReferenceId claim when generating the JWT.
Option 2: You can generate your own value, add this to the ReferenceId claim when the JWT is generated and pass the same value as your DFReferenceId in the cmpi_lookup request.
The DFReferenceId and the ReferenceId fields are 2 different names for the same value. Make sure to pass the same unique Id in both fields. |
CCA is initiated by the merchant, typically when the customer clicks 'Place Order" or 'Submit Order' button. Instead of getting a card authorization, you will need to initiate the cmpi_lookup before authorization to our Cardinal Centinel platform. This API call is a backend server-to-server message that will be used to start the CCA transaction.
Please follow the Getting Started and Lookup Request/Response sections for completing your backend integration.
The DFReferenceId is required in the cmpi_lookup request. BIN Detection must be triggered for each call of cmpi_lookup. This must be done even if the card number has not changed. This is due to 3DS 2.0 ACS MethodURL data which is only valid for 1 transaction attempt. This data must be recollected by the ACS on each call to the ACS for authentication. |
The Lookup Response will return back an ACSUrl and Payload field, when these fields are populated, you can use these fields to determine if you need to present the authentication session to the consumer. If you need to present the authentication session, then continue with CCA in Step 9.
NOTE: If a Challenge is requested by the issuer, you must continue to Step 9 within 30 seconds of receiving the Lookup Response. If the StepUp does not occur within this window you may receive an error or an authentication failure and a new authentication request must be created before proceeding. |
You may want to consult with your Activation Manager to assist with handling the other Lookup Response uses cases for authentication. |
After the Lookup Response is returned, take the ACSUrl, Payload, and TransactionId and include them in the Cardinal.continue function in order to proceed with the authentication session.
The Cardinal.continue will display a modal window and automatically post the consumer's session over to the acs url for authentication.
Order object in the below example has been shortened for brevity.
Cardinal.continue('cca', { "AcsUrl":"https://testcustomer34.cardinalcommerce.com/merchantacsfrontend/pareq.jsp?vaa=b&gold=AAAAAAAA...AAAAAAA", "Payload":"eNpVUk1zgjAQvedXME7PJEFBVdKt1CECeDkVCk2PcfcnNjv8Kr+7tx4nlbGOcz/se6G1uMENPTPeeIz1G37WGEUth7YnpO21TfTvF3wDCBqspQ==" }, { "OrderDetails":{ "TransactionId" :"123456abc" // Add the rest of the Order object } }); |
Cardinal.continue will only work after the payments.setupComplete event has been triggered. Try running Cardinal.continue later in your flow if payments.setupComplete has not triggered yet. |
Refer to the cardinal.Continue section for more information. |
Songbird.js will handle all the user interactions up until CCA has returned back the authentication result. The next step in the integration is to add logic to your payements.validated event to handle specific return values for CCA. The field ActionCode should be used as the primary transaction status indicator. Below are the possible values for ActionCode and what they indicate.
The below example is what you should expect the response JWT to contain on a successful CCA transaction.
|
Another option that is available, is to only take the ProcessorTransactionId from the payments.validated response and include that on a backend call to Cardinal Centinel called the cmpi_authenticate request. Some clients may find this helpful if they have already integrated the Lookup & Authenticate message pair.
Please follow the Getting Started and Authenticate Request/Response sections for completing your backend integration.
Authenticate Request (cmpi_authenticate)
An additional Cardinal Centinel configuration is available to suppress the 3-D Secure values and only populate the ProcessorTransactionId field. |
Please refer to the following CCA Test Cases |
Once the response JWT is received in the payments.validated event, you will need to send the response JWT to your backend to verify and extract the results. We recommend that any values sent to 3rd parties are sourced from the response JWT after it has been properly validated.
JWT validation should only ever be done on the server side for security reasons. Doing JWT validation on the front end is not an acceptable flow. |
For more in depth information on JWT validation including code samples in a few languages, check out the JWT Validation page. |
Please note that each Claim key is case sensitive.
JWT Payload ExampleBelow is an example of the JSON content of a basic response JWT Payload where we are passing an object within the Payload claim:
Below is an example of the JSON content of a basic response JWT Payload where we are passing a string within the Payload claim. This would occur when the request JWT included a
|
Please refer to the following CCA Test Cases |
You can begin testing transactions after you have completed the above steps for integrating Cardinal Cruise Standard into your merchant front end environment.