Validate Card Security Code (dCVx)

WCF


Method
AuthServerResponse ValidateCSC(string authServerPartnerLoginName, 
            string authServerPartnerLoginPassword, 
            string authServerPartnerUserLoginName, 
            string authOtp, 
            string printedSerialNumber);
WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
authOtpstringCard security code to be verified.
printedSerialNumberstring

Optional. Specific card identifier for this account. Used when there is more than one card per account.

Sample WCF C# Method
 AuthServerResponse resp = ValidateCSC("accountLogin", 
            "accountKey", 
            "Mandy", 
            "1234", 
            string.Empty);
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {             
    message.Text = resp.ErrorMsg;       
    return false; 
}


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringvalidate_csc
codestringCard security code to be verified.
psnstring

A specific card assigned to this user. If this is left empty then the first device assigned

Sample REST/Json Method
 {
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "acccountKey",
  "type": "validate_csc",
  "code": "1234",
  "psn": ""
}
Sample REST/Json Response
 {
  "errorCode": 9003,
  "errorMessage": "CSC FAILED - [1234] outside window [size=30] or invalid. ",
  "type": "validate_csc"
}