Reply
Highlighted
Member
Posts: 4
Registered: ‎03-11-2014
Accepted Solution

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] => 
)

Accepted Solutions
Highlighted
Solution
Accepted by topic author xeridea
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Retrieving email when using CIM.

[ Edited ]

Would echo the $result->xml work better?

View solution in original post


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

Re: Retrieving email when using CIM.

[ Edited ]

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

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

Highlighted
Member
Posts: 4
Registered: ‎03-11-2014

Re: Retrieving email when using CIM.

Here is what I am calling:

 

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

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

Re: Retrieving email when using CIM.

[ Edited ]

and how did you get the result?

and you are using the SDK?

Highlighted
Member
Posts: 4
Registered: ‎03-11-2014

Re: Retrieving email when using CIM.

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.

Highlighted
Solution
Accepted by topic author xeridea
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Retrieving email when using CIM.

[ Edited ]

Would echo the $result->xml work better?

Highlighted
Member
Posts: 4
Registered: ‎03-11-2014

Re: Retrieving email when using CIM.

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.