Reply
Member
Posts: 3
Registered: ‎06-07-2011

In CIM on the object returned by getCustomerProfileIds()

How do I iterate thru the xpath_xml->messages->ids->numericString Array?

What I have is

$obj_auth  = new AuthorizeNetCIM;
$obj_obj = $obj_auth ->getCustomerProfileIds();

I can get too; obj_obj->xpath_xml->messages->message->code but can't figure out how to get the ids.

Spent 2 hours trying multiple variations of foreach{$obj_obj->xpath_xml as $obj_id} {echo()} with no luck

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

Re: In CIM on the object returned by getCustomerProfileIds()

I think is just xpath_xml->ids and loop thru the array

Member
Posts: 3
Registered: ‎06-07-2011

Re: In CIM on the object returned by getCustomerProfileIds()

Ok now I feel like a fool. Thought ids was inside messages and wasted 4 hours trying to make that work. duh.

Well that worked, thanks!!!!