Reply
Contributor
Posts: 11
Registered: ‎11-17-2012

Strange Error

I am getting a strange error: 

 

AuthorizeNetCIM_Response Object
(
    [xml] => SimpleXMLElement Object
        (
            [messages] => SimpleXMLElement Object
                (
                    [resultCode] => Error
                    [message] => SimpleXMLElement Object
                        (
                            [code] => E00003
                            [text] => Name cannot begin with the '0' character, hexadecimal value 0x30. Line 2, position 342.
                        )

                )

        )

 

 

Any idea what could be causing this?

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Strange Error

that a xml parser error. check you input xml.

Contributor
Posts: 11
Registered: ‎11-17-2012

Re: Strange Error

Can you be a bit more specific? I am not using XML but am sending it via PHP arrays.
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Strange Error

which url are you sending the CIM request?

Contributor
Posts: 11
Registered: ‎11-17-2012

Re: Strange Error

Contributor
Posts: 11
Registered: ‎11-17-2012

Re: Strange Error

					$transaction = new AuthorizeNetTransaction;
					$transaction->amount = $order_total;
					$transaction->customerProfileId = $auth_net_cust_id;
					$transaction->customerPaymentProfileId = $paymentProfileId;
					$transaction->customerShippingAddressId = $customerAddressId;
					
					$request = new AuthorizeNetCIM;
					$response = $request->createCustomerProfileTransaction("AuthOnly", $transaction);

 this is the code i am using that is getting this error returned.

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Strange Error

that is using the xml for the transaction. Might need to run some debug in createCustomerProfileTransaction to see which data field is having a 0.

Contributor
Posts: 11
Registered: ‎11-17-2012

Re: Strange Error

Can you make any suggestions on the debug? I have verified that the profile/payment/shipping ids are not 0 when i pass them.
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Strange Error

not sure, not a php developer, but since it convert the data to xml, it might be possible to get the xml from the transaction object during the send to authorize.net.