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);
10-12-2009 12:45 PM
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!
01-11-2012 12:53 AM
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.
01-12-2012 06:37 AM