cancel
Showing results for 
Search instead for 
Did you mean: 

CIM hosted form returns null token

Hi,

I'm using the GetHostedProfilePage web service method to retrieve a token. When I reference an account with an existing card, the token value is null. However, when I create a new profile and retrieve a token using the same code, I get a token back.

 

Below is my code:

 

token = GetHostedProfilePage(ProfileId);

  public string GetHostedProfilePage(long profileId)
        {          
            var validationMode = new SettingType
            {
                settingName = "hostedProfileValidationMode",
                settingValue = isProd ? "liveMode" : "testMode"
            };

            var settings = new[] { validationMode};
            var response = Service.GetHostedProfilePage(MerchantAuthentication, profileId, settings);          
            return response.token;
        }

 

martin1b
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

Not the web traffic the response.token, the response should have more then just the token properties

View solution in original post

4 REPLIES 4

can you read the response message? might be there an error?

RaynorC1emen7
Expert
Did a fiddler capture and don't see anything obvious. Everything looks like 200/OKs .

Not the web traffic the response.token, the response should have more then just the token properties

Ah! Yes, I see it. There are messages. Thanks!!