I added the new hostedProfileBillingAddressOptions=showNone option to my getHostedProfilePage request:
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>*</name> <transactionKey>*</transactionKey> </merchantAuthentication> <customerProfileId>*</customerProfileId> <hostedProfileSettings> <setting> <settingName>hostedProfileIFrameCommunicatorUrl</settingName> <settingValue>https://localhost:8443/cis/contentx/IframeCommunicator.html</settingValue> </setting> <setting> <settingName>hostedProfilePageBorderVisible</settingName> <settingValue>false</settingValue> </setting> <setting> <settingName>hostedProfileCardCodeRequired</settingName> <settingValue>true</settingValue> </setting> <setting> <settingName>hostedProfileBillingAddressOptions</settingName> <settingValue>showNone</settingValue> </setting> </hostedProfileSettings> </getHostedProfilePageRequest>
However, the displayed hosted form still shows the entire "Billing Information" section.
I am not using the Accept.js api, but the older "contentx" IFrame hosted form with the https://*.authorize.net/profile/ url. Is the hostedProfileBillingAddressOptions=showNone option available for the /profile/ hosted form?
Solved! Go to Solution.
07-08-2016 04:27 AM - edited 07-08-2016 04:38 AM
We need to make that clearer in the documentation. The new parameters only work with the new /customer hosted pages.
It should be a very simple move over to new hosted pages, to test in sandbox simple use the /customer url.
07-08-2016 11:35 AM
We need to make that clearer in the documentation. The new parameters only work with the new /customer hosted pages.
It should be a very simple move over to new hosted pages, to test in sandbox simple use the /customer url.
07-08-2016 11:35 AM
That's actually what I did after I asked the question -- I replaced /profile/ with /customer/, and it does seem to be working.
07-08-2016 11:39 AM