Hi!
Joomla 2.5.20.
VM 2.6.0a (also for 2.6.0 the same, therefore updated, hoping that it will work, but - not ;-()!
Set Paypal plugin for Express Checkout! All works fine - in cart pressing appropriate button, it redirects to the Paypal! BUT, when I create Coupon (no meatter - permanent or gift, the same problem) and use it in Cart, after applying it, Paypal Express Checkout does not work - it returns error: "An error occurred. The payment has not validated. Please choose another payment"
Debuggin returns error in Total number:
"10428: Handling total is invalid."
"PayPal response::
Array
(
[TIMESTAMP] ⇒ TIMESTAMP
[CORRELATIONID] ⇒ XXXXX
[ACK] ⇒ Failure
[VERSION] ⇒ 104.0
[BUILD] ⇒ 10952652
[L_ERRORCODE0] ⇒ 10428
[L_SHORTMESSAGE0] ⇒ Invalid Data
[L_LONGMESSAGE0] ⇒ Handling total is invalid.
[L_SEVERITYCODE0] ⇒ Error
[custom] ⇒ 665fbb0cfcdf51cee675d5c0704fa2ea
[method] ⇒ SetExpressCheckout
)"
PayPal SetExpressCheckout Request variables::
Array
(
[METHOD] ⇒ SetExpressCheckout
[version] ⇒ 104.0
[USER] ⇒ XXXXXX
[PWD] ⇒ XXXXXX
[BUTTONSOURCE] ⇒ VirtueMart_Cart_PPA
[SIGNATURE] ⇒ XXXXXXXX
[CURRENCYCODE] ⇒ EUR
[IPADDRESS] ⇒ XXXXXX
[L_PAYMENTREQUEST_0_NAME0] ⇒ PRODUCT_NAME
[L_PAYMENTREQUEST_0_NUMBER0] ⇒ PRODUCT_NAME
[L_PAYMENTREQUEST_0_AMT0] ⇒ 9000
[L_PAYMENTREQUEST_0_QTY0] ⇒ 1
[PAYMENTREQUEST_0_ITEMAMT] ⇒ 9000
[PAYMENTREQUEST_0_SHIPPINGAMT] ⇒ 0
[PAYMENTREQUEST_0_HANDLINGAMT] ⇒ -2700
[PAYMENTREQUEST_0_AMT] ⇒ 6300
[PAYMENTREQUEST_0_CURRENCYCODE] ⇒ EUR
[RETURNURL] ⇒ URL
[CANCELURL] ⇒ URL
[ADDROVERRIDE] ⇒ 1
[NOSHIPPING] ⇒ 0
[MAXAMT] ⇒ 1000000000
[LOGOIMG] ⇒ LOGO
[LOCALECODE] ⇒ GB
[PAYMENTREQUEST_0_PAYMENTACTION] ⇒ Sale
)
"
Why - I do not know...
Tested with 2 different environment, 2nd one - fresh Joomla and VM install, nothing else!
Quite important thing for me... I think - it's bug, because - why normally it works, but just using Coupon - it does not work?
Thank You!
P.S. With discounts all works fine...
Hi Mole_LR
Did you manage to find a solution? It happens to me too. I talked to paypal support and they detected the problem. It is caused by the variables that the cart uses when checking out. One of them, PAYMENTREQUEST_0_HANDLINGAMT, is negative so it should not be used, instead, they suggested a different variable that should be use which allows negative numbers, however, I have to clue on how to fix it either.
Pretty sure Alatak ( she does the plugins) knows about it and will action
She does know I believe, and said would try it out. We are all expecting a fix, I am sure that it is easy to accomplished for someone with knowledge. Lets keep our fingers crossed :)
Hello
Yes there was another post about . I am going to check it. Thanks
Hello
Why in your case you have this
QuoteOne of them, PAYMENTREQUEST_0_HANDLINGAMT, is negative so it should not be used,
Can you try the version attached. Replace the paypal folder in plugins/vmpayment
Thank you.
[attachment cleanup by admin]
Hi, i have the same problem, but the paypal.zip didnt solved my problem, any ideas?
VirtueMart 3.0.12
Joomla! 3.4.8
I am encountering exactly the same problem when trying to apply a 10% coupon using PayPal Express Checkout. The VM calculates the discount correctly but, when the payment is sent to PayPal it returns error: "An error occurred. The payment has not validated. Please choose another payment"
The error log is:
2016-02-13 15:17:22 ERROR vmError: 10413: The totals of the cart item amounts do not match order amounts.<br />
2016-02-13 15:17:22 ERROR plgVmConfirmedOrder, response:: Array
(
[TOKEN] => EC-9WK1527xxxxxxxx
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2016-02-13T15:17:23Z
[CORRELATIONID] => aa0fe44xxxxx
[ACK] => Failure
[VERSION] => 104.0
[BUILD] => 18308778
[L_ERRORCODE0] => 10413
[L_SHORTMESSAGE0] => Transaction refused because of an invalid argument. See additional error messages for details.
[L_LONGMESSAGE0] => The totals of the cart item amounts do not match order amounts.
[L_SEVERITYCODE0] => Error
[custom] => a4qoj672gg8cghi9505emlxxxx
[method] => DoExpressCheckoutPayment
[invoice] => TT5E038
[payer_id] => TXJDBGQ6Nxxxx
[first_name] => WENDY
[last_name] => xxxxxxx
[payer_email] => xxxxxx@gmail.com
)
(I have added xxxx to protect any possible confidential information)
I would be interested to know if the zip file shown as a fix would work on this latest version of VM. I would prefer not to overwrite a newer version with files designated for an earlier version in case I cause any further disruption.
If anyone has managed to come up with a newer fix I would welcome any response.
Incidentally, it works fine if a coupon code is not used, and I have also tried using one page checkout as well as disabling OPC but with no luck.
Rgds, Mark
Further to my last, and perhaps to simplify the problem:
I have a product priced at £6.25.
The coupon 10% gives VM checkout page a value of £0.63 (it has rounded up - although I have not checked the box in CONFIG>PRICING>ROUND ONLY DISPLAY
The total showing in the cart is thus £5.63.
When I am directed to PayPal, the amount is £5.62 !!
Who has stolen my penny?
:)