<?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: PHP SDK - How to add order tax amount in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74477#M46290</link>
    <description>&lt;P&gt;Same issue. Throws an error if I don't set tax in production mode, but there's no way to set tax according to the php docs.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Dec 2020 16:41:57 GMT</pubDate>
    <dc:creator>octoxan</dc:creator>
    <dc:date>2020-12-28T16:41:57Z</dc:date>
    <item>
      <title>PHP SDK - How to add order tax amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74197#M46076</link>
      <description>&lt;P&gt;I cannot find any documentation on how to add the amount of tax for an order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.authorize.net/api/reference/index.html#payment-transactions" target="_blank"&gt;https://developer.authorize.net/api/reference/index.html#payment-transactions&lt;/A&gt; - Nothing here shows an example with tax being passed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to be able to populate this data here:&amp;nbsp;&lt;A href="https://share.getcloudapp.com/6quxBj1G" target="_blank"&gt;https://share.getcloudapp.com/6quxBj1G&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 20:07:11 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74197#M46076</guid>
      <dc:creator>sccr410</dc:creator>
      <dc:date>2020-12-03T20:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - How to add order tax amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74477#M46290</link>
      <description>&lt;P&gt;Same issue. Throws an error if I don't set tax in production mode, but there's no way to set tax according to the php docs.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 16:41:57 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74477#M46290</guid>
      <dc:creator>octoxan</dc:creator>
      <dc:date>2020-12-28T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK - How to add order tax amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74479#M46292</link>
      <description>&lt;P&gt;Figured it out, their documentation is terrible and Authorize.net basically has zero support.&lt;BR /&gt;&lt;BR /&gt;Here's what I had to update from their example, by digging through the libraries code. The first 3 lines and the last line are whats needed. Insane that tax only needs to be set when not using sandbox mode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$tax = new AnetAPI\ExtendedAmountType();
$tax-&amp;gt;setName('tax');
$tax-&amp;gt;setAmount('0.00');

$transactionRequestType = new AnetAPI\TransactionRequestType();
$transactionRequestType-&amp;gt;setTransactionType("authCaptureTransaction");
$transactionRequestType-&amp;gt;setAmount(request('amt'));
$transactionRequestType-&amp;gt;setTax($tax);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 16:57:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-How-to-add-order-tax-amount/m-p/74479#M46292</guid>
      <dc:creator>octoxan</dc:creator>
      <dc:date>2020-12-28T16:57:58Z</dc:date>
    </item>
  </channel>
</rss>

