- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
Solved! Go to Solution.
04-27-2012 11:36 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
04-30-2012 12:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
04-30-2012 12:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
04-30-2012 12:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
04-30-2012 12:45 PM
