<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: displaying CIM profile information with PHP SDK in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15212#M8689</link>
    <description>&lt;P&gt;Amazing! Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2011 17:14:43 GMT</pubDate>
    <dc:creator>andrewliu</dc:creator>
    <dc:date>2011-07-23T17:14:43Z</dc:date>
    <item>
      <title>displaying CIM profile information with PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15154#M8664</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display information, but its not displaying. Can someone help me figure this one out? I know its not a good idea to display information, but I'm doing this because it will help me understand how this SDK works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	require_once 'anet_php_sdk/AuthorizeNet.php';
    define("AUTHORIZENET_API_LOGIN_ID", "LOGIN_ID");
    define("AUTHORIZENET_TRANSACTION_KEY", "TRANSACTION_KEY");
    $request = new AuthorizeNetCIM;
    // Create new customer profile
//echo $_SESSION['user_id'];
	$customerProfile                    = new AuthorizeNetCustomer;
    $customerProfile-&amp;gt;description       = "Description of customer";
    $customerProfile-&amp;gt;merchantCustomerId= time();
    $customerProfile-&amp;gt;email             = "test@domain.com";
	$customerProfile-&amp;gt;cardNumber        = '4111111111111111';
	$customerProfile-&amp;gt;expirationDate    = "2021-04";
	//$customerProfile-&amp;gt;cardCode          = $cvv;
	
    $response = $request-&amp;gt;createCustomerProfile($customerProfile);
    if ($response-&amp;gt;isOk()) {
        $customerProfileId = $response-&amp;gt;getCustomerProfileId();
		echo $customerProfileId;

    }
	$customerProfileId = $response-&amp;gt;getCustomerProfileId();
echo $customerProfileId;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2011 03:02:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15154#M8664</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-21T03:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: displaying CIM profile information with PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15186#M8677</link>
      <description>&lt;P&gt;anyone have CIM experience?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2011 02:02:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15186#M8677</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-22T02:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: displaying CIM profile information with PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15188#M8678</link>
      <description>&lt;P&gt;The way you add a payment profile is wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;define('AUTHORIZENET_API_LOGIN_ID', 'LOGIN_ID');
define('AUTHORIZENET_TRANSACTION_KEY', 'TRANSACTION_KEY');

// Let's create a payment profile first.
$paymentProfile = new AuthorizeNetPaymentProfile();
$creditCard = $paymentProfile-&amp;gt;payment-&amp;gt;creditCard;
$creditCard-&amp;gt;cardNumber = '4111111111111111';
$creditCard-&amp;gt;expirationDate = '2021-04';
//$creditCard-&amp;gt;cardCode = $cvv;

// Customer profile comes next.
$customerProfile = new AuthorizeNetCustomer();
$customerProfile-&amp;gt;description = 'Description of customer';
$customerProfile-&amp;gt;merchantCustomerId = time();
$customerProfile-&amp;gt;email = 'test@domain.com';
$customerProfile-&amp;gt;paymentProfiles[] = $paymentProfile;

// Off it goes.
$request = new AuthorizeNetCIM();
$response = $request-&amp;gt;createCustomerProfile($customerProfile);

if($response-&amp;gt;isOk()) {
	$customerProfileId = $response-&amp;gt;getCustomerProfileId();
	echo $customerProfileId;
}
else {
	echo $response-&amp;gt;getErrorMessage();
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2011 08:21:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15188#M8678</guid>
      <dc:creator>Rick</dc:creator>
      <dc:date>2011-07-22T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: displaying CIM profile information with PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15212#M8689</link>
      <description>&lt;P&gt;Amazing! Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2011 17:14:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15212#M8689</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-23T17:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: displaying CIM profile information with PHP SDK</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15214#M8690</link>
      <description>&lt;P&gt;So essentially, I can just call out that profileId and get those credit card information and Display it to the user?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2011 17:35:51 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/displaying-CIM-profile-information-with-PHP-SDK/m-p/15214#M8690</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-23T17:35:51Z</dc:date>
    </item>
  </channel>
</rss>

