file download and paypal not calling back

Project: 
Ubercart
Category: 
bug report
Priority: 
critical
Status: 
closed

Hi, I have installed the file product module, all seems to be working fine except when checking out with paypal. The payment gets authrosized via paypal but the paypal gateway doesnt appear to callback to the shop as the My Files link does not apear in the menu and no orders appear in the order area of the shop after being re-directed from paypal.

I have added the API Access setting in the shop provided by paypal.

Any ideas???

Thanks, Matt

Re: file download and paypal not calling back

So you can get an order / file to show up when purchasing with a Credit Card or Test Gateway, but not PayPal? Odd - PayPal has been successful in all of my tests. Are you using the latest versions of everything?

Update

Good point I am using an old version of ubercart will update alpha8 and try again.

Thanks, Matt

Should have updated

Matt, I should have updated this post. There does seem to be an issue with PayPal IPN function in the uc_paypal.module. When IPN is received, the module is set to update the order status to "payment received"..

I've tried multiple configurations of Workflow-ng with different actions for PayPal and CC, and the only way I've gotten them to work is this:

PayPal:
- On complete sale:
Check order balance (0)
Check payment method (PayPal)
Action: Update status "payment received"

Credit card:
- Same as above except action is update to "Completed"

And then I added a line to the uc_paypal.module's IPN function that sets the order_status to "Completed" . Only this way am I able to get the files to unlock properly (they unlock at Completed status). Mainly the problem is the IPN isn't ALWAYS reported instantly at checkout - there are often delays. So the only way to successfully know if the transaction is complete is to wait for the IPN ping from the PayPal Server.

I posted about this here too:
http://www.ubercart.org/comment/6924/Re-Credit-cards-being-charged-order...

I'm hoping the Uberdudes can take a look at this and examine their code for the module. I'd submit a patch but the only patch I have is adding that line Smiling

Good luck!

Erik