Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PayPal transactions not showing up in OSC


Llamma123

Recommended Posts

Posted

I have been hoping someday to have a solution to contribute... Today is that day. Please smack me down if anyone sees this as bad advice!

 

There is a new feature in paypal called "Auto Return"

 

Login to PayPal

 

Click "Merchant Tools"

Scroll down to the "Other PayPal Tools" section

Click on "Auto Return"

 

Select Auto Return = ON

Enter the autoreturn URL of your cart like-

https://yourdomain.com/catalog/checkout_process.php

 

Save changes

 

Now whenever a payment comes in from your cart and the user logs in, navigates through PayPal to complete payment, once the payment is submitted instead of the page where they have to opt to click continue, PayPal automatically clicks continue!

 

PayPal IPN contribution looks great but is a bit beyond what I am capable of installing at the moment, this fix took several minutes to implemnt once I found it. I hope it is useful to others.

 

 

Here are a couple links to the PayPal IPN Contribution

http://www.oscommerce.com/community/contri...ons,1352/page,7

http://www.oscommerce.com/community/contri...ons,1753/page,8

Posted

The question is, what page would you wan't the customer directed to? Would checkout_process.php show the customer that the order process was successfull?

Posted
The question is, what page would you wan't the customer directed to? Would checkout_process.php show the customer that the order process was successfull?
checkout_process.php Yes, checkout_process.php puts the order in the database, sends the emails, clears the checkout variables, empties the cart, and redirects to checkout_success.php.

 

checkout_payment.php on failed transactions (meaning that they should edit their details or choose another payment method).

 

Hth,

Matt

Always back up before making changes.

Posted

The other day I received the following info from PayPal, which is said to also be on their site:

 

I continue to recommend IPN as the primary way to receive payment details. If you need them posted to the "return" URL, I think setting rm=2 is the best option. If neither of those are adequate, you could consider the auto-return.

 

IPN is typically sent first although there are no guarantees.

 

IPN remains the most reliable way to receive payment details. auto-return still won't come through 100% of the time and doesn't work at all for things like pending payments or refunds.

 

I haven't tested the automatic return feature but from the above it would seem that cookies etc must be enabled since upon return osC must be able to identify the customer which in the default case is via osCsid.

"Any fool can know. The point is to understand." -- Albert Einstein

Posted

If using the paypal payment module, the following variables are already set in the button submission to PayPal:

 

tep_draw_hidden_field('return', tep_href_linkFILENAME_CHECKOUT_PROCESS, '', 'SSL')) .

tep_draw_hidden_field('cancel_return', tep_href_linkFILENAME_CHECKOUT_PAYMENT, '', '

 

It's pretty clear that the variables required by PayPal to return you to the correct screen are already there, and by turning on Auto-Return you don't have to worry as much about the customer actually clicking the "return to merchant" button at the PayPal site, it will happen on it's own (hopefully!).

 

As far as those variables, Paypal does require you to provide a return URL in your profile, but it can be anything as the ones provided by the button submit override it. Here is the pop-up help box info from the PayPal site about that:

 

"The Return URL will be applied to all of your Auto Return payments unless otherwise specified within the button or link for that Website Payment. You may specify a different Return URL by changing it in your profile settings; otherwise, you may add or edit the HTML (variable: return) associated with a button or link. In this case, the Return URL that is associated with the button or link will override what was specified in the profile settings. "

 

 

This is especially helpful as we have several sites owned by the same company that use PayPal and they all pay to the same account. If I had to use just the one return url from our PayPal profile, we couldn't turn on Auto-Return as it wouldn't necessarily return to the correct site.

In this case, since we are supplying the return url in the button submit fields, it works fine.

However, we did notice that if you cancel at the paypal site before making the payment, it doesn't auto-return, because they want you to read the message about them not having charged your credit card.

I wish I could bypass that!

Posted
I haven't tested the automatic return feature but from the above it would seem that cookies etc must be enabled since upon return osC must be able to identify the customer which in the default case is via osCsid.

Actually it works fine because the "tep_href_link" funtion that is used passes the session ID in the return and cancel_return variables so that upon return the session will work.

I just tested it by turning off all cookies, and indeed, it was fine.

(the link back did have the session ID in it)

Posted

In its current form, Auto-return is problematic for this application because it doesn't supply payment information.

 

The best thing would be for OSCommerce to automatically support IPN for the database update, triggering emails, etc. IPN is very reliable, does not require the buyer to press Continue and does not require the merchant to set anything up in the PayPal account profile. By including a notify_url in the PayPal checkout button, which OSC should be able generate automatically, IPNs will be sent out.

Patrick Breitenbach

  • 1 year later...
Posted

I am quite confused by all the back and forth on this.....

 

Yes or no - on using PayPal auto-return?

Do I (or do I NOT) need ot modify any of the coded in the paypal.php file??????

 

Mine is NOT working at this time.... and it is all standard, per the 2.2 MS2 release.....

 

I am actually new to OSC, and supporting a customer who I moved onto OSC for their shopping cart - so far - I am having more frustration than overall satasfaction......

 

I like many of the great features and it is a great product in many ways (I will contribute and move more clients to it - if I can see the current bugs work out).

 

So far - UPS calcs are off - by as much as USD 2.00+ even for a 1.5+ package......

 

And, PayPal is NOT working correctly...... PayPal orders are not going in after they pay....

 

I love how the catelogs, orders etc... all work.... and many lots of the other features!

 

Thanks,

 

Mark

Posted

Mark, I use the paypal that comes with osc and have no problems but most of the people who use paypal use the paypal ipn which you can find in the contributions area. should solve your problems

Wendy James

 

Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.

  • 2 weeks later...
  • 4 weeks later...
Posted
Excellent solution Llamma123.

It works like a charm.

 

Thank you for your simple solution.

 

I didnt understand any other thread about paypal.

 

You rock man.

 

I cant find "Other PayPal Tools" am I missing something??

Posted

Looks like paypal moved stuff around. Now you can find auto return by logging into paypal and...

 

1 Click the My Account tab..

2 Click the Profile subtab.

3 Click the Website Payment Preferences link in the Selling Preferences column on the right. The Website Payment Preferences page opens.

4 Click the Auto Return On radio button.

5 Enter the Return URL that will be used to automatically redirect your buyers in the Return URL field.

6 Review the Return URL requirements.

7 Click Save.

 

We have now upgraded to Papal IPN and like it much better, nothing gets missed (meaning even customers that go to papal and then decide not to purchase are left in the cart with the status of Preparing PayPal IPN and they need to be deleted manually)

 

Turning on auto return dropped the number of missed transactions from 50/50 to 90/10 so it was a useful step in the right direction. Implementing IPN dropped missed transactions to zero.

Posted

Also I should reply to some of the above posts, no need to edit any files or include any additional information to enable Auto Return... The only thing auto return does is to remove the OPTION of clicking contiue at the end of the transaction in PayPal. It ends up clicking continue for the customer 100% of the time. This almost eliminates the paid in paypal but no record in the cart situation.

Posted
We have now upgraded to Papal IPN and like it much better, nothing gets missed (meaning even customers that go to papal and then decide not to purchase are left in the cart with the status of Preparing PayPal IPN and they need to be deleted manually)

 

Can you please link to the version of the IPN contribution you installed? if there's one mess in osc, it;s this issue. I have a problem with the version I installed, or perhaps with my configuration, and would like to know if there's a newer, better version out here somewhere...

 

-Ethan

Posted

I'm not sure what IPN solution we installed. I had someone do it for me. I belive it was written by ponce 'de leon (sp?) and he's like the leader of the OSC journey so it works pretty well. I have a couple links in the first post of this thread that are about IPN but I cannot really advise any more beyond that.

 

If anyone elese can jump in and post some links to IPN stuff that would be great.

Posted

Quick question Llamma123, i have tried turning on "auto-return" but after i run a test purchase paypal doesn't seem to be returning to my site (url). does this change usually take a while to take effect ?

 

 

I'm not sure what IPN solution we installed.  I had someone do it for me.  I belive it was written by ponce 'de leon (sp?) and he's like the leader of the OSC journey so it works pretty well.  I have a couple links in the first post of this thread that are about IPN but I cannot really advise any more beyond that. 

 

If anyone elese can jump in and post some links to IPN stuff that would be great.

Posted

As I recall it happened right away for me.

 

So you make your purchase, choose paypal as payment method, login to paypal, confirm the amount and then... then what? is there still a continue button?

Posted

For me i only have one option and its paypal. customer can choose to pay credit card from there. So she/he puts in his address and information, then credit card info, then confirm payment. After this it will go the confirmation page, and two bottons below. which is save info or back to site.

 

 

 

As I recall it happened right away for me. 

 

So you make your purchase, choose paypal as payment method,  login to paypal, confirm the amount and then...  then what? is there still a continue button?

Posted

Is anyone using Paypal IPN with QT.Pro ? I have this problem where the checkout process completes but it doens't update inventory.

Posted

Thank you Llama.

I had gotten this advice yesterday but you made it clear enough that I was able to go back and make sure it was exactly correct.

I did have to change the page to the correct redirect url page. :)

 

I also agree that this seems to be the most confusing issue for OSC.

  • 3 weeks later...
Posted

You're the supa-llama! Worked great. Does it still work - if they don't have an account and try to pay by credit card though?

 

KASR

  • 2 weeks later...
Posted
I am quite confused by all the back and forth on this.....

 

Yes or no - on using PayPal auto-return?

Do I (or do I NOT) need ot modify any of the coded in the paypal.php file??????

 

Mine is NOT working at this time.... and it is all standard, per the 2.2 MS2 release.....

 

I am actually new to OSC, and supporting a customer who I moved onto OSC for their shopping cart - so far - I am having more frustration than overall satasfaction......

 

I like many of the great features and it is a great product in many ways (I will contribute and move more clients to it - if I can see the current bugs work out).

 

So far - UPS calcs are off - by as much as USD 2.00+ even for a 1.5+ package......

 

And, PayPal is NOT working correctly......  PayPal orders are not going in after they pay....

 

I love how the catelogs, orders etc... all work....  and many lots of the other features!

 

Thanks,

 

Mark

I am also confused. I just installed paypal ipn and when I click on the continue button I get an error page (The page cannot be displayed). The URL in the browser is: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7

 

Am I supposed to configure something in paypal_ipn.php?

Posted
I am also confused. I just installed paypal ipn and when I click on the continue button I get an error page (The page cannot be displayed). The URL in the browser is: http://checkout_process.php/?osCsid=38ad43...bb47d669f25ebe7

 

Am I supposed to configure something in paypal_ipn.php?

 

I'd recomend going to the contribution support forums and starting a new post for "PayPal IPN redirect issue" and see if anyone has input on that subject. http://www.oscommerce.com/forums/index.php?showforum=7

 

This thread is intended to be a place to discuss auto redirect which is a feature of PayPal and quite separate from IPN. Working properly IPN should pass everything and it looks like your missing "yoursite.com" Post a link to your new post and I'll reply there in more detail.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...