- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
โ07-25-2017 07:51 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Manage Profiles https://accept.authorize.net/customer/manage
- Add Payment Profile https://accept.authorize.net/customer/addPayment
- Add Shipping Profile https://accept.authorize.net/customer/addShipping
- Edit Payment Profile https://accept.authorize.net/customer/editPayment
- Edit Shipping Profile https://accept.authorize.net/customer/editShipping
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...
Certified Authorize.net developers

โ07-26-2017 02:53 AM - edited โ07-26-2017 02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Manage Profiles https://accept.authorize.net/customer/manage
- Add Payment Profile https://accept.authorize.net/customer/addPayment
- Add Shipping Profile https://accept.authorize.net/customer/addShipping
- Edit Payment Profile https://accept.authorize.net/customer/editPayment
- Edit Shipping Profile https://accept.authorize.net/customer/editShipping
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...
Certified Authorize.net developers

โ07-26-2017 02:53 AM - edited โ07-26-2017 02:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
Go me in the direction I was looking for
โ07-27-2017 10:47 AM

