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
Comment #1
gamepaused commentedCouple 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.
Comment #2
gamepaused commentedSimilar issues here: http://drupal.org/node/1130166
Comment #3
rszrama commentedHmm, 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.
Comment #4
gamepaused commentedAh. Will check this asap and post back, hopefully with a live site in a few hours ;)
Comment #5
gamepaused commentedWorked perfect. Star - as usual!
Link coming soon!
Comment #6
gamepaused commentedAh.
Anybody know an easy way to theme this page with a tpl?
Comment #7
gamepaused commentedcould I used page--commerce--checkout--complete.php?
Comment #8
rszrama commentedNot 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. : )
Comment #9
gamepaused commentedIt's live!
Much thanks.
www.gamepaused.net
Comment #10
rszrama commentedWonderful 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. ; )