<?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 How do I add tax to my receipt? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-add-tax-to-my-receipt/m-p/72536#M44809</link>
    <description>&lt;P&gt;In C# I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;               var othertaxrate = new otherTaxType
                {
                    localTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    nationalTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    alternateTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    localTaxAmountSpecified = true,
                    nationalTaxAmountSpecified = true,
                    alternateTaxAmountSpecified = true,
                    vatTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    vatTaxAmountSpecified = true,
                    vatTaxRate = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    vatTaxRateSpecified = true
                };


//  and in transactionRequest I have  snippet


                    customer = customerProfile,
                    payment = paymentType,
                    billTo = billingAddress,
                    lineItems = lineItems_d,
                    tax = othertaxrate

&lt;/PRE&gt;&lt;P&gt;The line&amp;nbsp; &amp;nbsp; &amp;nbsp; tax = othertaxrate&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error CS0029&lt;BR /&gt;Cannot implicitly convert type&lt;BR /&gt;'AuthorizeNet.Api.Contracts.V1.otherTaxType'&lt;BR /&gt;to 'AuthorizeNet.Api.Contracts.V1.extendedAmountType'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I show tax on my receipt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve2301&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 12:22:58 GMT</pubDate>
    <dc:creator>steve2301</dc:creator>
    <dc:date>2020-07-17T12:22:58Z</dc:date>
    <item>
      <title>How do I add tax to my receipt?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-add-tax-to-my-receipt/m-p/72536#M44809</link>
      <description>&lt;P&gt;In C# I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;               var othertaxrate = new otherTaxType
                {
                    localTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    nationalTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    alternateTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    localTaxAmountSpecified = true,
                    nationalTaxAmountSpecified = true,
                    alternateTaxAmountSpecified = true,
                    vatTaxAmount = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    vatTaxAmountSpecified = true,
                    vatTaxRate = Convert.ToDecimal(HttpContext.Current.Request["TotalTaxamount"]),
                    vatTaxRateSpecified = true
                };


//  and in transactionRequest I have  snippet


                    customer = customerProfile,
                    payment = paymentType,
                    billTo = billingAddress,
                    lineItems = lineItems_d,
                    tax = othertaxrate

&lt;/PRE&gt;&lt;P&gt;The line&amp;nbsp; &amp;nbsp; &amp;nbsp; tax = othertaxrate&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error CS0029&lt;BR /&gt;Cannot implicitly convert type&lt;BR /&gt;'AuthorizeNet.Api.Contracts.V1.otherTaxType'&lt;BR /&gt;to 'AuthorizeNet.Api.Contracts.V1.extendedAmountType'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I solve?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I show tax on my receipt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve2301&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 12:22:58 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/How-do-I-add-tax-to-my-receipt/m-p/72536#M44809</guid>
      <dc:creator>steve2301</dc:creator>
      <dc:date>2020-07-17T12:22:58Z</dc:date>
    </item>
  </channel>
</rss>

