<?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 Four decimal digits in payment amount in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/59927#M34496</link>
    <description>&lt;P&gt;We're being forced to use the hosted payment form and while the information is passing over properly, the amount is always showing with four decimal digits.&amp;nbsp;Is there a way to fix this? It looks stupid when you're dealing with dollars and cents.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 20:23:06 GMT</pubDate>
    <dc:creator>ncseric</dc:creator>
    <dc:date>2017-09-19T20:23:06Z</dc:date>
    <item>
      <title>Four decimal digits in payment amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/59927#M34496</link>
      <description>&lt;P&gt;We're being forced to use the hosted payment form and while the information is passing over properly, the amount is always showing with four decimal digits.&amp;nbsp;Is there a way to fix this? It looks stupid when you're dealing with dollars and cents.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 20:23:06 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/59927#M34496</guid>
      <dc:creator>ncseric</dc:creator>
      <dc:date>2017-09-19T20:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Four decimal digits in payment amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/59942#M34511</link>
      <description>&lt;P&gt;I've personally never seen this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post a screenshot?&lt;/P&gt;
&lt;P&gt;Can you give me any steps to reproduce?&lt;/P&gt;
&lt;P&gt;What is the information you're sending in your token request so I can try to recreate on my side?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 17:01:21 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/59942#M34511</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2017-09-20T17:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Four decimal digits in payment amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/60012#M34580</link>
      <description>&lt;P&gt;Screenshot:&amp;nbsp;&lt;A href="https://goo.gl/jhLBZf" target="_blank"&gt;https://goo.gl/jhLBZf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is about as generic as you get -- C#:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var transactionRequest = new transactionRequestType&lt;BR /&gt;{&lt;BR /&gt;transactionType = transactionTypeEnum.authCaptureTransaction.ToString(), // authorize capture only&lt;BR /&gt;amount = Convert.ToDecimal(CurrentCartTotals["GrandTotal"]),&lt;BR /&gt;refTransId = trans.pkPolicyApplicationID.ToString(),&lt;BR /&gt;customer = new customerDataType { email = trans.ContactEmail},&lt;BR /&gt;billTo = new customerAddressType&lt;BR /&gt;{&lt;BR /&gt;firstName = trans.BillingFirstName,&lt;BR /&gt;lastName = trans.BillingLastName,&lt;BR /&gt;address = trans.BillingAddress1,&lt;BR /&gt;city = trans.BillingCity,&lt;BR /&gt;state = trans.BillingState,&lt;BR /&gt;zip = trans.BillingPostalCode,&lt;BR /&gt;country = "USA",&lt;BR /&gt;phoneNumber = trans.ContactPhone&lt;BR /&gt;},&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trans object is a custom one containing transaction details. The transactionRequestType requires a decimal, so even if I forced the decimal digits to 2, it would still pass as a decimal and the formatting would be lost.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 19:34:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/60012#M34580</guid>
      <dc:creator>ncseric</dc:creator>
      <dc:date>2017-09-24T19:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Four decimal digits in payment amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/60015#M34583</link>
      <description>&lt;P&gt;Try :&lt;/P&gt;&lt;PRE&gt;amount = Convert.ToDecimal(string.Format("{0:0.00}", CurrentCartTotals["GrandTotal"]));&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Sep 2017 22:37:12 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/60015#M34583</guid>
      <dc:creator>NexusSoftware</dc:creator>
      <dc:date>2017-09-24T22:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Four decimal digits in payment amount</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/72637#M44881</link>
      <description>&lt;P&gt;Can someone confirm whether the solution recommended here worked? We are experiencing the same issue.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 21:02:15 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Four-decimal-digits-in-payment-amount/m-p/72637#M44881</guid>
      <dc:creator>sg11769</dc:creator>
      <dc:date>2020-07-27T21:02:15Z</dc:date>
    </item>
  </channel>
</rss>

