<?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: Accept Hosted Form: Truncated Last Zero in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65317#M39004</link>
    <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;We noticied the issue when we started using the Python SDK back August.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kim</description>
    <pubDate>Tue, 11 Dec 2018 01:54:53 GMT</pubDate>
    <dc:creator>sfo_gtu</dc:creator>
    <dc:date>2018-12-11T01:54:53Z</dc:date>
    <item>
      <title>Accept Hosted Form: Truncated Last Zero</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65315#M39002</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We have noticed that the pricing/amount of the payment form is not showing all of of the cent values. For example, when we set the amount to "25.00" or "25.50", the price on the payment form is shown as "$25.0" or "25.5" respectively. If the payment is "25.01" then the payment is shown correctly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:36:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65315#M39002</guid>
      <dc:creator>sfo_gtu</dc:creator>
      <dc:date>2018-12-10T22:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form: Truncated Last Zero</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65316#M39003</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/27502"&gt;@sfo_gtu&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this behavior new, or has it been observed for a while?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 01:40:17 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65316#M39003</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2018-12-11T01:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form: Truncated Last Zero</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65317#M39004</link>
      <description>Hi Richard,&lt;BR /&gt;&lt;BR /&gt;We noticied the issue when we started using the Python SDK back August.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Kim</description>
      <pubDate>Tue, 11 Dec 2018 01:54:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65317#M39004</guid>
      <dc:creator>sfo_gtu</dc:creator>
      <dc:date>2018-12-11T01:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form: Truncated Last Zero</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65318#M39005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_1" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.developer.authorize.net/t5/user/viewprofilepage/user-id/27502" target="_self"&gt;sfo_gtu&lt;/A&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;We are aware of the issue within our Python SDK and are working to update them to correct this. In the meantime, the following is a workaround you may use:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The implementation is not when we pass it to the Python SDK. &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The Python SDK will send the proper value to the servers and the amount that the merchant sends is properly getting stored in the servers as 50.00 (for example).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;It is when the response has reached the merchant’s application that the issue starts happening.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;When the SDK tries to show the response (50.00), it removes the zero and shows only one zero after the decimal point (50.0).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The suggested fix is to be implemented when the SDK is trying to print the response, i.e., from SDK to the merchant’s application.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Please do not worry about the amount on the server side. That is assuredly stored properly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;It is just a matter of printing the proper response to the merchant in the proper manner.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The original sample codes suggest something like this:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;print('Auth Amount : %s' % transactionDetailsResponse.transaction.authAmount)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;print('Settle Amount : %s' % transactionDetailsResponse.transaction.settleAmount)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This needs to be changed to the following. The highlighted text shows what is different:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;print('Auth Amount : %s' % Decimal(repr(transactionDetailsResponse.transaction.authAmount)).quantize(Decimal('1.00')))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;print('Settle Amount : %s' % Decimal(repr(transactionDetailsResponse.transaction.settleAmount)).quantize(Decimal('1.00')))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if required, they may need to add a new import to the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;from decimal import *&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Elaine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 04:29:13 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65318#M39005</guid>
      <dc:creator>ElaineM</dc:creator>
      <dc:date>2018-12-11T04:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Accept Hosted Form: Truncated Last Zero</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65337#M39022</link>
      <description>&lt;P&gt;Hi Elaine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&amp;nbsp;But&amp;nbsp;I have been working with you guys to get this fix, and&amp;nbsp;the workaroud below is not something we can do on our end, but the SDK which other agents have been mentioned too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The last agent suggested that I reach out the community to see if someone else might be able to help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 17:27:04 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Accept-Hosted-Form-Truncated-Last-Zero/m-p/65337#M39022</guid>
      <dc:creator>sfo_gtu</dc:creator>
      <dc:date>2018-12-12T17:27:04Z</dc:date>
    </item>
  </channel>
</rss>

