PayPal does not consider +5.00 to be the same as 5.00. Remove the sign from the number. Fixes bug #12152.

This commit is contained in:
Colin Kuskie 2011-06-06 09:11:05 -07:00
parent 3151a029de
commit b21a6e331b
3 changed files with 8 additions and 1 deletions

View file

@ -265,7 +265,7 @@ sub paymentVariables {
handling_cart => $cart->calculateShipping, ##According to https://www.x.com/message/180018#180018
tax_cart => $cart->calculateTaxes,
discount_amount_cart => -($cart->calculateShopCreditDeduction),
discount_amount_cart => abs($cart->calculateShopCreditDeduction),
# When we verify that we have a valid transaction ID later on in
# processPayment, we'll make sure it's the cart we think it is.