I am using CIM and need to be able to retrieve the email address I set for a customer profile. I can set it fine, but when I get the customer profile, it is not there, I just get the payment and shipping information. Using PHP.
example return:
Array ( [status] => success [payment] => SimpleXMLElement Object ( [customerType] => individual [billTo] => SimpleXMLElement Object ( [firstName] => Micheal [lastName] => Kelso [company] => Ashton Kulas [address] => 123 Main Street [city] => Point Place [state] => WI [zip] => 54720 [country] => US [phoneNumber] => 678-777-8888 ) [customerPaymentProfileId] => 22380887 [payment] => SimpleXMLElement Object ( [creditCard] => SimpleXMLElement Object ( [cardNumber] => XXXX1111 [expirationDate] => XXXX ) ) ) [address] => )
Solved! Go to Solution.
03-11-2014 07:47 AM
Would echo the $result->xml work better?
03-11-2014 08:37 AM - edited 03-11-2014 08:37 AM
Look to me you are using GetCustomerPaymentProfile and not GetCustomerProfile, which do return the email
doc is here http://developer.authorize.net/api/cim/
03-11-2014 07:52 AM - edited 03-11-2014 07:52 AM
Here is what I am calling:
$this->anetCIM->getCustomerProfile($entityInfo->customer_id);
03-11-2014 08:04 AM
and how did you get the result?
and you are using the SDK?
03-11-2014 08:11 AM - edited 03-11-2014 08:18 AM
Not sure what you are asking. I create a profile, then call getCustomerProfile on the returned customer id. To check what is returned, I just use var_dump on the return object. There are no addresses under the addresses at the bottom because they are not needed for our purposes.
03-11-2014 08:17 AM
Would echo the $result->xml work better?
03-11-2014 08:37 AM - edited 03-11-2014 08:37 AM
Just looked at my payment model, I was actually just returning part of the response in a more friendly version for my app, but wasn't returning the profile information. Thank you for help.
03-11-2014 10:57 AM