<?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: AIM Credit Card refund in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19656#M10817</link>
    <description>&lt;P&gt;also, do I need to specify the amount of refund or does the transaction ID take care of that?&lt;/P&gt;</description>
    <pubDate>Sat, 03 Dec 2011 14:54:21 GMT</pubDate>
    <dc:creator>webdesignz</dc:creator>
    <dc:date>2011-12-03T14:54:21Z</dc:date>
    <item>
      <title>AIM Credit Card refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19654#M10816</link>
      <description>&lt;P&gt;Hi.&amp;nbsp; I am new to the AIM API.&amp;nbsp; I currently have ARB (assuming AIM works with ARB) and&amp;nbsp;I am trying to figure out how to submit a refund transaction.&amp;nbsp; I read AIM documentation and also the Guide to Issuing Credit but found no complete example of how to do it.&amp;nbsp; I have come up with this....can someone tell me if this will work?&amp;nbsp; I would like to know if I am on the right track before testing it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;$xml&amp;nbsp; = "&amp;lt;?xml version=\"1.0\" encoding=\"utf-8\"?&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;createTransactionRequest xmlns:xsi=\"&lt;A href="http://www.w3.org/2001/XMLSchema-instance/%22/n" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance\"\n&lt;/A&gt;";&lt;BR /&gt;&amp;nbsp;$xml .= "xmlns:xsd=\"&lt;A href="http://www.w3.org/2001/XMLSchema/" target="_blank"&gt;http://www.w3.org/2001/XMLSchema\&lt;/A&gt;" xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\"&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;nbsp; &amp;lt;merchantAuthentication&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;".$loginname."&amp;lt;/name&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;transactionKey&amp;gt;".$transactionkey."&amp;lt;/transactionKey&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;nbsp; &amp;lt;/merchantAuthentication&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;nbsp; &amp;lt;refId&amp;gt;".$orderid."&amp;lt;/refId&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;transactionRequest&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;transactionType&amp;gt;refundTransaction&amp;lt;/transactionType&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;refTransId&amp;gt;transaction ID here&amp;lt;/refTransId&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;cardNumber&amp;gt;.$_SESSION[payment].&amp;lt;/cardNumber&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;/transactionRequest&amp;gt;\n";&lt;BR /&gt;&amp;nbsp;$xml .= "&amp;lt;/createTransactionRequest&amp;gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:52:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19654#M10816</guid>
      <dc:creator>webdesignz</dc:creator>
      <dc:date>2011-12-03T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: AIM Credit Card refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19656#M10817</link>
      <description>&lt;P&gt;also, do I need to specify the amount of refund or does the transaction ID take care of that?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 14:54:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19656#M10817</guid>
      <dc:creator>webdesignz</dc:creator>
      <dc:date>2011-12-03T14:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: AIM Credit Card refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19658#M10818</link>
      <description>&lt;P&gt;You do need to specify the amount as partial refunds are allowed so you need to make sure the request is not ambiguous.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your XML looks to be correct so go ahead and test it. If it isn't correct for some reason that's the best way to find out as you will get a spcecific error message in the response.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 15:29:08 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19658#M10818</guid>
      <dc:creator>stymiee</dc:creator>
      <dc:date>2011-12-03T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: AIM Credit Card refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19662#M10820</link>
      <description>&lt;P&gt;great - thanks for your help.&amp;nbsp; I will give it a test.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 17:42:01 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19662#M10820</guid>
      <dc:creator>webdesignz</dc:creator>
      <dc:date>2011-12-03T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: AIM Credit Card refund</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19666#M10822</link>
      <description>&lt;P&gt;FYI, I know the code examples don't explain this technique, but it's really bad coding to print one line at a time. You're much better off using a block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?php
$xml = &amp;lt;&amp;lt;&amp;lt;BLOCK
&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;createTransactionRequest xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:xsd="&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"&amp;gt;
  &amp;lt;merchantAuthentication&amp;gt;
    &amp;lt;name&amp;gt;$loginname&amp;lt;/name&amp;gt;
    &amp;lt;transactionKey&amp;gt;$transactionkey&amp;lt;/transactionKey&amp;gt;
  &amp;lt;/merchantAuthentication&amp;gt;
  &amp;lt;refId&amp;gt;$orderid&amp;lt;/refId&amp;gt;
&amp;lt;transactionRequest&amp;gt;
&amp;lt;transactionType&amp;gt;refundTransaction&amp;lt;/transactionType&amp;gt;
&amp;lt;refTransId&amp;gt;transaction ID here&amp;lt;/refTransId&amp;gt;
&amp;lt;cardNumber&amp;gt;{$_SESSION['payment']}&amp;lt;/cardNumber&amp;gt;
&amp;lt;/transactionRequest&amp;gt;
&amp;lt;/createTransactionRequest&amp;gt;
BLOCK;
?&amp;gt;&lt;/PRE&gt;&lt;P&gt;Also, how did card number (even the last 4 digits) get into $_SESSION? It's bad from a security perspective to save that data from page to page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't believe you have to specify a refund amount if it's equal to the original charge, which will be almost all refunds.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2011 18:05:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/AIM-Credit-Card-refund/m-p/19666#M10822</guid>
      <dc:creator>TJPride</dc:creator>
      <dc:date>2011-12-03T18:05:19Z</dc:date>
    </item>
  </channel>
</rss>

