kjepaa wrote:I could not get PayPal sandbox to return a token.  It comes back with 3 errors, all related to currency amounts (item amount, order amount, max amount if I recall correctly).  The amounts are being sent as strings with 4 decimal places "0.0000".  I think paypal will only accept 2 decimal places.  I changed all the string amounts to only 2 decimal places ("0.00") and got a token back.
I have a similar problem.
Where do I change number of decimals?
Regards
Find all ""0.00"", Subfolders, Find Results 1, Current Project: Plugins\Nop.Plugin.Payments.PayPalExpressCheckout\Nop.Plugin.Payments.PayPalExpressCheckout.csproj, ""
  D:\Code\projectsHG\NOPCommerce_30_SIDS\src\Plugins\Nop.Plugin.Payments.PayPalExpressCheckout\Services\PayPalCartItemService.cs(58):                                                                  Value = _taxService.GetProductPrice(item.Product, _priceCalculationService.GetSubTotal(item, true), out taxRate).ToString("0.00")
  D:\Code\projectsHG\NOPCommerce_30_SIDS\src\Plugins\Nop.Plugin.Payments.PayPalExpressCheckout\Services\PayPalOrderService.cs(46):                                       new BasicAmountType {currencyID = currencyCode, Value = cartTotal.ToString("0.00")},
  D:\Code\projectsHG\NOPCommerce_30_SIDS\src\Plugins\Nop.Plugin.Payments.PayPalExpressCheckout\Services\PayPalOrderService.cs(48):                                       new BasicAmountType {currencyID = currencyCode, Value = cartTotal.ToString("0.00")},
  D:\Code\projectsHG\NOPCommerce_30_SIDS\src\Plugins\Nop.Plugin.Payments.PayPalExpressCheckout\Services\PayPalOrderService.cs(70):                           Value = (cartTotal + toAdd).ToString("0.00")
  Matching lines: 4    Matching files: 2    Total files searched: 184