cancel
Showing results for 
Search instead for 
Did you mean: 

CIM Ingration problem

I am working on hosted CIM. I have progressed to the point where I have acquired the token and sent the client to authorize.net to fill out his profile form, and everything looks fine except that there is no button for the user to click to return him to my site. The documentation shows such a button, but there isn't one in my testing so far. The form works perfectly, but there's nothing to use to submit the results and get back to me. Am I missing something in the XML call that wasn't in the sample? Here's the call I'm using:

 

<form method="post" action="https://test.authorize.net/profile/manage"

id="formAuthorizeNetPage">

<input type="hidden" name="Token" value="<? echo $token?>"/>

<input type="submit" value="Manage my payment and shipping

information" onclick= "document.getElementById(

'formAuthorizeNetPage').submit();">

</form>

takabyte
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

The XML documentation Page 66 at

http://developer.authorize.net/api/cim/

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>YourUserLogin</name>
    <transactionKey>YourTranKey</transactionKey>
  </merchantAuthentication>
  <customerProfileId>YourProfileID</customerProfileId>
  <hostedProfileSettings>
    <setting>
      <settingName>hostedProfileReturnUrl</settingName>
      <settingValue>https://blah.com/blah/</settingValue>
    </setting>
    <setting>
      <settingName>hostedProfileReturnUrlText</settingName>
      <settingValue>Continue to blah.</settingValue>
    </setting>
         <setting>
 <settingName>hostedProfilePageBorderVisible</settingName>
 <settingValue>true</settingValue>
 </setting>
 </hostedProfileSettings>
</getHostedProfilePageRequest>

 

View solution in original post

3 REPLIES 3

Hi takabyte,

 

The link is submitted when you create the token using the getHostedProfilePageRequest. You can enter a URL for the page the customer returns to within that request by specifying the hostedProfileReturnUrl and hostedProfileReturnUrlText. The value for the text can be up to 200 characters. If you do not pass this parameter,the default button text is Continue.

 

Thanks,
Joy

Joy
Administrator Administrator
Administrator

Joy,

 

Thanks for the reply. But I'm really not well-versed in XML, so I need to know more. How do you arrange the code to pass this new parameter? Her's what I tried, but it gave an error message:

 

$content =  

"<?xml version=\"1.0\" encoding=\"utf-8\"?>" .  "<getHostedProfilePageRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" .  MerchantAuthenticationBlock().

 "<customerProfileId>".$custId . "</customerProfileId>

<hostedProfileReturnUrl>http://managemyreo.com/postcustomerprofile.php</hostedProfileReturnUrl>  </getHostedProfilePageRequest>";

 

This is the error message:

 

The operation failed with the following errors: [E00003] The element 'getHostedProfilePageRequest' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd' has invalid child element 'hostedProfileReturnUrl' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'. List of possible elements expected: 'hostedProfileSettings' in namespace 'AnetApi/xml/v1/schema/AnetApiSchema.xsd'.

 

which is basically Greek to me. I understand PHP, but I don't understand XML. I just need someone to help me get a working script so I can get my client up on Authorize.net.

The XML documentation Page 66 at

http://developer.authorize.net/api/cim/

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>YourUserLogin</name>
    <transactionKey>YourTranKey</transactionKey>
  </merchantAuthentication>
  <customerProfileId>YourProfileID</customerProfileId>
  <hostedProfileSettings>
    <setting>
      <settingName>hostedProfileReturnUrl</settingName>
      <settingValue>https://blah.com/blah/</settingValue>
    </setting>
    <setting>
      <settingName>hostedProfileReturnUrlText</settingName>
      <settingValue>Continue to blah.</settingValue>
    </setting>
         <setting>
 <settingName>hostedProfilePageBorderVisible</settingName>
 <settingValue>true</settingValue>
 </setting>
 </hostedProfileSettings>
</getHostedProfilePageRequest>