I am using paypal standard as my payment gateway.
My problem is that, in Paypal Standard payment method,
I have done my code as below:
When user click on return to merchant button from paypal then user return to the site with order data , and on that page my order entry will be inserted in my DB.
So my problem occur when someone pays but don’t click on return to merchant link.
So in this case customer gets paid, but due to no entry my DB its not working proper.
Hope I am clear to all.
Thanks
Avinash
You have to set up a callback IPN that listens for PayPal’s response when the check out has been completed. This script can then handle the data entry portion. A great place to start is PayPal and its developer network.
Your solution, as you already noticed, is sub-optimal and error-prone (anything that relies on certain user behavior is to some extend).