I am adding an item of 20.00 and setting the order total to 22.00
paymentDetails.OrderTotal = new PayPalSandboxWS.BasicAmountType()
{
currencyID = ConvertProgramCurrencyToPayPalSandbox(currency),
Value = "22.00"
};
and setting the shipping total to 2.00
paymentDetails.ShippingTotal = new PayPalSandboxWS.BasicAmountType()
{
currencyID = ConvertProgramCurrencyToPayPalSandbox(currency),
Value = "2.00"
};
But I am getting this error: The totals of the cart item amounts do not match order amounts.
Please assist
You missed setting the
ItemTotal
value! That caused this erorr: