cancel
Showing results for 
Search instead for 
Did you mean: 

API Upgrade

Is there a detailed guide for the API changes?   I see that Hosted CIM is beging deprecated.  It refers to use Accep Customer.   I took on  a client that is using the  CIM and we make transaction calls against it.   What is being affected.  Thanks for any help

glerler
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

To get an Accept Customer page, you would make a getHostedProfilePageRequest API call to 

Sandbox URL: https://apitest.authorize.net/xml/v1/request.api or 

Production URL: https://api.authorize.net/xml/v1/request.api  as the case may be, with  XML like the following:

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>YOUR_API_LOGIN</name>
    <transactionKey>YOUR_TRANSACTION_KEY</transactionKey>
  </merchantAuthentication>
  <customerProfileId>CUSTOMER_PROFILE_ID</customerProfileId>
  <hostedProfileSettings>
    <setting>
      <settingName>hostedProfileReturnUrl</settingName>
      <settingValue>https://YOURWEBSITE.com/return/</settingValue>
    </setting>
    <setting>
      <settingName>hostedProfileReturnUrlText</settingName>
      <settingValue>Continue to confirmation page.</settingValue>
    </setting>
          <setting>
                <settingName>hostedProfilePageBorderVisible</settingName>
                 <settingValue>true</settingValue>
          </setting>
 </hostedProfileSettings>
</getHostedProfilePageRequest>

If successful, the reponse will contain a token, like in the XML below: 

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <messages>
    <resultCode>Ok</resultCode>
    <message>
      <code>I00001</code>
      <text>Successful.</text>
    </message>
  </messages>
  <token>+ZeWDaUOPoQPRGTHcKd7DYbMfcAFDrhO8GPOFNt+ACzJnvkz+aWO0SYSAA9x602jAIKKfUHUt2ybwQRaG8LzHluuR5dRgsuh+kjarKvD0hpieGjLHmnz0LHmFv1Xe9P3zpmawqBCSB/d4jcSg9dAxecNBUzMwIuYzY+vGUGLUXgr9QPaRh93HqWZrV4Mbwop</token>
</getHostedProfilePageResponse>

You would then pass this token value to your form which posts to one of the following, in live mode

  

For the sandbox, substitute test for accept in the form action URL. For example:

https://test.authorize.net/customer/manage

 

To edit a payment profile, include paymentProfileId in your form's posted values: 

<form method="post" action="https://test.authorize.net/customer/editPayment"> <input type="hidden" name="token" value="HOSTED_PAGE_TOKEN"/> <input type="hidden" name="paymentProfileId" value="PROFILE_ID_TO_EDIT"/> ... </form>

See more details at http://developer.authorize.net/api/reference/index.html#customer-profiles-get-accept-customer-profil...

 

Powered by NexWebSites.com -
Certified Authorize.net developers

View solution in original post

NexusSoftware
Trusted Contributor
2 REPLIES 2

To get an Accept Customer page, you would make a getHostedProfilePageRequest API call to 

Sandbox URL: https://apitest.authorize.net/xml/v1/request.api or 

Production URL: https://api.authorize.net/xml/v1/request.api  as the case may be, with  XML like the following:

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>YOUR_API_LOGIN</name>
    <transactionKey>YOUR_TRANSACTION_KEY</transactionKey>
  </merchantAuthentication>
  <customerProfileId>CUSTOMER_PROFILE_ID</customerProfileId>
  <hostedProfileSettings>
    <setting>
      <settingName>hostedProfileReturnUrl</settingName>
      <settingValue>https://YOURWEBSITE.com/return/</settingValue>
    </setting>
    <setting>
      <settingName>hostedProfileReturnUrlText</settingName>
      <settingValue>Continue to confirmation page.</settingValue>
    </setting>
          <setting>
                <settingName>hostedProfilePageBorderVisible</settingName>
                 <settingValue>true</settingValue>
          </setting>
 </hostedProfileSettings>
</getHostedProfilePageRequest>

If successful, the reponse will contain a token, like in the XML below: 

<?xml version="1.0" encoding="utf-8"?>
<getHostedProfilePageResponse xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <messages>
    <resultCode>Ok</resultCode>
    <message>
      <code>I00001</code>
      <text>Successful.</text>
    </message>
  </messages>
  <token>+ZeWDaUOPoQPRGTHcKd7DYbMfcAFDrhO8GPOFNt+ACzJnvkz+aWO0SYSAA9x602jAIKKfUHUt2ybwQRaG8LzHluuR5dRgsuh+kjarKvD0hpieGjLHmnz0LHmFv1Xe9P3zpmawqBCSB/d4jcSg9dAxecNBUzMwIuYzY+vGUGLUXgr9QPaRh93HqWZrV4Mbwop</token>
</getHostedProfilePageResponse>

You would then pass this token value to your form which posts to one of the following, in live mode

  

For the sandbox, substitute test for accept in the form action URL. For example:

https://test.authorize.net/customer/manage

 

To edit a payment profile, include paymentProfileId in your form's posted values: 

<form method="post" action="https://test.authorize.net/customer/editPayment"> <input type="hidden" name="token" value="HOSTED_PAGE_TOKEN"/> <input type="hidden" name="paymentProfileId" value="PROFILE_ID_TO_EDIT"/> ... </form>

See more details at http://developer.authorize.net/api/reference/index.html#customer-profiles-get-accept-customer-profil...

 

Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Thanks

Go me in the direction I was looking for