authorize.net getCustomerProfile example

Here’s an example of how to get use getCustomerProfile() with authorize.net:

// define your api key and do your include 
define('AUTHORIZENET_API_LOGIN_ID', 'xxxxx');
define('AUTHORIZENET_TRANSACTION_KEY', 'xxxxxxx');

// include the sdk
require_once('/lib/AuthorizeNet.php');


// now make the request
$request = new AuthorizeNetCIM;
$response = $request->getCustomerProfile($customerProfileId);

You will have a nice XML (or SOAP) response that you can parse and use the data from.

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips, Web Development and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *