Forums / Install & configuration / Pay-per-download doesn't work with eZP 4.3
Pascal France
Monday 31 January 2011 6:45:16 am
Hi,
I've tested the pay-per-download system following this doc: Selling Pay-Per-Download Products
I've tested the pay-per-donwload extension too (Pay-Per-Download extension).
Conclusion: this works fine with eZP 4.1.4 but not with eZP 4.3
With eZP 4.3 we can purchase the produc but once we come back from the site Paypal Sandbox to our ezp site we get these errors:
and the end of the file eZPaypalChecker.log is:
31-01-2011 15-16 requestValidation. response from server is: VERIFIED 31-01-2011 15-16 check Field ---- 31-01-2011 15-16 ERROR - receiving value doesn't match!!! 31-01-2011 15-16 Field :payment_status 31-01-2011 15-16 Value :Pending 31-01-2011 15-16 Expected value :Completed 31-01-2011 15-16 ---- 31-01-2011 15-16 checkPaymentStatus faild
The Pay-per-download role is never assigned to the test user.
I've done many tests and attemps but the result is always the same.
Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
Thiago Campos Viana
Monday 31 January 2011 8:07:13 am
Maybe the shop extension has some bugs, it seems discontinued since the release of 4.3.
eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924 Twitter: http://twitter.com/tcv_br
Monday 31 January 2011 8:57:17 am
Olá Thiago,
Então como é que vamos fazer !
Is there anyone who can corroborate what Thiago said ?
And if it's true, is there a new shop extension/project ?
Peter Keung
Monday 31 January 2011 9:53:38 am
I don't know of any reason why the pay-per-download code would not work with the latest versions of Exponential (for now). Your specific error seems to be a problem with PayPal and/or the payment gateway extension. The pay-per-download workflow (or any other shop workflow) won't fire if the payment gateway in front of it doesn't complete properly. Perhaps you have Payment Review enabled in your Sandbox account -- it should be disabled -- which isn't allowing a test payment to return as completed.
As for the Exponential webshop, although it is officially deprecated now, it still works as of Exponential 4.4. We have some clients looking at external solutions (such as Google Checkout) for everything after the shopping basket.
http://www.mugo.ca Mugo Web, eZ Partner in Vancouver, Canada
Monday 31 January 2011 10:18:33 am
Hi Peter,
Thanks for your reply.
1°/ Payment Review is well disabled
2°/ As for the payment gateway (ezpaypal extension) I use the same extension in all tested eZP installations and it comes from http://svn.ez.no/svn/extensions/ezpaypal/trunk/
Monday 31 January 2011 2:13:43 pm
Hello
You marked this as solved, but, what was the real problem?
Monday 31 January 2011 11:23:15 pm
Sorry,
It was a mishandling. The problem has not been solved.
Peter VARNOK
Thursday 03 February 2011 11:54:38 am
We are also very interested by such a functionality.
If someone could provide a solution so that it works with EZP 4.3 we'd be very pleased.
Thanks in advance.
P.Varnok
Friday 04 February 2011 4:55:07 pm
We just tested this with Exponential 4.4 and the ezpaypal extension.
We were able to reproduce the same problem in the PayPal sandbox: PayPal was returning a "Pending" response, while the ezpaypal code is expecting "Completed". You could hack classes/ezpaypalchecker.php (around line 82) to change the check to accept both "Pending" and "Completed" just so that your PayPal tests work. However, if you dig a bit deeper, the response says "pending_reason = unilateral" which means that the e-mail address of the recipient account has not been verified. So make sure that your configured recipient e-mail address is 1) verified; and 2) it's the specific seller e-mail address, not the general e-mail address on your sandbox account. Then PayPal should start returning "Completed" responses.
The pay-per-download code, when executed after a successful payment, still works :)
Sunday 06 February 2011 9:55:49 am
Peter, thank you very much for your collaboration ;-)
I knew nothing about Paypal or how to setup an e-shop. Now I know a little more....
The problem I encountered was actually due to a problem of management of currency (dollars, euros, pounds, etc....). If the seller account is in U.S.A so it will only accepts dollars by default . If the products are in euros then the payment will not succeed.