<?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: CIM - Adding Payment Profile in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33457#M17967</link>
    <description>&lt;P&gt;I changed the expiration date section in case it was being handled as MATH.&amp;nbsp; Still No GO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $expirationDate = "{$_POST['x_exp_year']}"."-"."{$_POST['x_exp_month']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Create customer payment profile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$request = new AuthorizeNetCIM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$paymentProfile = new AuthorizeNetPaymentProfile;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;customerType = "individual";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;cardNumber = "{$_POST['x_card_num']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;expirationDate = $expirationDate;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;createCustomerPaymentProfile($customerProfileId, $paymentProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;assertTrue($response-&amp;gt;isOk());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfileId = $response-&amp;gt;getPaymentProfileId();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2013 21:21:18 GMT</pubDate>
    <dc:creator>Drummin</dc:creator>
    <dc:date>2013-03-12T21:21:18Z</dc:date>
    <item>
      <title>CIM - Adding Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33456#M17966</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I had AIM working fine on my site but am now swithing to CIM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am processing in steps in which I first create the customer profile with the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetCIM; // Create new customer profile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $customerProfile = new AuthorizeNetCustomer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $customerProfile-&amp;gt;description = "Guest ID:$GuestIDnum Customer profile for $SiteTITLE";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $customerProfile-&amp;gt;merchantCustomerId= $GuestIDnum;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $customerProfile-&amp;gt;email = $_POST['x_email'];&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $response = $request-&amp;gt;createCustomerProfile($customerProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; if ($response-&amp;gt;isOk()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; $customerProfileId = $response-&amp;gt;getCustomerProfileId();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is working and $customerProfileId is saved to DB user table and to SESSION during this registration process.&amp;nbsp; The next step shows the CC form and I'm processing with this code, but I get the "white screen of death" and can't find where I've gone wrong with this code.&amp;nbsp; Can anyone spot the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$request = new AuthorizeNetCIM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$paymentProfile = new AuthorizeNetPaymentProfile;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;customerType = "individual";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;cardNumber = "{$_POST['x_card_num']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;expirationDate = "{$_POST['x_exp_year']}-{$_POST['x_exp_month']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;createCustomerPaymentProfile($customerProfileId, $paymentProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;assertTrue($response-&amp;gt;isOk());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfileId = $response-&amp;gt;getPaymentProfileId();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 21:09:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33456#M17966</guid>
      <dc:creator>Drummin</dc:creator>
      <dc:date>2013-03-12T21:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - Adding Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33457#M17967</link>
      <description>&lt;P&gt;I changed the expiration date section in case it was being handled as MATH.&amp;nbsp; Still No GO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $expirationDate = "{$_POST['x_exp_year']}"."-"."{$_POST['x_exp_month']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Create customer payment profile&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$request = new AuthorizeNetCIM;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;$paymentProfile = new AuthorizeNetPaymentProfile;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;customerType = "individual";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;cardNumber = "{$_POST['x_card_num']}";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfile-&amp;gt;payment-&amp;gt;creditCard-&amp;gt;expirationDate = $expirationDate;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $response = $request-&amp;gt;createCustomerPaymentProfile($customerProfileId, $paymentProfile);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;assertTrue($response-&amp;gt;isOk());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $paymentProfileId = $response-&amp;gt;getPaymentProfileId();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 21:21:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33457#M17967</guid>
      <dc:creator>Drummin</dc:creator>
      <dc:date>2013-03-12T21:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: CIM - Adding Payment Profile</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33498#M18008</link>
      <description>&lt;P&gt;Well after days of fighting with AuthorizeNet.php, I switched to AuthnetXML.class and at least have CIM working.&amp;nbsp; Still need to find out how to &lt;U&gt;apply refund using transaction_id&lt;/U&gt;.&amp;nbsp; Have not found that feature in AuthnetXML.class yet.&amp;nbsp; If anyone knows the best way to refund a transaction, please let me know, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2013 04:06:50 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/CIM-Adding-Payment-Profile/m-p/33498#M18008</guid>
      <dc:creator>Drummin</dc:creator>
      <dc:date>2013-03-14T04:06:50Z</dc:date>
    </item>
  </channel>
</rss>

