Paypal Express with Payflow-UK
1.5.6c
https://www.zen-cart.com/showthread....s-checkout-bug
https://www.zen-cart.com/showthread....84#post1360684
I can't update my server to php 7+ as this bug still exists.
I desperately need to upgrade to the latest php and until this is solved I can't.
Can we please work to solve this problem.
Please, i've tried to solve it on my own and I desperately need the ZenCart team to help on this one.
Re: Paypal Express with Payflow-UK
FWIW, I found this (https://www.paypal.com/us/smarthelp/...-code-4-ts1205) PayPal posting describing the reasons that a result code 4 (Invalid amount) would be returned. It appears that 'Invalid amount' can mean a lot of things (not necessarily due to an amount-related issue)!
Re: Paypal Express with Payflow-UK
Quote:
The amount being passed contains an invalid character or amount.
The address contains a period (for example, "Ave." or "Rd.").
Use only two digits to the right of the decimal point. For example, "137.899" is incorrect. The correct format is "137.89" or "137.90" (if you're rounding up).
Difference I can see in CURL log is
The pricing amount values in 1.5.4 are always to 2 decimal places in 1.5.6 they are rounded
[AMT] => 15.90
[ITEMAMT] => 12.00
[SHIPPINGAMT] => 3.90
[PAYMENTREQUEST_0_AMT] => 15.9
[PAYMENTREQUEST_0_ITEMAMT] => 12
[PAYMENTREQUEST_0_SHIPPINGAMT] => 3.9
What does DrB think? Can someone who talks to DrB ask him to come to this thread please
Re: Paypal Express with Payflow-UK
Elsewhere you posted:
Quote:
Originally Posted by
DigitalShadow
Would like to add to this that I've had the same error.
Replacing /includes/modules/payment/paypalwpp.php from v1.5.4-12302014 fixed issue on v1.5.6c-07162019
The file from v1.5.5-03172016 onwards has the problem
If replacing the 1.5.4 file with the 1.5.6 file works, then what's the goal regarding 1.5.5?
Quote:
DigitalShadow]1.5.6c
...
I can't update my server to php 7+ as this bug still exists.
I'm not sure I understand why you can't upgrade your PHP. I'm guessing you're thinking this "invalid amount" error is caused by PHP 7?
But, then you said it's fixed on 1.5.6c. And you said you're using 1.5.6c.
Re: Paypal Express with Payflow-UK
I am running zen-cart 1.5.6c apart from the paypal files which I've pulled from 1.5.4.
The paypal files from 1.5.5 onwards do not work with paypal/payflow UK (regardless of php version) I mentioned this as there is a clear change in the way the paypal code is written from 1.5.4 to 1.5.5.
The paypal files from 1.5.4 do work with payflow uk, but do not work with php 7
So as the 1.5.4 paypal files do not work with php7+ I have to run the site in php 5.6 to ensure the paypal files from 1.5.4 work even though the rest of my website is running zen 1.5.6c
Re: Paypal Express with Payflow-UK
I've replied DrB, I think you mis-understand the issue, please reply back.
1.5.5 onwards is broken for payflow UK
I am using 1.5.4 paypal files to make 1.5.6c work
so can't use php 7> as 1.5.4 code doesn't work with php 7
please help :smile:
Re: Paypal Express with Payflow-UK
Re: Paypal Express with Payflow-UK
Re: Paypal Express with Payflow-UK
Any reason you are ignoring this bug that causes any version after 1.5.5 to not work with payflow UK?
I don't understand why you aren't willing to investigate this issue.
Re: Paypal Express with Payflow-UK
I will gladly donate/pay to get this bug fixed!