<?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: Can't process refund using CIM in PHP in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52559#M27793</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19055"&gt;@ericrmr﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try &lt;A href="http://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction" target="_self"&gt;Refund a Transaction&lt;/A&gt; using the transaction ID instead of the payment profile?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2015 22:34:48 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2015-10-13T22:34:48Z</dc:date>
    <item>
      <title>Can't process refund using CIM in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52553#M27787</link>
      <description>&lt;P&gt;I'm trying to build a tool to process refunds in PHP using&amp;nbsp;&lt;SPAN class="s1"&gt;anet_php_sdk-1_8_5_1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code to process the refund:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$refund = new AuthorizeNetCIM;
$transaction = new AuthorizeNetTransaction;
$transaction-&amp;gt;amount = $authAmount;
$transaction-&amp;gt;customerProfileId = $customerProfileId;
$transaction-&amp;gt;customerPaymentProfileId = $paymentProfileId;
$transaction-&amp;gt;transId = $transactionid;
$response = $refund-&amp;gt;createCustomerProfileTransaction("Refund", $transaction);
$transactionResponse = $response-&amp;gt;getTransactionResponse();
echo json_encode($transactionResponse) . "&amp;lt;br&amp;gt;";&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response I get from the server is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;{"approved":false,"declined":null,"error":true,"held":null,"response_code":null,"response_subcode":null,"response_reason_code":null,"response_reason_text":null,"authorization_code":null,"avs_response":null,"transaction_id":null,"invoice_number":null,"description":null,"amount":null,"method":null,"transaction_type":null,"customer_id":null,"first_name":null,"last_name":null,"company":null,"address":null,"city":null,"state":null,"zip_code":null,"country":null,"phone":null,"fax":null,"email_address":null,"ship_to_first_name":null,"ship_to_last_name":null,"ship_to_company":null,"ship_to_address":null,"ship_to_city":null,"ship_to_state":null,"ship_to_zip_code":null,"ship_to_country":null,"tax":null,"duty":null,"freight":null,"tax_exempt":null,"purchase_order_number":null,"md5_hash":null,"card_code_response":null,"cavv_response":null,"account_number":null,"card_type":null,"split_tender_id":null,"requested_amount":null,"balance_on_card":null,"response":null,"error_message":"Error connecting to AuthorizeNet"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;I had no trouble executing a&amp;nbsp;getTransactionDetails request using the same credentials. Why would it not be able to connect now using the&amp;nbsp;createCustomerProfileTransaction?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 18:43:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52553#M27787</guid>
      <dc:creator>ericrmr</dc:creator>
      <dc:date>2015-10-13T18:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't process refund using CIM in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52558#M27792</link>
      <description>&lt;P&gt;In addition, I was able to void a transaction just fine, using similar code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$void = new AuthorizeNetCIM;
$transaction = new AuthorizeNetTransaction;
$transaction-&amp;gt;transId = $transactionid;
$response = $void-&amp;gt;createCustomerProfileTransaction("Void", $transaction);
$transactionResponse = $response-&amp;gt;getTransactionResponse();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked perfectly. It's only the "Refund" transaction that didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:26:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52558#M27792</guid>
      <dc:creator>ericrmr</dc:creator>
      <dc:date>2015-10-13T22:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can't process refund using CIM in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52559#M27793</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/19055"&gt;@ericrmr﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try &lt;A href="http://developer.authorize.net/api/reference/index.html#payment-transactions-refund-a-transaction" target="_self"&gt;Refund a Transaction&lt;/A&gt; using the transaction ID instead of the payment profile?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:34:48 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52559#M27793</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2015-10-13T22:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can't process refund using CIM in PHP</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52560#M27794</link>
      <description>&lt;P&gt;The problem is I don't have the CC # or expiration date. That's tied to the payment profile. In our database we store the transaction ID, customer profile ID, and payment profile ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can query the amount from the transaction details, but if I try to query the customer profile, I just get a bunch of X's for the CC # and expiration date.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 22:38:32 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-t-process-refund-using-CIM-in-PHP/m-p/52560#M27794</guid>
      <dc:creator>ericrmr</dc:creator>
      <dc:date>2015-10-13T22:38:32Z</dc:date>
    </item>
  </channel>
</rss>

