I have followed instructions of "Using Hosted Form" section of CIM_XML_GUIDE but getting following error on a new page (address bar - https://test.authorize.net/hosted/profile/manage) upon button click. I have used java api to generate token. Please let me know where I am doing wrong.
---------------------------
*******************
<!DOCTYPE html>
<html>
<head>
<title>CIM Test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<form method="post" action="https://test.authorize.net/hosted/profile/manage" id="formAuthorizeNetPopup" style="display: none;" >
<input type="hidden" name="Token" value="RhwE5BWBHy9FmbEospsgsU26CQ67ACB4+R5yhtNqnOcgUWLbFYhQ28MqoGeFAPalE/3jazCPXHLO6PWsL9P01PGCJtOwh5Dwf9TBJLTGs/PU4p8jAVg/vwSgsxbss/NvWjzebnwHNMLtHFPXG5ukGJ6gu2R1vkszmuhGNZHnlak+RNOCsMDGXsRyly1zl6pP" />
<input type="submit" value="Manage my payment and shipping information"/>
</form>
<input type="button" onclick= "document.getElementById('formAuthorizeNetPopup').submit();" value="Manage my payment and shipping information" />
</body>
</html>
***********************************
02-19-2015 08:40 PM
I fixed my own problem by giving correct url "https://test.authorize.net/profile/manage" in the form post. I can see CIM hosted form where in I can add/edit payment and shipping information.
The problem I currently have is I don't see any link in CIM hosted page to go back to merchant site. Documentation under Hosted Form section says there is a link. Can somebody please tell me as how to make a link visible in CIM hosted form?
02-20-2015 02:39 PM
Well again I fixed the problem. While getting token using GetHostedProfilePageRequest api, I have included the values for hostedProfileReturnUrl and hostedProfileReturnUrlText.
02-20-2015 04:51 PM