cancel
Showing results for 
Search instead for 
Did you mean: 

How to call GetHostedProfilePage method to get Token using java

Hi,

 

I am trying to inegrate Authorize.net CIM in to our application ,i have created empty customer profile and trying to create  an iframe popup, for that downloaded hostedProfilePaymentsShipping sample code in that we have to set the Token by calling   GetHostedProfilePage , but i could't find any class or method to execute this call.

 

Please advice

 

Thanks,

 

Rv Rao

rvraotrusted
Member
3 REPLIES 3

It's probably not in the SDK:

http://community.developer.authorize.net/t5/Integration-and-Testing/java-sdk-getHostedProfilePage-me...

 

You can of course get it by passing XML directly and then parsing the response:

 

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

 

TJPride
Expert

Thanks for the response.

 

Can you please let me know how to send this xml request to authorize.net from java and get the response.

 

 

 

Thanks

 

Rv Rao

I don't program in Java, so I can't give you specific code. But you can probably just Google for it and find out how fairly quickly.