<?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: How to refund? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/40002#M21768</link>
    <description>&lt;P&gt;Ok, I figured out that I also need to include original transaction code as reference and the transaction need to be in 'settledSuccessfully' status in developer account or else it would not work.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2014 17:21:34 GMT</pubDate>
    <dc:creator>cyang126</dc:creator>
    <dc:date>2014-03-24T17:21:34Z</dc:date>
    <item>
      <title>How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/38499#M21055</link>
      <description>&lt;P&gt;We are moving from using Paypal to Autherorize.net and I am looking at the sampel AMI code using the developer account.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;require_once 'AuthorizeNet.php'; // Make sure this path is correct.&lt;BR /&gt;$transaction = new AuthorizeNetAIM('xxxxx', 'xxxxxxxxxxxxxxxxxxxx');&lt;BR /&gt;&lt;BR /&gt;$transaction-&amp;gt;amount = '5.29';&lt;BR /&gt;$transaction-&amp;gt;cust_id = '05041234';&lt;BR /&gt;$transaction-&amp;gt;first_name = 'Jack';&lt;BR /&gt;$transaction-&amp;gt;last_name = 'Jackson';&lt;BR /&gt;$transaction-&amp;gt;address = '1234 Main St.';&lt;BR /&gt;$transaction-&amp;gt;city = 'Fremont';&lt;BR /&gt;$transaction-&amp;gt;state = 'CA';&lt;BR /&gt;$transaction-&amp;gt;zip = '94538';&lt;BR /&gt;$transaction-&amp;gt;card_num = '4007000000027';&lt;BR /&gt;$transaction-&amp;gt;exp_date = '10/16';&lt;BR /&gt;&lt;BR /&gt;$response = $transaction-&amp;gt;authorizeAndCapture();&lt;BR /&gt;&lt;BR /&gt;if ($response-&amp;gt;approved) {&lt;BR /&gt;&amp;nbsp; echo "&amp;lt;h1&amp;gt;Success! The test credit card has been charged!&amp;lt;/h1&amp;gt;";&lt;BR /&gt;&amp;nbsp; echo "Transaction ID: " . $response-&amp;gt;transaction_id;&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; echo $response-&amp;gt;error_message;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything works, but how do I do a full or partial refund?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried insert&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;type = 'CREDIT'&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;trans_id = 'xxxxxxxxxxxxx'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it just created another transaction.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 22:50:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/38499#M21055</guid>
      <dc:creator>cyang126</dc:creator>
      <dc:date>2014-01-17T22:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/38501#M21056</link>
      <description>&lt;P&gt;anet_php_sdk-1.1.8.zip\anet_php_sdk\doc\AIM.markdown&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there a credit() method&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 00:11:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/38501#M21056</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2014-01-18T00:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/39960#M21747</link>
      <description>&lt;P&gt;Why I am getting the following error?&lt;/P&gt;&lt;P&gt;I have called $response = $transaction-&amp;gt;credit();&lt;/P&gt;&lt;P&gt;and set $transaction-&amp;gt;card_num = "0027"; // dummy account&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;AuthorizeNet Error:
                Response Code: 3
                Response Subcode: 1
                Response Reason Code: 6
                Response Reason Text: The credit card number is invalid.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I change to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$transaction-&amp;gt;card_num = "4007000000027";&lt;/P&gt;&lt;P&gt;then it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will this happend in production environment with readl CC number?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 17:00:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/39960#M21747</guid>
      <dc:creator>cyang126</dc:creator>
      <dc:date>2014-03-21T17:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/40002#M21768</link>
      <description>&lt;P&gt;Ok, I figured out that I also need to include original transaction code as reference and the transaction need to be in 'settledSuccessfully' status in developer account or else it would not work.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2014 17:21:34 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/40002#M21768</guid>
      <dc:creator>cyang126</dc:creator>
      <dc:date>2014-03-24T17:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/72506#M44790</link>
      <description>&lt;P&gt;Thanks Mate, It also help me &lt;A href="https://basketballshout.com" target="_self"&gt;Alot&lt;/A&gt; :D&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 18:19:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/72506#M44790</guid>
      <dc:creator>Johnyx</dc:creator>
      <dc:date>2020-07-14T18:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to refund?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/72507#M44791</link>
      <description>&lt;P&gt;Thanks Mate, It also help me &lt;A href="https://basketballshout.com" target="_self"&gt;Al&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/14935"&gt;@cyang126&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Ok, I figured out that I also need to include original transaction code as reference and the transaction need to be in 'settledSuccessfully' status in developer account or else it would not work.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A href="https://basketballshout.com" target="_self"&gt;&lt;BR /&gt;ot&lt;/A&gt; :D&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 18:19:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-to-refund/m-p/72507#M44791</guid>
      <dc:creator>Johnyx</dc:creator>
      <dc:date>2020-07-14T18:19:57Z</dc:date>
    </item>
  </channel>
</rss>

