JavaScript
										
 var hpciCCFrameHost = "https://cci.framehpci.com"; 
 // TODO: Adapt according to your site. 
 // Should match the HPCI's iframe "src" attribute 
 var hpciCCFrameFullUrl = "https://cci.framehpci.com/iSynSApp/showPxyPage!ccFrame.action?pgmode1=prod&locationName=checkout1&sid=510300&reportCCType=Y&reportCCDigits=Y&reportCVVDigits=Y&enableEarlyToken=Y&formatCCMaskMode=S6X6&formatCCMaskChar=*&fullParentHost=https://www.hostedpci.com&fullParentQStr=/iframe-demo-interactive/"
 // Use the name of the iframe containing the credit card 
 var hpciCCFrameName = "ccframe"; 
 var hpciSiteErrorHandler = function(errorCode, errorMsg) { 
    // TODO: Adapt the following message / action to match your required experience 
    console.log("===========Begin hpciSiteErrorHandler==========="); 
    console.error("%cErrorCode: " + errorCode 
      + "\nErrorMsg: " + errorMsg, "font-size: larger"); 
    console.log("===========End hpciSiteErrorHandler==========="); 
 }  
 var hpciCCPreliminarySuccessHandlerV4 = function(hpciCCTypeValue, hpciCCBINValue,
   hpciCCValidValue, hpciCCLengthValue, hpciCCEnteredLengthValue, hpciMappedCCValue,
   hpciMappedCVVValue, hpciGtyTokenValue, hpciCCLast4Value, hpciReportedFormFieldsObj,
   hpciGtyTokenAuthRespValue, hpciTokenRespEncrypt) { 
   // TODO: Adapt the following message / action to match your required experience 
   console.log("===========Begin hpciCCPreliminarySuccessHandlerV4==========="); 
var data = [
			{ name: "hpciCVVLengthValue", value: hpciCVVLengthValue },
			{ name: "hpciCVVValidValue", value: hpciCVVValidValue },
			{ name: "hpciMappedCCValue", value: hpciMappedCCValue },
			{ name: "hpciMappedCVVValue", value: hpciMappedCVVValue },
			{ name: "hpciCCBINValue", value: hpciCCBINValue },
			{ name: "hpciGtyTokenValue", value: hpciGtyTokenValue },
			{ name: "hpciCCLast4Value", value: hpciCCLast4Value },
			{ name: "hpciGtyTokenAuthRespValue", value: hpciGtyTokenAuthRespValue },
			{ name: "hpciTokenRespEncrypt", value: hpciTokenRespEncrypt }
		  ];
		  
		console.table(data);
                   var ccNumInput = document.getElementById("cc-token");
                  ccNumInput.value = hpciMappedCCValue;
		var ccCVVInput = document.getElementById("cvv-token");
		ccCVVInput.value = hpciMappedCVVValue;
		var ccBINInput = document.getElementById("cc-bin");
		ccBINInput.value = hpciCCBINValue;
   console.log("===========End hpciCCPreliminarySuccessHandlerV4===========");
} 
 var hpciCCDigitsSuccessHandlerV2 = function(hpciCCTypeValue, hpciCCBINValue, hpciCCValidValue,
   hpciCCLengthValue, hpciCCEnteredLengthValue) { 
   console.log("===========Begin hpciCCDigitsSuccessHandlerV2==========="); 
   // TODO: Adapt the following message / action to match your required experience 
   console.log("===========End hpciCCDigitsSuccessHandlerV2==========="); 
} 
var hpciCVVDigitsSuccessHandler = function(hpciCVVDigitsValue, hpciCVVValidValue) { 
   console.log("===========Begin hpciCVVDigitsSuccessHandler==========="); 
   // TODO: Adapt the following message / action to match your required experience 
   console.log("===========End hpciCVVDigitsSuccessHandler===========");
} 
 var hpciCVVPreliminarySuccessHandlerV4 = function (hpciCVVLengthValue, hpciCVVValidValue,
   hpciMappedCCValue, hpciMappedCVVValue, hpciCCBINValue, hpciGtyTokenValue,
   hpciCCLast4Value, hpciReportedFormFieldsObj, hpciGtyTokenAuthRespValue, hpciTokenRespEncrypt) { 
   // TODO: Adapt the following message / action to match your required experience 
   console.log("===========Begin hpciCVVPreliminarySuccessHandlerV4==========="); 
   var data = [
                         { name: "hpciCVVLengthValue", value: hpciCVVLengthValue },
			{ name: "hpciCVVValidValue", value: hpciCVVValidValue },
			{ name: "hpciMappedCCValue", value: hpciMappedCCValue },
			{ name: "hpciMappedCVVValue", value: hpciMappedCVVValue },
			{ name: "hpciCCBINValue", value: hpciCCBINValue },
			{ name: "hpciGtyTokenValue", value: hpciGtyTokenValue },
			{ name: "hpciCCLast4Value", value: hpciCCLast4Value },
			{ name: "hpciGtyTokenAuthRespValue", value: hpciGtyTokenAuthRespValue },
			{ name: "hpciTokenRespEncrypt", value: hpciTokenRespEncrypt }
		  ];
		  
		console.table(data);
                   var ccNumInput = document.getElementById("cc-token");
                  ccNumInput.value = hpciMappedCCValue;
		var ccCVVInput = document.getElementById("cvv-token");
		ccCVVInput.value = hpciMappedCVVValue;
		var ccBINInput = document.getElementById("cc-bin");
		ccBINInput.value = hpciCCBINValue;
   console.log("===========End hpciCVVPreliminarySuccessHandlerV4===========");
} 
 var hpciSiteSuccessHandlerV7 = function(hpciMsgSrcFrameName, hpciMappedCCValue, hpciMappedCVVValue,
      hpciCCBINValue, hpciGtyTokenValue, hpciCCLast4Value, hpciReportedFormFieldsObj,
      hpciGtyTokenAuthRespValue, hpciTokenRespEncrypt, threeDSValuesObj) { 
   // TODO: Adapt the following message / action to match your required experience
         console.log("===========Begin hpciSiteSuccessHandlerV7===========");
              ccNumInput.value = hpciMappedCCValue;
		var ccCVVInput = document.getElementById("cvv-token");
		ccCVVInput.value = hpciMappedCVVValue;
		var ccBINInput = document.getElementById("cc-bin");
		ccBINInput.value = hpciCCBINValue;
 var pendingForm = document.getElementById("cc-accept-form"); 
		pendingForm.submit; 
		
   console.log("===========End hpciSiteSuccessHandlerV7===========");
}