In C# I have
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
The line tax = othertaxrate
gives me an error
Error CS0029
Cannot implicitly convert type
'AuthorizeNet.Api.Contracts.V1.otherTaxType'
to 'AuthorizeNet.Api.Contracts.V1.extendedAmountType'
How can I solve?
How can I show tax on my receipt?
Thanks,
Steve2301
07-17-2020 05:22 AM