<?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: Is PHP/Curl not working on CIM updates? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47023#M23753</link>
    <description>&lt;P&gt;I put a router before it - I'll bet there is a port that needs to be opened.&lt;/P&gt;&lt;P&gt;Would it be 443?&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2014 01:52:17 GMT</pubDate>
    <dc:creator>dcassara</dc:creator>
    <dc:date>2014-09-10T01:52:17Z</dc:date>
    <item>
      <title>Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46965#M23727</link>
      <description>&lt;P&gt;Is PHP/Curl not working on CIM updates?&lt;BR /&gt;This program was working and it just stopped about a week or two ago. - we don't use it very often.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, I have my sandbox setup and am not seeing an update into CIM - same as the live system - from the PHP/Curl program that was working. &amp;nbsp;&lt;BR /&gt;How do I trace the attempt?&lt;BR /&gt;I've debugged the program to see that all required fields are correct, and I'm not getting an error code - it's just not updating.&lt;BR /&gt;Does anyone here actually help out on code? &amp;nbsp;Maybe something has been deprecated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2014 23:44:09 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46965#M23727</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-08T23:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46967#M23728</link>
      <description>&lt;P&gt;can you post the xml that your are trying to update a customer/payment profile&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 00:32:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46967#M23728</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-09T00:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46969#M23729</link>
      <description>&lt;P&gt;and xxxxx out sensitive info.&lt;/P&gt;&lt;P&gt;there also php sample code &lt;A target="_blank" href="http://developer.authorize.net/downloads/samplecode/"&gt;http://developer.authorize.net/downloads/samplecode/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 01:01:43 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46969#M23729</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-09T01:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46971#M23730</link>
      <description>&lt;P&gt;This is strange - I had an echo in that was showing the XML - now I'm getting no response at all - blank screen.&lt;BR /&gt;I'll figure this out and then post it.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 01:09:22 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46971#M23730</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T01:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46973#M23731</link>
      <description>&lt;P&gt;I'm getting&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Notice: Undefined property: AuthNetCim::$resultsCode&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;on echo $cim - that's probably why it's not working, right?&lt;BR /&gt;I'm missing something.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 02:37:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46973#M23731</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T02:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46975#M23732</link>
      <description>&lt;P&gt;OK - echo $cim still gets an error, so I displayed all the fields the previous programmer was passing.&lt;BR /&gt;(not showing the account and transactions ids - they are correct):&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;paymentType-creditcard&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cardNumber-4111111111111111&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;expirationDate-2017-04&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_firstName-D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_lastName-Cass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_address-23 Trail Dr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_state-MO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_zip-63367&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;billTo_country-US&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipto_firstName-D&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipto_lastName-Cass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipTo_address-23 Trail Dr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipTo_city-Lake St. Louis&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipTo_state-MO&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipTo_zip-63367&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shipTo_country-US&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;description-Cass, D&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;email-x@csiportal.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;customerType-individual&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything else required?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:09:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46975#M23732</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T03:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46977#M23733</link>
      <description>&lt;P&gt;and here's the PHP code.&lt;BR /&gt;Now, I didn't write this but have to have this functional asap - a lot of pressure. &amp;nbsp;I'm reading everything I can find, but if you can help, I'd really appreciate it.&lt;BR /&gt;&lt;BR /&gt;Remember - it's for CIM - I'm trying to get the ProfileID then next, get the PaymentProfileID.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;$api_login_id='999999999999';&lt;BR /&gt;$api_transaction_key='999999999999999';&lt;BR /&gt;$serverName = "CASS\SQLEXPRESS";&lt;BR /&gt;$connectionInfo = array( "Database"=&amp;gt;"XXXX", "UID"=&amp;gt;"xxxxxxx", "PWD"=&amp;gt;"xxxxx");&lt;BR /&gt;$params = array();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (isset($_POST["txtcustomerID"]))&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;if (isset($_POST["txtcustomerProfileID"]))&lt;BR /&gt;{&lt;BR /&gt;if ($_POST["txtcustomerProfileID"]=="0")&lt;BR /&gt;{&lt;BR /&gt;$ccexp=$_POST["cc_expiryyy"]."-".$_POST["cc_expirymm"];&lt;BR /&gt;$fname=$_POST["btfname"];&lt;BR /&gt;$lname=$_POST["btlname"];&lt;/P&gt;&lt;P&gt;create_update_customer_profile($_POST["cc_num"],$ccexp,$fname,$lname,$_POST["btaddr"],$_POST["btcity"],$_POST["btstate"],&lt;BR /&gt;$_POST["btzip"],$_POST["btemail"],'100.00',$_POST["txtcustomerID"],"","");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;$ccexp=$_POST["cc_expiryyy"]."-".$_POST["cc_expirymm"];&lt;BR /&gt;//$cname = split(" ", $_POST["btname"]);&lt;BR /&gt;$fname=$_POST["btfname"];&lt;BR /&gt;$lname=$_POST["btlname"];&lt;BR /&gt;create_update_customer_profile($_POST["cc_num"],$ccexp,$fname,$lname,$_POST["btaddr"],$_POST["btcity"],$_POST["btstate"],&lt;BR /&gt;$_POST["btzip"],$_POST["btemail"],'100.00',$_POST["txtcustomerID"],$_POST["txtcustomerProfileID"],$_POST["txtcustomerPaymentProfileID"]);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////FUNCTIONS FOR CIM//////////////////////////&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function create_update_customer_profile($cardNumber,$expirationDate,$billTo_firstName,$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,$billTo_zip,&lt;BR /&gt;$email,$add_amount,$custid,$custPrID,$custPayPrID)&lt;BR /&gt;{&lt;BR /&gt;require('include/authorizenet.cim.class.php');&lt;BR /&gt;global $api_login_id,$api_transaction_key;&lt;BR /&gt;// createCustomerProfileRequest()&lt;BR /&gt;$cim = new AuthNetCim($api_login_id, $api_transaction_key, true); // Need to change here mohit&lt;BR /&gt;$shipTo_firstName=$billTo_firstName;&lt;BR /&gt;$shipTo_lastName=$billTo_lastName;&lt;BR /&gt;$shipTo_address=$billTo_address;&lt;BR /&gt;$shipTo_city=$billTo_city;&lt;BR /&gt;$shipTo_state=$billTo_state;&lt;BR /&gt;$shipTo_zip=$billTo_zip;&lt;BR /&gt;&lt;BR /&gt;// Choose a payment type - (creditCard or bankAccount) REQUIRED&lt;BR /&gt;&lt;BR /&gt;//global $cardNumber,$expirationDate,$billTo_firstName,$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,$billTo_zip,$shipTo_firstName,$shipTo_lastName,&lt;BR /&gt;$shipTo_address,$shipTo_city,$shipTo_state,$shipTo_zip,$email;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$cim-&amp;gt;setParameter('paymentType', 'creditCard');&lt;BR /&gt;$cim-&amp;gt;setParameter('cardNumber', $cardNumber);&lt;BR /&gt;$cim-&amp;gt;setParameter('expirationDate', $expirationDate); // (YYYY-MM)&lt;/P&gt;&lt;P&gt;echo "&amp;lt;BR&amp;gt;paymentType-creditcard&amp;lt;BR&amp;gt;cardNumber-".$cardNumber."&amp;lt;BR&amp;gt;expirationDate-".$expirationDate."&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;/P&gt;&lt;P&gt;// Some Billing address information is required and some is optional&lt;BR /&gt;// depending on your Address Verification Service (AVS) settings&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_firstName', $billTo_firstName); // Up to 50 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_lastName', $billTo_lastName); // Up to 50 characters (no symbols)&lt;BR /&gt;//$cim-&amp;gt;setParameter('billTo_company', 'Acme, Inc.'); // Up to 50 characters (no symbols) (optional)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_address', $billTo_address); // Up to 60 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_city', $billTo_city); // Up to 40 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_state', $billTo_state); // A valid two-character state code (US only) (optional)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_zip', $billTo_zip); // Up to 20 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('billTo_country', 'US'); // Up to 60 characters (no symbols) (optional)&lt;/P&gt;&lt;P&gt;echo "&amp;lt;BR&amp;gt;billTo_firstName-".$billTo_firstName."&amp;lt;BR&amp;gt;billTo_lastName-".$billTo_lastName."&amp;lt;BR&amp;gt;billTo_address-".$billTo_address."&amp;lt;BR&amp;gt;";&lt;BR /&gt;echo "&amp;lt;BR&amp;gt;billTo_state-".$billTo_state."&amp;lt;BR&amp;gt;billTo_zip-".$billTo_zip."&amp;lt;BR&amp;gt;billTo_country-US&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;/P&gt;&lt;P&gt;//$cim-&amp;gt;setParameter('billTo_phoneNumber', '555-555-5555'); // Up to 25 digits (no letters) (optional)&lt;BR /&gt;//$cim-&amp;gt;setParameter('billTo_faxNumber', '444-444-4444'); // Up to 25 digits (no letters) (optional)&lt;BR /&gt;&lt;BR /&gt;// In this method, shipping information is required because it reduces an extra&lt;BR /&gt;// step from having to create a shipping address in the future, therefore you can simply update it when needed.&lt;BR /&gt;// You can populate it with the billing info if you don't have an order form with shipping details.&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_firstName', $shipTo_firstName); // Up to 50 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_lastName', $shipTo_lastName); // Up to 50 characters (no symbols)&lt;BR /&gt;//$cim-&amp;gt;setParameter('shipTo_company', 'Acme, Inc.'); // Up to 50 characters (no symbols) (optional)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_address', $shipTo_address); // Up to 60 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_city', $shipTo_city); // Up to 40 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_state', $shipTo_state); // A valid two-character state code (US only) (optional)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_zip', $shipTo_zip); // Up to 20 characters (no symbols)&lt;BR /&gt;$cim-&amp;gt;setParameter('shipTo_country', 'US'); // Up to 60 characters (no symbols) (optional)&lt;/P&gt;&lt;P&gt;echo "shipto_firstName-".$shipTo_firstName."&amp;lt;BR&amp;gt;shipto_lastName-".$shipTo_lastName."&amp;lt;BR&amp;gt;shipTo_address-".$shipTo_address."&amp;lt;BR&amp;gt;shipTo_city-".&lt;BR /&gt;$shipTo_city."&amp;lt;BR&amp;gt;shipTo_state-".$shipTo_state."&amp;lt;BR&amp;gt;shipTo_zip-".$shipTo_zip."&amp;lt;BR&amp;gt;shipTo_country-US&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;/P&gt;&lt;P&gt;//$cim-&amp;gt;setParameter('shipTo_phoneNumber', '555-555-5555'); // Up to 25 digits (no letters) (optional)&lt;BR /&gt;//$cim-&amp;gt;setParameter('shipTo_faxNumber', '444-444-4444'); // Up to 25 digits (no letters) (optional)&lt;BR /&gt;&lt;BR /&gt;// Merchant-assigned reference ID for the request&lt;BR /&gt;//$cim-&amp;gt;setParameter('refId', 'my unique ref id'); // Up to 20 characters (optional)&lt;BR /&gt;&lt;BR /&gt;// merchantCustomerId must be unique across all profiles&lt;BR /&gt;//$cim-&amp;gt;setParameter('merchantCustomerId', 'my unique custid2'); // Up to 20 characters (optional)&lt;BR /&gt;&lt;BR /&gt;// description must be unique across all profiles, if defined&lt;BR /&gt;$cim-&amp;gt;setParameter('description', $billTo_lastName.', '.$billTo_firstName); // Up to 255 characters (optional)&lt;/P&gt;&lt;P&gt;echo "description-".$billTo_lastName.', '.$billTo_firstName."&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;BR /&gt;&lt;BR /&gt;// A receipt from authorize.net will be sent to the email address defined here&lt;/P&gt;&lt;P&gt;$cim-&amp;gt;setParameter('email', $email); // Up to 255 characters (optional)&lt;BR /&gt;$cim-&amp;gt;setParameter('customerType', 'individual'); // individual or business (optional)&lt;BR /&gt;&lt;BR /&gt;echo "email-".$email."&amp;lt;BR&amp;gt;customerType-individual&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;";&lt;/P&gt;&lt;P&gt;if ($custPrID=="")&lt;BR /&gt;{&lt;BR /&gt;$cim-&amp;gt;createCustomerProfileRequest();&lt;BR /&gt;$cust_profile_id="";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if ($cim-&amp;gt;isSuccessful())&lt;BR /&gt;{&lt;BR /&gt;$cust_profile_id = $cim-&amp;gt;customerProfileId;&lt;BR /&gt;echo "&amp;lt;table align=center&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;font style=font-family:arial;font-size:1.5em&amp;gt;&amp;lt;B&amp;gt;&amp;lt;BR&amp;gt;Profile created!&amp;lt;/b&amp;gt;&amp;lt;font style=font-&lt;BR /&gt;family:arial;font-size:1em&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;insertCustomerProfileID($cust_profile_id, $custid,$billTo_firstName,$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,&lt;BR /&gt;$billTo_zip,$email);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;if($cim-&amp;gt;code=='E00039')&lt;BR /&gt;{&lt;BR /&gt;if(strpos($cim-&amp;gt;text,"A duplicate record with ID") !== false)&lt;BR /&gt;{&lt;BR /&gt;$cust_profile_id=substr($cim-&amp;gt;text,strpos($cim-&amp;gt;text,"ID")+3,8);&lt;BR /&gt;$cust_profile_id=trim($cust_profile_id);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo "&amp;lt;table align=center&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;font style=font-family:arial;font-size:1.5em&amp;gt;&amp;lt;B&amp;gt;&amp;lt;BR&amp;gt;Profile NOT created!&amp;lt;/b&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;font&lt;BR /&gt;style=font-family:arial;font-size:1em&amp;gt;Authorize.net could not be reached at this time. &amp;lt;BR&amp;gt;Please try again later&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;echo "&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;font style=font-family:arial;font-size:.75em&amp;gt;&amp;lt;a href=index.asp style=color:blue&amp;gt;&amp;lt;u&amp;gt;Return&amp;lt;/u&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;$customer_payment_profile_id = get_customer_payment_profileid($cust_profile_id);&lt;BR /&gt;if ($custPrID=="")&lt;BR /&gt;{&lt;BR /&gt;insertCustomerPaymentProfileIDAndCustomerProfileID($cust_profile_id,$customer_payment_profile_id,$custid,$billTo_firstName,&lt;BR /&gt;$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,$billTo_zip,$email);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;// process payment&lt;BR /&gt;if($customer_payment_profile_id !='' || $customer_payment_profile_id != '0')&lt;BR /&gt;{&lt;BR /&gt;$transaction_id = cim_transaction($cust_profile_id,$customer_payment_profile_id,$add_amount);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;$cim-&amp;gt;setParameter('customerProfileId', $custPrID); // Numeric (required)&lt;BR /&gt;// Payment gateway assigned ID associated with the customer payment profile&lt;BR /&gt;$cim-&amp;gt;setParameter('customerPaymentProfileId', $custPayPrID); // Numeric (required)&lt;BR /&gt;$cim-&amp;gt;updateCustomerPaymentProfileRequest();&lt;BR /&gt;echo "&amp;lt;table align=center&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;font style=font-family:arial;font-size:1.5em&amp;gt;&amp;lt;B&amp;gt;&amp;lt;BR&amp;gt;Profile updated. &amp;lt;br /&amp;gt;";&lt;BR /&gt;// process payment&lt;BR /&gt;$transaction_id = cim_transaction($custPrID,$custPayPrID,$add_amount);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function insertCustomerProfileID($CustomerProfileID,$custid,$fname,$lname,$btaddr,$btcity,$btstate,$btzip,$btemail)&lt;BR /&gt;{&lt;BR /&gt;global $serverName,$connectionInfo,$params;&lt;BR /&gt;&lt;BR /&gt;$conn = sqlsrv_connect( $serverName, $connectionInfo);&lt;BR /&gt;$sql_update = "UPDATE Contacts SET&lt;BR /&gt;Var116='$CustomerProfileID',var122='$fname',var123='$lname',var29='$btaddr',var30='$btcity',var31='$btstate',var32='$btzip',var17='$btemail' WHERE ID =".$custid;&lt;BR /&gt;sqlsrv_query( $conn, $sql_update, $params);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;function insertCustomerPaymentProfileIDAndCustomerProfileID($CustomerProfileID,$CustomerPaymentProfileID,$custid,$fname,$lname,$btaddr,$btcity,$btstate,$btzip,&lt;BR /&gt;$btemail)&lt;BR /&gt;{&lt;BR /&gt;global $serverName,$connectionInfo,$params;&lt;BR /&gt;&lt;BR /&gt;$conn = sqlsrv_connect( $serverName, $connectionInfo);&lt;BR /&gt;$sql_update = "UPDATE Contacts SET Var116 ='$CustomerProfileID',Var117&lt;BR /&gt;='$CustomerPaymentProfileID',var122='$fname',var123='$lname',var29='$btaddr',var30='$btcity',var31='$btstate',var32='$btzip',var17='$btemail' WHERE ID =".$custid;&lt;BR /&gt;sqlsrv_query( $conn, $sql_update, $params);&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function get_customer_payment_profileid($cust_profile_id)&lt;BR /&gt;{&lt;BR /&gt;require_once('include/authorizenet.cim.class.php');&lt;BR /&gt;global $api_login_id,$api_transaction_key;&lt;BR /&gt;&lt;BR /&gt;$cim = new AuthNetCim($api_login_id, $api_transaction_key, true); // Need to chage here mohit&lt;/P&gt;&lt;P&gt;$cim-&amp;gt;setParameter('customerProfileId', $cust_profile_id); // Numeric (required)&lt;BR /&gt;$cim-&amp;gt;getCustomerProfileRequest();&lt;/P&gt;&lt;P&gt;if ($cim-&amp;gt;isSuccessful())&lt;BR /&gt;{&lt;BR /&gt;$str = $cim-&amp;gt;response;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;////////////WRITE AND READ XML FILE///////////////////////////&lt;/P&gt;&lt;P&gt;if(!empty($str))&lt;BR /&gt;{&lt;BR /&gt;$str1 = explode("&amp;lt;?xml",$str);&lt;BR /&gt;$str2 = "&amp;lt;?xml ". $str1[1];&lt;/P&gt;&lt;P&gt;$myFile = "cim_xml_files/cust_profile_id_".$cust_profile_id.".xml";&lt;BR /&gt;$fh = fopen($myFile, 'w');&lt;BR /&gt;$fh = fopen($myFile, 'w') or die("can't open file");&lt;BR /&gt;$stringData = "$str2";&lt;BR /&gt;fwrite($fh, $stringData);&lt;BR /&gt;fclose($fh);&lt;BR /&gt;&lt;BR /&gt;$XMLpath=$myFile;&lt;BR /&gt;&lt;BR /&gt;$xml_data = fopen($XMLpath, "r");&lt;BR /&gt;$XMLfile=fread($xml_data,filesize($XMLpath));&lt;BR /&gt;$XMLparser = xml_parser_create();&lt;BR /&gt;xml_parse_into_struct($XMLparser, $XMLfile, $values, $index);&lt;BR /&gt;xml_parser_free($XMLparser);&lt;BR /&gt;&lt;BR /&gt;for($i=0;$i&amp;lt;count($values);$i++)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;if(!empty($values[$i]['value']))&lt;BR /&gt;{&lt;BR /&gt;echo $values[$i]['tag'];&lt;BR /&gt;echo "=";&lt;BR /&gt;echo $values[$i]['value'];&lt;BR /&gt;}&lt;BR /&gt;echo "&amp;lt;br&amp;gt;";&lt;BR /&gt;*/&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;return $cim-&amp;gt;customerPaymentProfileId;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function cim_transaction($customerProfileId,$customerPaymentProfileId,$transaction_amount)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;require_once('include/authorizenet.cim.class.php');&lt;BR /&gt;$str = "";&lt;BR /&gt;$str1 = "";&lt;BR /&gt;global $api_login_id,$api_transaction_key;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;$cim = new AuthNetCim($api_login_id, $api_transaction_key, true); // Need to chage here mohit&lt;BR /&gt;$cim-&amp;gt;setParameter('transaction_amount', $transaction_amount); // Up to 4 digits with a decimal (required)&lt;/P&gt;&lt;P&gt;// transactionType = (profileTransCaptureOnly, profileTransAuthCapture or profileTransAuthOnly)&lt;BR /&gt;$cim-&amp;gt;setParameter('transactionType', 'profileTransAuthOnly'); // see options above&lt;BR /&gt;&lt;BR /&gt;// Payment gateway assigned ID associated with the customer profile&lt;BR /&gt;$cim-&amp;gt;setParameter('customerProfileId', $customerProfileId); // Numeric (required)&lt;BR /&gt;&lt;BR /&gt;// Payment gateway assigned ID associated with the customer payment profile&lt;BR /&gt;$cim-&amp;gt;setParameter('customerPaymentProfileId', $customerPaymentProfileId); // Numeric (required)&lt;BR /&gt;&lt;BR /&gt;// The tax exempt status&lt;BR /&gt;$cim-&amp;gt;setParameter('transactionTaxExempt', 'false');&lt;BR /&gt;&lt;BR /&gt;// The recurring billing status&lt;BR /&gt;$cim-&amp;gt;setParameter('transactionRecurringBilling', 'false');&lt;/P&gt;&lt;P&gt;$cim-&amp;gt;createCustomerProfileTransactionRequest();&lt;/P&gt;&lt;P&gt;if ($cim-&amp;gt;isSuccessful())&lt;BR /&gt;{&lt;BR /&gt;$is_return = '1';&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;response;&lt;BR /&gt;$str = $cim-&amp;gt;response;&lt;BR /&gt;&lt;BR /&gt;echo "UPDATED&amp;lt;br&amp;gt;".$cim-&amp;gt;directResponse;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;";&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;validationDirectResponse;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;resultCode;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;code;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;text;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;refId;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;customerProfileId;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;customerPaymentProfileId;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;customerAddressId;&lt;/P&gt;&lt;P&gt;$str1 = explode(",Y,",$str);&lt;BR /&gt;$trans_id = substr($str1[1],0,10);&lt;BR /&gt;return $trans_id;&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;$is_return = '0';&lt;BR /&gt;//echo "NO&amp;lt;br&amp;gt;".$cim-&amp;gt;directResponse;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;Validation=".$cim-&amp;gt;validationDirectResponse;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;resultCode;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;code;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;text;&lt;BR /&gt;//echo "&amp;lt;br&amp;gt;&amp;lt;pre&amp;gt;";&lt;BR /&gt;//print_r($cim-&amp;gt;error_messages);&lt;BR /&gt;//echo "&amp;lt;/pre&amp;gt;";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if($is_return=='1')&lt;BR /&gt;{&lt;BR /&gt;return('1');&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// echo "&amp;lt;br&amp;gt;";&lt;BR /&gt;//echo "$str";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//exit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function processCustomerByCustomerProfileID($CustomerProfileID,$CustomerPaymentProfileID,$add_amount)&lt;BR /&gt;{&lt;BR /&gt;if($CustomerPaymentProfileID !='' || $CustomerPaymentProfileID != '0')&lt;BR /&gt;{&lt;BR /&gt;$transaction_id = cim_transaction($CustomerProfileID,$CustomerPaymentProfileID,$add_amount);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 03:22:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46977#M23733</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T03:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46987#M23737</link>
      <description>&lt;P&gt;Can't really tell from the code.&lt;/P&gt;&lt;P&gt;Can you get the echo response right after the curl?&lt;/P&gt;&lt;P&gt;the full curl posturlpath?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did see any update, but create customer profile/payment profile if they don't exist, then create an auth_only transaction.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 11:22:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46987#M23737</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-09T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46989#M23738</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Here's where it dies. &amp;nbsp;I get the "Profile Not Created" message, after that (you can see the echo's), I get:&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Profile NOT created!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Authorize.net could not be reached at this time.&amp;nbsp;&lt;BR /&gt;Please try again later&lt;BR /&gt;&lt;BR /&gt;NO&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ProfileId=&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Error: Array
(
)&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ($custPrID=="")&lt;BR /&gt;{&lt;BR /&gt;$cim-&amp;gt;createCustomerProfileRequest();&lt;BR /&gt;$cust_profile_id="";&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if ($cim-&amp;gt;isSuccessful())&lt;BR /&gt;{&lt;BR /&gt;$cust_profile_id = $cim-&amp;gt;customerProfileId;&lt;BR /&gt;echo "&amp;lt;table align=center&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;font style=font-family:arial;font-size:1.5em&amp;gt;&amp;lt;B&amp;gt;&amp;lt;BR&amp;gt;Profile created!&amp;lt;/b&amp;gt;&amp;lt;font style=font-family:arial;font-size:1em&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;insertCustomerProfileID($cust_profile_id, $custid,$billTo_firstName,$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,$billTo_zip,$email);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;if($cim-&amp;gt;code=='E00039')&lt;BR /&gt;{&lt;BR /&gt;if(strpos($cim-&amp;gt;text,"A duplicate record with ID") !== false)&lt;BR /&gt;{&lt;BR /&gt;$cust_profile_id=substr($cim-&amp;gt;text,strpos($cim-&amp;gt;text,"ID")+3,8);&lt;BR /&gt;$cust_profile_id=trim($cust_profile_id);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;echo "&amp;lt;table align=center&amp;gt;&amp;lt;TR&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;font style=font-family:arial;font-size:1.5em&amp;gt;&amp;lt;B&amp;gt;&amp;lt;BR&amp;gt;Profile NOT created!&amp;lt;/b&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;font style=font-family:arial;font-size:1em&amp;gt;Authorize.net could not be reached at this time. &amp;lt;BR&amp;gt;Please try again later&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;echo "NO&amp;lt;br&amp;gt;".$cim-&amp;gt;directResponse;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;validationDirectResponse;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;resultCode;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;code;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;".$cim-&amp;gt;text;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;ProfileId=".$cim-&amp;gt;customerProfileId;&lt;BR /&gt;echo "&amp;lt;br&amp;gt;&amp;lt;pre&amp;gt;Error: ";&lt;BR /&gt;print_r($cim-&amp;gt;error_messages);&lt;BR /&gt;echo "&amp;lt;/pre&amp;gt;";&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;echo "&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;&amp;lt;font style=font-family:arial;font-size:.75em&amp;gt;&amp;lt;a href=index.asp style=color:blue&amp;gt;&amp;lt;u&amp;gt;Return&amp;lt;/u&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;";&lt;BR /&gt;$customer_payment_profile_id = get_customer_payment_profileid($cust_profile_id);&lt;BR /&gt;if ($custPrID=="")&lt;BR /&gt;{&lt;BR /&gt;insertCustomerPaymentProfileIDAndCustomerProfileID($cust_profile_id,$customer_payment_profile_id,$custid,$billTo_firstName,$billTo_lastName,$billTo_address,$billTo_city,$billTo_state,$billTo_zip,$email);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;// process payment&lt;BR /&gt;if($customer_payment_profile_id !='' || $customer_payment_profile_id != '0')&lt;BR /&gt;{&lt;BR /&gt;$transaction_id = cim_transaction($cust_profile_id,$customer_payment_profile_id,$add_amount);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I assume the previous programmer echo's are correct, but please let me know if not.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 11:58:18 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46989#M23738</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T11:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46991#M23739</link>
      <description>&lt;P&gt;All that tell us it that it fail, and it wasn't duplicate profile, it doesn't help to see why it fail.&lt;/P&gt;&lt;P&gt;Really need to get the response right after the curl. You might have to go into createCustomerProfileRequest to see where is calling curl.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 12:07:55 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46991#M23739</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-09T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46999#M23742</link>
      <description>&lt;P&gt;I'm sorry - I've worked with XML before - I have an Authorize.net payment application that I built, but in that, there is a send. &amp;nbsp;I can't find a send in this code, and I'm not sure what I'm doing the echo on.&lt;BR /&gt;I would assume&amp;nbsp;&lt;BR /&gt;echo error_messages[];&lt;BR /&gt;would work, but it errors out. &amp;nbsp;It works when sending a payment through.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;&lt;BR /&gt;$this-&amp;gt;process();&lt;BR /&gt;the send?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 22:22:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/46999#M23742</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-09T22:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47001#M23743</link>
      <description>&lt;P&gt;There is a require('include/authorizenet.cim.class.php');&lt;/P&gt;&lt;P&gt;see if you can find createCustomerProfileRequest in that php file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Is this how that php look like?&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.phpkode.com/source/s/authorize-net-cim-php-class/authorize-net-cim-php-class/authorizenet.cim.class.php"&gt;http://www.phpkode.com/source/s/authorize-net-cim-php-class/authorize-net-cim-php-class/authorizenet.cim.class.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If so, in the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function process($retries = 3)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;after&lt;/P&gt;&lt;PRE&gt;$this-&amp;gt;response = curl_exec($ch);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo $this-&amp;gt;response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2014 23:03:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47001#M23743</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-09T23:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47005#M23744</link>
      <description>&lt;P&gt;It is blank, so I put an echo $this-&amp;gt;xml just before the curlopt_POST and here that is:&lt;BR /&gt;(this is not real data)&lt;BR /&gt;3xhfj5kfu67f &amp;nbsp;28283pT7579554v&lt;BR /&gt;Carr, D&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;d@csi.com&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;individual&amp;nbsp;D Carr&lt;/P&gt;&lt;P&gt;&lt;EM&gt;23 Trail Dr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Lake St. Louis&amp;nbsp;MO&amp;nbsp;63367&amp;nbsp;US&amp;nbsp;4111111111111111&amp;nbsp;2017-04&amp;nbsp;D Carr&lt;/P&gt;&lt;P&gt;&lt;EM&gt;23 Trail Dr.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Lake St. Louis&amp;nbsp;MO&amp;nbsp;63367&amp;nbsp;US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does Authorize.net verify the address or credit card in the sandbox for CIM? &amp;nbsp;It's not real data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have it set up right for test mode? &amp;nbsp;$test_mode = true&lt;/P&gt;&lt;P&gt;function AuthNetCim($login, $transkey, $test_mode)&lt;BR /&gt;{&lt;BR /&gt;$this-&amp;gt;login = $login;&lt;BR /&gt;$this-&amp;gt;transkey = $transkey;&lt;BR /&gt;$this-&amp;gt;test_mode = $test_mode;&lt;BR /&gt;$subdomain = ($this-&amp;gt;test_mode) ? 'apitest' : 'api';&lt;BR /&gt;$this-&amp;gt;url = "https://" . $subdomain . ".authorize.net/xml/v1/request.api";&lt;BR /&gt;//$this-&amp;gt;url = "&lt;A target="_blank" href="https://api.authorize.net/xml/v1/request.api&amp;quot;;"&gt;https://api.authorize.net/xml/v1/request.api";&lt;/A&gt;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 00:30:27 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47005#M23744</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-10T00:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47009#M23746</link>
      <description>&lt;P&gt;$this-&amp;gt;response is blank, that would be the issue.&lt;/P&gt;&lt;P&gt;are you running this test using the sandbox account on your production server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if it sending to the wrong server, it will return an account not valid or something in the response.&lt;/P&gt;&lt;P&gt;&amp;lt;messages&amp;gt;&amp;lt;resultCode&amp;gt;Error&amp;lt;/resultCode&amp;gt;&amp;lt;message&amp;gt;&amp;lt;code&amp;gt;E00007&amp;lt;/code&amp;gt;&amp;lt;text&amp;gt;User authentication failed due to invalid authentication values.&amp;lt;/text&amp;gt;&amp;lt;/message&amp;gt;&amp;lt;/messages&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:14:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47009#M23746</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-10T01:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47013#M23748</link>
      <description>&lt;P&gt;Do I have it set up right for test mode? &amp;nbsp;$test_mode = true&lt;/P&gt;&lt;P&gt;function AuthNetCim($login, $transkey, $test_mode)&lt;BR /&gt;{&lt;BR /&gt;$this-&amp;gt;login = $login;&lt;BR /&gt;$this-&amp;gt;transkey = $transkey;&lt;BR /&gt;$this-&amp;gt;test_mode = $test_mode;&lt;BR /&gt;$subdomain = ($this-&amp;gt;test_mode) ? 'apitest' : 'api';&lt;BR /&gt;$this-&amp;gt;url = "https://" . $subdomain . ".authorize.net/xml/v1/request.api";&lt;BR /&gt;//$this-&amp;gt;url = "&lt;A rel="nofollow" target="_blank" href="https://api.authorize.net/xml/v1/request.api%22;"&gt;https://api.authorize.net/xml/v1/request.api";&lt;/A&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so it would be &lt;A target="_blank" href="https://apitest.authorize.net/xml/v1/request.aspi"&gt;https://apitest.authorize.net/xml/v1/request.aspi&lt;/A&gt; (if my eyes are not too tired)&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:16:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47013#M23748</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-10T01:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47015#M23749</link>
      <description>&lt;P&gt;for sandbox account, yes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From &lt;A target="_blank" href="http://php.net/manual/en/function.curl-setopt.php"&gt;http://php.net/manual/en/function.curl-setopt.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;can you add something like the following after the $this-&amp;gt;response = curl_exec($ch);&lt;/P&gt;&lt;PRE&gt;if (curl_errno($ch)) {
            echo "Error: " . curl_error($ch);
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with curl_setopt($ch, CURLOPT_HEADER, 1);&lt;/P&gt;&lt;P&gt;should have something like&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 200 OK
Server: Apache
X-Backend-Server: pp-web03
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
Date: Fri, 06 Aug 2010 15:32:00 GMT
Expires: Fri, 06 Aug 2010 01:42:00 GMT
Transfer-Encoding: chunked
X-Powered-By: PHP/5.2.9
X-Cache-Info: not cacheable; response has already expired&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:30:16 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47015#M23749</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-10T01:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47017#M23750</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Error: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:31:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47017#M23750</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-10T01:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47019#M23751</link>
      <description>&lt;P&gt;This must not be set right:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl_setopt($ch, CURLOPT_URL, $this-&amp;gt;url);&lt;BR /&gt;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);&lt;BR /&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));&lt;BR /&gt;curl_setopt($ch, CURLOPT_HEADER, 1);&lt;BR /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, $this-&amp;gt;xml);&lt;BR /&gt;echo "test1-".$this-&amp;gt;xml."&amp;lt;BR&amp;gt;";&lt;BR /&gt;curl_setopt($ch, CURLOPT_POST, 1);&lt;BR /&gt;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);&lt;BR /&gt;$this-&amp;gt;response = curl_exec($ch);&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:45:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47019#M23751</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-10T01:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47021#M23752</link>
      <description>&lt;P&gt;did anything change on the server? updated anything?&lt;/P&gt;&lt;P&gt;google show a bunch of reason that your might be getting&lt;/P&gt;&lt;P&gt;"140770FC ssl23_get_server_hello unknown protocol curl"&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:50:23 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47021#M23752</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-09-10T01:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is PHP/Curl not working on CIM updates?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47023#M23753</link>
      <description>&lt;P&gt;I put a router before it - I'll bet there is a port that needs to be opened.&lt;/P&gt;&lt;P&gt;Would it be 443?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2014 01:52:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Is-PHP-Curl-not-working-on-CIM-updates/m-p/47023#M23753</guid>
      <dc:creator>dcassara</dc:creator>
      <dc:date>2014-09-10T01:52:17Z</dc:date>
    </item>
  </channel>
</rss>

