3 replies [Last post]
druru's picture
Offline
Brain Stormer
Joined: 08/08/2007
Juice: 228
Was this information Helpful?

In the throws of developing a simple 1 product uc site that use PP WPS.

In the PP account settings (not uc PP settings), you set the IPN and have the ability to set an "Auto Return" url. Obviously uc needs the IPN to register the order with it's own db tables. (fyi after greping the uc code i'm assuming that the IPN url should be set to: http://host/uc_paypal/ipn?)

However, does uc for PP WPS require the "Auto Return" url set to something specific or do i just set it to whatever i want like the front page?

I ask because i imagine that return url can be programmed to tell the customer something like "Thank you, we've approved your order, we've created an account for you..." or "Sorry but we couldn't complete your order at this time..." based upon the info it recieves back from the IPN.

What's the scoop? thanks

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15450
Re: Paypal WPS and Auto Return / IPN

You were right in your other thread about needing documentation! I didn't even know what to do here. I checked my test account, and all I've done is turn on the IPN but I have not entered an IPN URL. This is actually generated by the PayPal module when it creates the form.

As for the auto-return. I have that turned on, and I believe my experience was that I could not get it to work correctly using just the PayPal API. Instead, I have manually entered the following URL:

http://www.example.com/uc_paypal/wps/complete

This returns to the order completion page and will handle the user account creation and order updating for you. I really need to get docs up for that module before I forget everything. Evil

druru's picture
Offline
Brain Stormer
Joined: 08/08/2007
Juice: 228
Re: Re: Paypal WPS and Auto Return / IPN

just so i'm following you here.. there are two sets of settings. uc PP WPS settings and "the" PP settings for your paypal account at paypal.com

1) are you saying i do NOT need to set an IPN from within paypal's own account settings - that your form code somehow generates that and sends it to paypal on the checkout submit - meaning i should just leave the setting blank in my pp account?

if so very cool because it will allow me to use one PP business account wiht multiple sites!!!

2)I don't follow your auto return comment. I don't think you can have it turned on and NOT supply a return callback url? how would paypal have access to your site? they can't!

So it looks like that auto return url is a MUST for PP WPS to work correctly. otherwise the account won't get created, etc.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15450
Re: Re: Re: Paypal WPS and Auto Return / IPN

1) Correct, do not specify an IPN URL in your PayPal account. The URL PayPal should use will be sent in by Ubercart. Hadn't thought about the added benefit of that allowing you to use one account for multiple sites. Smiling

2) I was trying to have Ubercart send in the return URL but it didn't work out. So you do need to fill in that field just like I have done.