tapout Posted April 16, 2007 Posted April 16, 2007 I have read many posts on here about the problem with PayPal transactions and the need for the customer to click the tiny "return to merchant" link after completing a Payment with PayPal. Relying on the customer to click such a link to send the order information back to your OSC site and log the transaction in your OSC order log is a highly unreliable process as many others have discovered. There seems to be two common solutions to this problem pointed out in other posts on this forum: 1. Set the auto return property to True and supply a return URL in your PayPal account's profile section 2. Install the PayPal IPN modification to your OSC store (it is unclear if this actually resolves the issue however) After reading PayPal's help section on IPN and the auto return feature it seems that there is another solution which would work well if you do not want to hard code in a return URL into your PayPal account. Hard coding in a return URL will only work if you have only one store associated with that PayPal account. I happen to run two completely different stores that share the same PayPal account so this solution will not work. The solution that would work the best and is indicated by PayPal is to specify the return url within the website payment button or link code. My question is this - Where '(in OSC) and HOW would I specify this call from within the many OSC php scripts? Does any one know where in the OSC code you need to specify this auto return call in the PayPal code and how to do it? Thanks
Guest Posted April 16, 2007 Posted April 16, 2007 in your catalog\includes\modules\payment\paypal.php are the parameters passed to paypal. There you will see a code line: tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . You could add another line like tep_draw_hidden_field('rm', 2) . This will do the auto return. The problem is none of the above you mentioned will work properly, because the customer can pay and close his browser. So no chance for a redirect to your store. The IPN option will pre-log the order allright, but this way someone can go up to paypal and then abort. (Or get to the final confirmation page and do the same) So the store owner has to do the cleanup, not an easy task for a store that receives lots of orders daily. Perhaps is best to use the recover cart sales contribution so you can see what products a customer ordered at least and then customize it to create an order if necessary. Because you get few cases where the customer may close the browser after paying.
tapout Posted April 16, 2007 Author Posted April 16, 2007 Thanks enigma1! That is the best reply to this issue that I have seen. Does adding the new line in the PayPal.php script alleviate the issues with the IPN contribution and the aborting of transactions in PayPal? If the customer still does not click the Return to Merchant link, but closes their browser window after completing the payment at PayPal are they still redirected back to your OSC store? Thanks again. BTW - I just installed the IPN cont and it works well, but I will have to be very careful to verify all orders in my PayPal account due to the potential of the customer to abort on the PayPal side. I am also going to look at the Cart Cleanup contribution you mention.
pinklep Posted July 2, 2007 Posted July 2, 2007 Thanks enigma1! That is the best reply to this issue that I have seen. Does adding the new line in the PayPal.php script alleviate the issues with the IPN contribution and the aborting of transactions in PayPal? If the customer still does not click the Return to Merchant link, but closes their browser window after completing the payment at PayPal are they still redirected back to your OSC store? Thanks again. BTW - I just installed the IPN cont and it works well, but I will have to be very careful to verify all orders in my PayPal account due to the potential of the customer to abort on the PayPal side. I am also going to look at the Cart Cleanup contribution you mention. tapout - did you get this figured out? I have the same problem and want to know the best solution. I am a Jedi, like my father before me!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.