Hi Everybody,
I dont know why this is wrong, can you let me know how to fix it ? It works fine some months ago.
<?xml version="1.0" encoding="utf-8"?> <getHostedProfilePageRequest xmlns="https://api.authorize.net/xml/v1/schema/AnetApiSchema.xsd"> <merchantAuthentication> <name>' . MODULE_PAYMENT_AUTHORIZENET_CIM_LOGIN . '</name> <transactionKey>' . MODULE_PAYMENT_AUTHORIZENET_CIM_TRANSACTION_KEY . '</transactionKey> </merchantAuthentication> <customerProfileId>' . $customers_info->fields['cim_customer_profile_id'] . '</customerProfileId> <hostedProfileSettings> <setting> <settingName>hostedProfilePageBorderVisible</settingName> <settingValue>false</settingValue> </setting> <setting> <settingName>hostedProfileIFrameCommunicatorUrl</settingName> <settingValue>' . zen_href_link(FILENAME_ACCOUNT, '', true) . '</settingValue> </setting> </hostedProfileSettings> </getHostedProfilePageRequest>
This is my response from Authorize.net
<?xml version="1.0" encoding="utf-8"?><ErrorResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><messages><resultCode>Error</resultCode><message><code>E00045</code><text>The root node does not reference a valid XML namespace.</text></message></messages></ErrorResponse>
Thanks.
Solved! Go to Solution.
I think it only work if the xmlns is exactly
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
02-28-2013 04:31 AM
I think it only work if the xmlns is exactly
<getHostedProfilePageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
02-28-2013 04:31 AM
It works fine. Thank you so much.
03-04-2013 07:57 AM