same problem here!!IPN is not working for me.....!!!!!!!!!!!!!!
order lost !!!!.........tired of fight with Zencart and Paypal.....
Over a 100 pages of sessions show, so it didn't delete lots of sessions. After a quick look at the code I assumed 1.3.8a would delete the sessions, but maybe it only deletes the sessions if the PDT token is being used? Or maybe it just does not work, I never really checked.
Hello,
I am having same issues and would like to pose this question.
Why does zen cart have to wait for user to return from paypal website in order to post the order as confirmed?
From the debug IPN logs I notice that paypal sends an IPN as soon as customer commits payment (pay $####.## now).
Why cant zencart use this IPN payment confirmation to clear the order and make it visible?
Sorry if this sounds like a naive question.
Following up on my prior post about possible bug in zen cart and auto return.
It seems that zen cart is relying on PDT (payment data transfer) that is sent with auto return to fullfill order completion. However this data is soley intended for use to display transaction details to your customer on your webpage after they return. Not for orderfullment. IPN should be used for order confirmation, which does not require auto return...
I found this excerpt in the paypal documentation:
https://www.paypal.com/en_US/ebook/P...o.html#1016964
[quote]
Differences between Payment Data Transfer (PDT) and Instant Payment Notification (IPN)
PDT's primary function is to display payment transaction details to buyers when they are automatically redirected back to your site upon payment completion; however, there are cases where you will not receive notification of all transactions, such as with pending transactions, refunds, and reversals. For these reasons, or if you are using this data to fulfill orders, PayPal strongly recommends that you also enable Instant Payment Notification (IPN).
Both IPN and PDT send back the same data; however, there are several important differences.
PDT:
l
Is available only to merchants who integrate PayPal with their websites by using Website Payments Standard.
l
Requires Auto Return to be enabled.
l
Auto Return will include an ID that can be used to query PayPal for the complete transaction details.
l
It is possible to miss a notification if the user closes the browser before the redirection is complete.
IPN:
l
Does not require Auto Return to be enabled.
l
At the end of the website payment flow, PayPal POSTs the IPN data asynchronously (i.e. not as part of the website payment flow).
l
IPNs will also POST for eCheck clearings, reversals, and refunds.
[end quote]
Unless I hear someone has already code mod, I will start looking for a way to hack zencart implement IPN confirmation instead of PDT.
Zen Cart does use IPN, however should you read further up paypal has had issues with the IPN now for a while
and the reason that it waits till the order comes back is due to the number of people that go to paypal then dont complete the order,
that leaves a large number of open unpaid tickets.
Zen cart PCI compliant Hosting
If you have PDT configured, Zen Cart will use it to activate the paid order immediately, without waiting for the IPN to be received.
However, if the IPN is received before the customer clicks to return to the site, the order will be released anyway, and Zen Cart will recognize this and prevent any clashes.
If PDT is not configured, or if the customer does not click to return to the site, the IPN will still take care of activating the order.
If you're having problems with orders being activated after being paid via Website Payments Standard, verify that PayPal's servers aren't having a problem, and that your server is fully configured to receive IPNs reliably.
http://www.zen-cart.com/wiki/index.php/PayPal
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I believe the issue is in the store/ipn_main_handler.php file.
For payments standard, when customer commits payment, paypal is sending an IPN with transaction id of "web_accept" which is currently not handled by the script.
I modified the script abit and it seems to work now for at least one of the scenarios..
A nonpaypal customer who is just using a credit card to make the purchase.
This is under the beta sandbox environment.
On the good chance I broke the logic for other scenarios, are there any volunteers who could help test?
Also, where's the ideal place to post the modified script?
regards
Sorry folks,
I did not see the file attachments button before.
Enclosed is the modified ipn handler script to allow "web_accept" transactions.
From my end, it seems to fix the issue of zencart (1.3.8) not getting order confirmation for customers who place orders without auto return. But it could definetly use more testing.
the script should replace the one under the main root directory of zencart.
any feedback appreciated.