Reply
Contributor
Posts: 11
Registered: ‎04-23-2012
Accepted Solution

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>


Accepted Solutions
Highlighted
Solution
Accepted by topic author takabyte
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Ingration problem

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


All Replies
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: CIM Ingration problem

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

Contributor
Posts: 11
Registered: ‎04-23-2012

Re: CIM Ingration problem

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.

Highlighted
Solution
Accepted by topic author takabyte
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: CIM Ingration problem

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>