<?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 &amp;quot;Freight amount Invalid&amp;quot; when adding description in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/quot-Freight-amount-Invalid-quot-when-adding-description/m-p/65465#M39132</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to set the shipping description for the Accept Hosted page on the php API call for hours, and I do not think it is possible without getting the above error.&amp;nbsp; I am well within 255 characters. I have tried an 8 character string and still get this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code works fine without the description set. Can someone advise if there is a fix?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't work, ever:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$shippingCost = new AnetAPI\ExtendedAmountType();&lt;BR /&gt;$shippingCost-&amp;gt;setAmount($shippingCharges);&lt;BR /&gt;$shippingCost-&amp;gt;setDescription($shippingMessage);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works every time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$shippingCost = new AnetAPI\ExtendedAmountType();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$shippingCost-&amp;gt;setAmount($shippingCharges);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Dec 2018 04:26:24 GMT</pubDate>
    <dc:creator>Renaissance</dc:creator>
    <dc:date>2018-12-25T04:26:24Z</dc:date>
    <item>
      <title>"Freight amount Invalid" when adding description</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/quot-Freight-amount-Invalid-quot-when-adding-description/m-p/65465#M39132</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to set the shipping description for the Accept Hosted page on the php API call for hours, and I do not think it is possible without getting the above error.&amp;nbsp; I am well within 255 characters. I have tried an 8 character string and still get this error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code works fine without the description set. Can someone advise if there is a fix?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this doesn't work, ever:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$shippingCost = new AnetAPI\ExtendedAmountType();&lt;BR /&gt;$shippingCost-&amp;gt;setAmount($shippingCharges);&lt;BR /&gt;$shippingCost-&amp;gt;setDescription($shippingMessage);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this works every time:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$shippingCost = new AnetAPI\ExtendedAmountType();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$shippingCost-&amp;gt;setAmount($shippingCharges);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Dec 2018 04:26:24 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/quot-Freight-amount-Invalid-quot-when-adding-description/m-p/65465#M39132</guid>
      <dc:creator>Renaissance</dc:creator>
      <dc:date>2018-12-25T04:26:24Z</dc:date>
    </item>
  </channel>
</rss>

