Anybody else having any trouble directing back to the checkout complete page after a Paypal transaction?

Couple of cases -

1. If a user is logged in, then everything acts as expected. After returning to site from paypal - user ends up on the checkout complete page with message.

2. If a user is not logged in, but uses an email that is on the system (so it doesnt need to create an account also on checkout) - user 404s onto a /ID/payment/return/aslksalkjaslaskj

3. If a new user, same as above.

Anyway of just choosing an url for it to redirect page to? Or is some of the above by design? Im sure a week ago the complete page was the destination from any scenario, with a message reflecting said scenario.

Any help much appreciated.

Comments

gamepaused’s picture

Couple of things.

- Orders are going through - it's the url redirect that is the problem on anybody other than logged in.
- IPN stuff showing fine in logs.
- Orders all going past checkout and into pending, which I think is right?
- Nothing in template.php is throwing it
- I have a rule to send an email when changing from pending to complete - but turned on or off this makes no difference.

gamepaused’s picture

Similar issues here: http://drupal.org/node/1130166

rszrama’s picture

Status: Active » Needs review

Hmm, you know, I bet I know what it is. The latest PayPal dev updated to use a new API function that's in Commerce dev on IPN processing. If you've already updated to the latest PayPal dev, then all you need to do is update to the latest Commerce dev and run update.php. This should be fixed by a 1.1 release of Commerce very shortly and a point release of PayPal shortly thereafter so we can bring some stability to the development of the payment gateway modules.

gamepaused’s picture

Ah. Will check this asap and post back, hopefully with a live site in a few hours ;)

gamepaused’s picture

Worked perfect. Star - as usual!
Link coming soon!

gamepaused’s picture

Ah.
Anybody know an easy way to theme this page with a tpl?

gamepaused’s picture

could I used page--commerce--checkout--complete.php?

rszrama’s picture

Status: Needs review » Fixed

Not sure. It is just a form, so perhaps you can form alter it. Otherwise there's the nefarious hook_page_alter(), too...

Glad you got the original issue sorted out. : )

gamepaused’s picture

It's live!
Much thanks.

www.gamepaused.net

rszrama’s picture

Wonderful job. I love the site and the Zelda icons rock. Huge gaming fan here, even if I don't find time for much actual playing. ; )

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.