<?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 someone please provide a sample code for REFUND transaction using CIM api? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16454#M9285</link>
    <description>&lt;P&gt;Thank you for that code.&lt;BR /&gt;&lt;BR /&gt;But I do not need to simply void a transaction... I need to "refund" it, after it is settled. Any tips?&lt;BR /&gt;&lt;BR /&gt;Also, is it possible to check the settlement status with the help of the API, so that I can create the transaction type properly?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2011 04:05:36 GMT</pubDate>
    <dc:creator>mps_sudipta</dc:creator>
    <dc:date>2011-08-24T04:05:36Z</dc:date>
    <item>
      <title>Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16418#M9267</link>
      <description>&lt;P&gt;I am using and anet_php_sdk, and CIM and I got the basic transactions working. But I can't figure out how to do a refund transaction using this sdk. Can someone please provide me a sample code? Just assume I already have the customer id, payment profile id, and transaction id in three variables.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2011 04:20:38 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16418#M9267</guid>
      <dc:creator>mps_sudipta</dc:creator>
      <dc:date>2011-08-23T04:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16442#M9279</link>
      <description>&lt;P&gt;A void&amp;nbsp; (canceling an unsettled transaction) can be done as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$request = new AuthorizeNetCIM;&lt;BR /&gt;$transaction = new AuthorizeNetTransaction;
$transaction-&amp;gt;transID = $transactionID;
$response = $request-&amp;gt;createCustomerProfileTransaction('Void', $transaction);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;You have to issue a credit if the transaction is already settled.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 02:31:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16442#M9279</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-08-24T02:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16450#M9283</link>
      <description>&lt;P&gt;The documentation and code examples seem less than helpful when it comes to credits.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 03:06:39 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16450#M9283</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-08-24T03:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16454#M9285</link>
      <description>&lt;P&gt;Thank you for that code.&lt;BR /&gt;&lt;BR /&gt;But I do not need to simply void a transaction... I need to "refund" it, after it is settled. Any tips?&lt;BR /&gt;&lt;BR /&gt;Also, is it possible to check the settlement status with the help of the API, so that I can create the transaction type properly?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 04:05:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16454#M9285</guid>
      <dc:creator>mps_sudipta</dc:creator>
      <dc:date>2011-08-24T04:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16458#M9287</link>
      <description>&lt;P&gt;Usually, people just attempt a void, and if that fails, attempt a refund.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 11:50:45 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16458#M9287</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-08-24T11:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone please provide a sample code for REFUND transaction using CIM api?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16460#M9288</link>
      <description>&lt;P&gt;Maybe something like this (untested)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$request = new AuthorizeNetCIM($authorizeID, $authorizeKey);

$transaction = new AuthorizeNetTransaction;
$transaction-&amp;gt;customerProfileId = $customerProfileId;
$transaction-&amp;gt;customerPaymentProfileId = $paymentProfileId;
$transaction-&amp;gt;transID = $idOfTransactionToCredit;
$transaction-&amp;gt;creditCardNumberMasked = $cardNumberMasked;
    /* Can be retrieved using getCustomerProfile? */
$transaction-&amp;gt;amount = $originalAmount;

$response = $request-&amp;gt;createCustomerProfileTransaction('Credit', $transaction);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the docs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Credit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This transaction type is used to refund a customer for a transaction that was originally processed and successfully settled through the payment gateway.&lt;/P&gt;&lt;P&gt;The payment gateway accepts Credits if the following conditions are met:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class="Bullets"&gt;The transaction is submitted with the valid Transaction ID of an original, successfully settled transaction.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="Bullets"&gt;The amount being requested for refund is less than or equal to the original settled amount.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="Bullets"&gt;The sum amount of multiple Credit transactions submitted against the original transaction is less than or equal to the original settled amount.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="Bullets"&gt;At least the last four digits of the credit card number used for the original, successfully settled transaction are submitted. An expiration date is not required.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="Bullets"&gt;The transaction is submitted within 120 days of the settlement date of the original transaction.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2011 12:14:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Can-someone-please-provide-a-sample-code-for-REFUND-transaction/m-p/16460#M9288</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-08-24T12:14:59Z</dc:date>
    </item>
  </channel>
</rss>

