<?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: PHP CIM SDK creating profiles and displaying information help in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15340#M8747</link>
    <description>&lt;P&gt;The Customer Information Manager (CIM) is constructed so that individual customers may have multiple payment options on file.&amp;nbsp; Due to this design, it is necessary to provide both a Customer Profile and a Payment Profile when you choose to actually cahrge a customer. In order to retrieve and display information about a customer profile, you will want to look at the getCustomerProfile method.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2011 23:25:42 GMT</pubDate>
    <dc:creator>Trevor</dc:creator>
    <dc:date>2011-07-27T23:25:42Z</dc:date>
    <item>
      <title>PHP CIM SDK creating profiles and displaying information help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15282#M8720</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if someone can help me understand the PHP SDK. I'm new to this and would like some light shining my way please. I've been trying to figure this out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have two requests: customer profile and payment profile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    // Create new customer profile
    $request = new AuthorizeNetCIM;
    $customerProfile = new AuthorizeNetCustomer;
    $customerProfile-&amp;gt;description = "Description of customer";
    $customerProfile-&amp;gt;merchantCustomerId = time().rand(1,10);
    $customerProfile-&amp;gt;email = "blahblahblah@domain.com";
	$response = $request-&amp;gt;createCustomerProfile($customerProfile);
	if($response-&amp;gt;isOk()){
	$customerProfileId = $response-&amp;gt;getCustomerProfileId();
	} else {echo $response-&amp;gt;getErrorMessage();}
	
	
    // Add payment profile.
    $paymentProfile = new AuthorizeNetPaymentProfile;
    $paymentProfile-&amp;gt;customerType = "individual";
    $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;cardNumber = "4111111111111111";
    $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;expirationDate = "2015-10";
	$customerProfile-&amp;gt;paymentProfiles[] = $paymentProfile;
	$response = $request-&amp;gt;createCustomerPaymentProfile($customerProfileId, $paymentProfile);
	if($response-&amp;gt;isOk()){
	$paymentProfileId = $response-&amp;gt;getPaymentProfileId();&lt;BR /&gt;echo $paymentProfileId; &lt;BR /&gt;} else {echo $response-&amp;gt;getErrorMessage();}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to echo out both customer profile id and payment profile id. Do I need to have two id's? can't they both just be one id? If so, whats the best way to integrate the two to have one id? Also, how would I echo out the information itself (email, cardNumber, etc...). I know its not a good thing to echo out cards, but I would like to echo out last 4 digit so users can choose their different types of cards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2011 04:09:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15282#M8720</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-26T04:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: PHP CIM SDK creating profiles and displaying information help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15326#M8742</link>
      <description>&lt;P&gt;Any idea on this subject?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 18:46:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15326#M8742</guid>
      <dc:creator>andrewliu</dc:creator>
      <dc:date>2011-07-27T18:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: PHP CIM SDK creating profiles and displaying information help</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15340#M8747</link>
      <description>&lt;P&gt;The Customer Information Manager (CIM) is constructed so that individual customers may have multiple payment options on file.&amp;nbsp; Due to this design, it is necessary to provide both a Customer Profile and a Payment Profile when you choose to actually cahrge a customer. In order to retrieve and display information about a customer profile, you will want to look at the getCustomerProfile method.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 23:25:42 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-CIM-SDK-creating-profiles-and-displaying-information-help/m-p/15340#M8747</guid>
      <dc:creator>Trevor</dc:creator>
      <dc:date>2011-07-27T23:25:42Z</dc:date>
    </item>
  </channel>
</rss>

