ClearSolid Posted December 3, 2013 Share Posted December 3, 2013 (edited) for some reason when I redirect back from paypal to the order-confirmation page , I get a 302 moved temporarily. Im not sure why this is happening, but I end up getting redirect to the order-history. Im not sure if this causing the problem I am having in http://www.prestashop.com/forums/topic/282164-paypal-payment-but-no-orders/page-2 Edited December 3, 2013 by ClearSolid (see edit history) Link to comment Share on other sites More sharing options...
ibndawood Posted December 3, 2013 Share Posted December 3, 2013 Hi, This is the correct behaviour and this is how it is supposed to work. The reason is this : Prestashop sends Paypal lot of variables out of them here is a couple : 1. Notify URL - This is the URL which Paypal will post when a payment has been made (it is validation.php file). 2. Redirect URL - This is the URL that Paypal will display after the user makes payment and says "Return to abc Store". (order-confirmation) page. Now order confirmation expects few parameters which include order id, cart id, customer key, etc. but at the time of sending the parameters to paypal, order is not yet created. The order is created only after you make payment and paypal notifies prestashop. So at the time of redirecting to paypal order confirmation does not have order id and you are redirected orderconfirmation page. Order Confirmation page if it does not have any params redirects you to order history. This is the default standard behaviour. Hope this helps. 1 Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 So I would I add an URL to direct customers away from the Order History page (in my case it just sends back to the shopping cart checkout). When I was testing it, I had no idea whether the order was processed by PayPal or not. I'm a coding noob- so how do I edit the PHP file to add a URL?? Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 Why would you want to direct your customers away from the order history. Order History page is the correct page that the user should be redirected once completing the order. I suggest you test paypal with sandbox mode on. Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 - I'm not sure what the order history page looks like, but it takes me back to the check out page and looks exactly the same as wehn you launch the PayPal payment (still shows product in cart). - I tried to switch to sand box mode but it won't give me my credentials (when I enter my PayPal password it comes back with an error)- but doesn't do this for my API signature in Live Mode. Any help would be great!! Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 Hi you need to create a paypal sandbox account here : https://developer.paypal.com/ Once you create a sandbox account, you can use that account while making a purchase. I suggest you do complete testing in sandbox mode before switching to live mode. Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 So I setup my Sandbox account. I made a "mock" purchase and the same thing happens.....after it appears that PayPal processes the order it take me back to the Shopping Cart/ Summary page. Any suggestions on how to trouble shoot this? Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 (edited) Hello, Can u please tell me what is that same thing ? Were you able to complete the order ? What is missing ? Edited December 13, 2013 by ibndawood (see edit history) Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 Sorry. "the same thing" is that It takes me back to the Shopping Cart page. See Attached. The customer has no way of knowing that the purchase was successful.It still shows one product in the cart. To me this is a glitch and I would like to fix it. Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 Can I try your shop ? Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 You bet! http://shop.resqscan.ca/index.php Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 Lee, I did take a look and that is the default behaviour of express checkout. The use is not charged when he goes to paypal. The user only authorizes. Once he is back in the shopping cart page, he enters his information and then confirms the order from within your website (not at paypal). This is how express checkotu works. If you disable it, then the user will pay at paypal. Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 Oh. OK. Is one way better than the other from the consumer point of view. Also, if I disable Express in PayPal settings and only go with standard, then it won't automatically place my ONE carrier or select a payment method. Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 You will have to enable your carrier for all the zones. Shipping -> Carriers Once you enable the carrier you should be able to select it. Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 Nope. Didn't work. Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 If you wish I can take a look at your admin panel via screenshare on teamviewer and chat via skype. Link to comment Share on other sites More sharing options...
lee911 Posted December 13, 2013 Share Posted December 13, 2013 probably 2moro. i've been working on this for a few hours and need to take a break. Link to comment Share on other sites More sharing options...
ibndawood Posted December 13, 2013 Share Posted December 13, 2013 no problem Link to comment Share on other sites More sharing options...
joeloost Posted January 28, 2014 Share Posted January 28, 2014 lee911 what is the progress? I am having a similar problem whereby the order-confirmation page displays with no order detail. Once the customer pays with credit card (redirected to payment gateway site), the following is displayed on same page: "No template was found for this module. payfast". Payfast is the payment gateway. Any help appreciated Link to comment Share on other sites More sharing options...
YusufSay786 Posted February 19, 2015 Share Posted February 19, 2015 Im having the same issue with Payfast as the gateway. But It works perfectly fine on another site of mine. Once a user tries to make payment the payment is made but it redirect the user to payment history. It should first direct the user to a page where it informs the user his Order number and giving him the option to click on order history. Under Config info I have noticed the following error could it be host related Required parameters: Please fix the following error(s) Optional parameters: Please fix the following error(s) fopen Link to comment Share on other sites More sharing options...
trevorgilligan Posted July 10, 2015 Share Posted July 10, 2015 hi @ibndawood i have expres checkout . it is one page checkout. process is 1) paypal 2) order summer (click to confirm) 3) order confirmation. i would like 1) paypal (click pay now) 2) order confirmation. how do i do this thank you and have a nice weekend, Trev Link to comment Share on other sites More sharing options...
Recommended Posts