Hello,

I'm not the first (nore the last I'm afraid) to ask for support (or bug fix ??? I'd be surprised) about this "pending" end of process while paying through paypall sandbox : I found some other issues about that but could not find out what could be wrong.

I'm testing role buying on my dev site using paypall sandox and Ubercart (7.9-3.0-rc2). Configuration is as near as possible to installation default. I just set up the strict minimum (like payment paypall sandbox and role to purchase...)

Everything seems fine until redirected to my site on url mysite/cart/checkout/complete

Order complete

Your order is complete! Your order number is 16.Thank you for shopping at . While logged in, you may continue shopping or view your current order status and order history.Return to the front page.

I then try to click the link "view your current order status" which brings me to mysite/user/3/orders/16

Access denied

You are not authorized to access this page.

I then realise that my paid role has not been set. When I get back as admin to
mysite/admin/store/orders/view?order_id=&order_status=All

I see that my order has status "pending".

What can I do to have this order automated to "complete" with the proper role set on customer ?

Comments

longwave’s picture

Which PayPal method are you using - WPS, WPP, or Express Checkout?

neeteex’s picture

PayPal Website Payments Standard. I did not try the express, and WPP is not available in /admin/store/settings/payment . By the way, I suppose I'd have to suscribe for a pro account on Paypal ?

tr’s picture

Orders go from pending to payment received when you receive an IPN notification from PayPal. And roles don't get granted until you've received a payment. So see if you're getting those IPNs. There are quite a few other threads here and on ubercart.org that contain suggestions for tracking down why IPN notifications aren't getting to Ubercart. They all come down to a problem with your Drupal, Ubercart, server, or sandbox configurations.

neeteex’s picture

I've been one step beyond thanks to you TR, looking for info about IPN. This link was helpfull : http://arnelbornales.wordpress.com/2009/08/24/how-to-set-up-paypal-sandb... , especially on that part :

4. Click again on “Create a preconfigured buyer or seller account.” but this time create a “Seller” account.

5. On the “Test Accounts” page enable test mode for the business account by clicking “Disabled” (which changes it to “Enabled”).

6. In Drupal, enable the PayPal module (under Ubercart – payments)

7. Under “Administer » Store administration » Configuration » Payment settings” expand the “PayPal Website Payments Standard settings”.

8. Set “PayPal e-mail address:” to the “Log-in email” you see for the business account you created (unless you manually set this the email address will be something like “you_12313131233_biz@here.com”).

Unfortunately, for a reason I just can't imagine, paypal Sandbox payment is still "not recovered". This might come from paypal configuration, but also from drupal-paypal communication I believe. As far as I could go, I did not discover how to check for IPN transmission yet but I guess IPN wasn't transmitted since payment wasn't recovered from seller account.

Work in progress, any hint welcome.

longwave’s picture

There is an IPN History page buried somewhere on the PayPal site that helps debug things like this, and check your Drupal logs as any IPN messages should be recorded there.

neeteex’s picture

Many thanks longwave, I googled "IPN History page" and found out https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...

This let me know that all IPN sending are "failure", though I got paid and Drupal tells me "Order complete".

Where should I look from here ? Sandbox config, or Drupal config ?

neeteex’s picture

Status: Active » Closed (fixed)
Issue tags: +payment, +paypal ubercart ipn

Hum, I just feel ashamed now : the problem was just that I had not realised it was impossible (as far as I know) to get an IPN on my local machine (unless accessible from the web). I set up my box and apache properly to give access and everything went fine in the end.

At least I think I found THE link to configure Ubercart properly here : http://www.ubercart.org/docs/user/3356/configuring_paypal_website_paymen...

Notes about setting apache (ubuntu platform) :
1)sudo gedit /etc/apache2/ports.conf
make sure you do listen internet port (default is 80)
Listen 80

2)

sudo gedit  /etc/apache2/sites-available/default

comment deny lines

#    Order Deny,Allow
#    Deny from all
#    Allow from 127.0.0.1

3) restart
sudo service apache2 restart