datasi Posted November 3, 2015 Share Posted November 3, 2015 (edited) Hello! Chose paypal to be used on my prestashop installation but got some issue with configuring paypal to be working correctly i have written in the API details and merchant ID. When i test with an item and go to checkout and clik "pay with your card or paypal account" a small window open and just seem to be loading. When i click the image away i get a message box with this error "error in ajax posterror" Also tried different browsers but always get the same result. the paypal window just load and i get the error message mentioned above ( I can see the paypal logo in the background on the website but disappear when i click OK on the error message. Anyone got any idea on how to check on this? Edited November 3, 2015 by datasi (see edit history) Link to comment Share on other sites More sharing options...
datasi Posted November 3, 2015 Author Share Posted November 3, 2015 (edited) Adding picture from how i see it after clicking "pay with your card or your paypal account" Edited November 3, 2015 by datasi (see edit history) Link to comment Share on other sites More sharing options...
datasi Posted November 5, 2015 Author Share Posted November 5, 2015 Still unable to figure out what is going wrong here. Have tried searching and searching without any success! Hopefully someone know what i can do to get this paypal europe module working. I really need to get this paypal module working soon and hopefully someone know what to do here. or what information i need to find so its easier for you guys to see what is going on. Link to comment Share on other sites More sharing options...
hasben Posted December 3, 2015 Share Posted December 3, 2015 Same here the same problem any solution? prestashop 1.6.1mismo problema aqui alguna solución ? prestashop 1.6.1 Link to comment Share on other sites More sharing options...
OlenLja Posted April 8, 2016 Share Posted April 8, 2016 How you fixed this problem? Link to comment Share on other sites More sharing options...
arhipmihai123 Posted May 8, 2016 Share Posted May 8, 2016 I have the same problem:( Link to comment Share on other sites More sharing options...
ukbaz Posted August 18, 2016 Share Posted August 18, 2016 And the problem is STILL there 9 months later! Link to comment Share on other sites More sharing options...
dmahtani Posted September 23, 2016 Share Posted September 23, 2016 The problem is solved when you enable 'Enable SSL on all pages'. If 'Enable SSL' is Yes but 'Enable SSL on all pages' is No, then you get this problem. Link to comment Share on other sites More sharing options...
gym Posted October 31, 2016 Share Posted October 31, 2016 Hello Mahtani The button enable SSL on all pages is not active (gray) how do I activate it? Link to comment Share on other sites More sharing options...
Wilson Na Posted September 1, 2017 Share Posted September 1, 2017 (edited) I managed to find the solution to this problem, while still selecting "Yes" for "Use PayPal In Context Checkout". Edit /.../presta/modules/paypal/views/templates/hook/express_checkout_shortcut_form.tpl Look for this line <input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" /> Add token%3DEC-{time()} to the end as shown below <input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}token%3DEC-{time()}" /> Save View the code at the checkout page. You should see something like this <input type="hidden" name="current_shop_url" value="https://mywebsite.com/quick-order?token%3DEC-1504284686"> Ajax Check Out should work now. Apparently, Paypal requires a token to be included in the request, otherwise it will fail. Hope this helps. Edited September 1, 2017 by Wilson Na (see edit history) Link to comment Share on other sites More sharing options...
-Johua Posted September 22, 2017 Share Posted September 22, 2017 I managed to find the solution to this problem, while still selecting "Yes" for "Use PayPal In Context Checkout". Edit /.../presta/modules/paypal/views/templates/hook/express_checkout_shortcut_form.tpl Look for this line <input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" /> Add token%3DEC-{time()} to the end as shown below <input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}token%3DEC-{time()}" /> Save View the code at the checkout page. You should see something like this <input type="hidden" name="current_shop_url" value="https://mywebsite.com/quick-order?token%3DEC-1504284686"> Ajax Check Out should work now. Apparently, Paypal requires a token to be included in the request, otherwise it will fail. Hope this helps. Hello, I have this problem too, but can't solve it Link to comment Share on other sites More sharing options...
JuanAFT Posted February 28, 2019 Share Posted February 28, 2019 I've got solve it with dmahtani's advise. Thanks dmahtani. The problem is solved when you enable 'Enable SSL on all pages'. If 'Enable SSL' is Yes but 'Enable SSL on all pages' is No, then you get this problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now