cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving email when using CIM.

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] => 
)
xeridea
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Would echo the $result->xml work better?

View solution in original post

6 REPLIES 6

Look to me you are using GetCustomerPaymentProfile and not GetCustomerProfile, which do return the email

doc is here http://developer.authorize.net/api/cim/

RaynorC1emen7
Expert

Here is what I am calling:

 

$this->anetCIM->getCustomerProfile($entityInfo->customer_id);

and how did you get the result?

and you are using the SDK?

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.

Would echo the $result->xml work better?

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.