cancel
Showing results for 
Search instead for 
Did you mean: 

ARB error code 00003

I keep receiving this error code which means "XML Parser Error"

 

Is it the code below??

 

$content ='<?xml version="1.0" encoding="utf-8"?>' .
        '<ARBCreateSubscriptionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">' .
        '<merchantAuthentication>'.
        '<name>' . $loginname . '</name>'.
        '<transactionKey>' . $transactionkey . '</transactionKey>'.
        '</merchantAuthentication>'.
       '<refId>' . $refid . '</refId>'.  
       '<subscription>'.
        '<paymentSchedule>'.
        '<interval>'.
        '<length>'. $length .'</length>'.
        '<unit>'. $unit .'</unit>'.
        '</interval>'.
        '<startDate>' . $startDate . '</startDate>'.
        '<totalOccurrences>'. $totalOccurrences . '</totalOccurrences>'.
        '</paymentSchedule>'.
        '<amount>'. $amount .'</amount>'.
        '<payment>'.
        '<creditCard>'.
        '<cardNumber>' . $cardNumber . '</cardNumber>'.
        '<expirationDate>' . $expirationDate . '</expirationDate>'.
        '<cardCode>' . $cardCode . '</cardCode>'.
        '</creditCard>'.
        '</payment>'.
        '<customer>'.
        '<email>'. $email . '</email>'.
        '</customer>'.
        '<billTo>'.
        '<firstName>'. $firstName . '</firstName>'.
        '<lastName>' . $lastName . '</lastName>'.
        '<address>' . $address . '</address>'.
        '<city>' . $city . '</city>'.
        '<state>' . $state . '</state>'.
        '<zip>' . $zip . '</zip>'.
        '</billTo>'.
        '</subscription>'.
        '</ARBCreateSubscriptionRequest>';


//send the xml via curl
$response = send_request_via_curl($host,$path,$content);

 

mraccine
Member
11 REPLIES 11

Tried to PM you... Not sure what is the best method to get you the code. Ideally, I'd like to give you the rawest version of the code, but also need to keep it more secure than posting on a message board.

 

Let me know the best method if you have time.

 

Thanks!

Weird that PMing didn't work. Did you get my PM with my email address? If not let me know and I'll resend it. 


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post