cancel
Showing results for 
Search instead for 
Did you mean: 

CIM Hosted Form - Rredirect Error

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.

---------------------------

Error

An unanticipated error occurred while processing this request. Please click your browser’s Back button to return to the previous page.
 
--------------------------
 
Following is the html form I am using:
 

*******************

<!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>
 

***********************************

 

 
smartk1977
Contributor
2 REPLIES 2

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?

smartk1977
Contributor

Well again I fixed the problem. While getting token using GetHostedProfilePageRequest api, I have included the values for hostedProfileReturnUrl and hostedProfileReturnUrlText.