<?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 Partial refund error in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Partial-refund-error/m-p/76533#M47816</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to sent partial refund but get error code 5 "A valid amount is required."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$creditCard = new AnetAPI\CreditCardType();
$creditCard-&amp;gt;setCardNumber($lastFourDigits);
$creditCard-&amp;gt;setExpirationDate("XXXX");
$paymentOne = new AnetAPI\PaymentType();
$paymentOne-&amp;gt;setCreditCard($creditCard);

$transactionRequest = new AnetAPI\TransactionRequestType();
$transactionRequest-&amp;gt;setTransactionType('refundTransaction');
$transactionRequest-&amp;gt;setAmount(2.4);
$transactionRequest-&amp;gt;setPayment($paymentOne);
$transactionRequest-&amp;gt;setRefTransId($transaction_id);&lt;/PRE&gt;&lt;P&gt;Original transaction amount $8.39.&lt;/P&gt;&lt;P&gt;There are no filters for the size of the payment.&lt;/P&gt;&lt;P&gt;With a full refund, this code works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do for refund an amount that is less than that of orginal transaction amount?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance&lt;/P&gt;</description>
    <pubDate>Sun, 30 May 2021 07:26:10 GMT</pubDate>
    <dc:creator>Floyder</dc:creator>
    <dc:date>2021-05-30T07:26:10Z</dc:date>
    <item>
      <title>Partial refund error</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Partial-refund-error/m-p/76533#M47816</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am trying to sent partial refund but get error code 5 "A valid amount is required."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$creditCard = new AnetAPI\CreditCardType();
$creditCard-&amp;gt;setCardNumber($lastFourDigits);
$creditCard-&amp;gt;setExpirationDate("XXXX");
$paymentOne = new AnetAPI\PaymentType();
$paymentOne-&amp;gt;setCreditCard($creditCard);

$transactionRequest = new AnetAPI\TransactionRequestType();
$transactionRequest-&amp;gt;setTransactionType('refundTransaction');
$transactionRequest-&amp;gt;setAmount(2.4);
$transactionRequest-&amp;gt;setPayment($paymentOne);
$transactionRequest-&amp;gt;setRefTransId($transaction_id);&lt;/PRE&gt;&lt;P&gt;Original transaction amount $8.39.&lt;/P&gt;&lt;P&gt;There are no filters for the size of the payment.&lt;/P&gt;&lt;P&gt;With a full refund, this code works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do for refund an amount that is less than that of orginal transaction amount?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 07:26:10 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Partial-refund-error/m-p/76533#M47816</guid>
      <dc:creator>Floyder</dc:creator>
      <dc:date>2021-05-30T07:26:10Z</dc:date>
    </item>
  </channel>
</rss>

