We using recommended .net library (https://github.com/AuthorizeNet/sdk-dotnet) version 1.8.1. In the sandbox everything works fine. But as soon as we switch to real account we get this error in response. I check simalar threads. There was such issue with wrong xmlns. I have xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd" as it was suggested in those threads.
Below is the sample request we send. Nay ideas what wrong with it?
<?xml version="1.0" encoding="utf-16"?>
<ARBCreateSubscriptionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<subscription>
<name>PREMIUM-SITE-1</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
</paymentSchedule>
<amount>49.99</amount>
<payment>
<creditCard>
<cardNumber>6011000000000012</cardNumber>
<expirationDate>2015-12</expirationDate>
<cardCode>123</cardCode>
</creditCard>
</payment>
<billTo xsi:type="customerAddressType">
<firstName>Jacob</firstName>
<lastName>Khailo</lastName>
<company />
<address>30636 Old US 20</address>
<city>Elkhart </city>
<state>IN</state>
<zip>46514</zip>
<country />
<phoneNumber>574-575-5874</phoneNumber>
<faxNumber />
</billTo>
</subscription>
</ARBCreateSubscriptionRequest><?xml version="1.0" encoding="utf-16"?>
<ARBCreateSubscriptionRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
<subscription>
<name>PREMIUM-SITE-1</name>
<paymentSchedule>
<interval>
<length>1</length>
<unit>months</unit>
</interval>
</paymentSchedule>
<amount>49.99</amount>
<payment>
<creditCard>
<cardNumber>6011000000000012</cardNumber>
<expirationDate>2015-12</expirationDate>
<cardCode>123</cardCode>
</creditCard>
</payment>
<billTo xsi:type="customerAddressType">
<firstName>John</firstName>
<lastName>Down</lastName>
<company />
<address>1 Main St</address>
<city>Elkhart </city>
<state>IN</state>
<zip>46514</zip>
<country />
<phoneNumber>800-555-5555</phoneNumber>
<faxNumber />
</billTo>
</subscription>
</ARBCreateSubscriptionRequest>
Thank you,
Alex
Solved! Go to Solution.
โ07-14-2014 12:52 PM
Look at the "try it" sample on ARBCreateSubscriptionRequest
in here
โ07-14-2014 01:45 PM - edited โ07-14-2014 01:45 PM
Look at the "try it" sample on ARBCreateSubscriptionRequest
in here
โ07-14-2014 01:45 PM - edited โ07-14-2014 01:45 PM
Thank you!
I found what was wrong..
โ07-14-2014 04:38 PM
@afioletov wrote:Thank you!
I found what was wrong..
Care to explain what was wrong? I am getting the same error.
โ12-24-2015 07:54 AM
I ran into the same error message using 1.8.9. When setting up a subscription I used the "customerAddressType" object when assigning to "ARBSubscriptionType.billTo" when I should have been using the "nameAndAddressType".
โ03-10-2016 10:19 AM