simon2k12 Posted December 13, 2012 Share Posted December 13, 2012 Hey Guys, I installed Stripe plugin and followed all the recommendations for my website. The problem is that when i try to do a test payment, it returns the following error : Token required, please check for any Javascript error on the payment page. I have updated the module to the lastest version, and contacted Stripe about it, but they are saying that its related to the plugin, and i was not able to find any additional info on the forums. Link to comment Share on other sites More sharing options...
benjamin utterback Posted December 13, 2012 Share Posted December 13, 2012 Hello simon2k12, if you could, please let me know what version of PrestaShop you are using, and what version of the Stripe module you are using. Thank you! Link to comment Share on other sites More sharing options...
simon2k12 Posted December 14, 2012 Author Share Posted December 14, 2012 PS 1.5.20 And stripe 0.9.2 Link to comment Share on other sites More sharing options...
simon2k12 Posted December 16, 2012 Author Share Posted December 16, 2012 Hey Guys, Any update? is anyone having the similar situation?? I would really like to use Stripe module. Link to comment Share on other sites More sharing options...
max30 Posted December 16, 2012 Share Posted December 16, 2012 (edited) I'm experiencing the same situation with a clean install of 1.5.2 on a test site. Here's what I found on Stripe's help & support forum. https://answers.stri...ying-to-process Update: The order is recorded in the BO when the 5 page checkout is selected but no confirmation page. It goes straight to the guest tracking page. Maybe a problem with my template? Edited December 16, 2012 by max30 (see edit history) Link to comment Share on other sites More sharing options...
simon2k12 Posted December 17, 2012 Author Share Posted December 17, 2012 I tested on my site with the standard 5 step checkout and i have the same exact error. Link to comment Share on other sites More sharing options...
ajensen27 Posted December 19, 2012 Share Posted December 19, 2012 I have the 1 page checkout on my cart. I noticed that this only occurs when it's a guest checkout. When I am signed in the order goes through. I have a developer that I paid to look into this for me. When I hear back from him on what he finds, I'll let you guys know. Also, I'm using PS 1.5.2 Link to comment Share on other sites More sharing options...
Dh42 Posted December 19, 2012 Share Posted December 19, 2012 From everything I have read the module works in live mode. I honestly do not know why people even bother using a test mode on a plugin. When I made my first shop, I used test mode and it worked fine. So I switched it over to the live server. Come to find out a week later, it wouldn't take a payment from the live setting. Since then I never use test mode, I use live mode for everything. Link to comment Share on other sites More sharing options...
ajensen27 Posted December 19, 2012 Share Posted December 19, 2012 Can you use test cards in live mode? I don't want to charge my own cards. Link to comment Share on other sites More sharing options...
Dh42 Posted December 19, 2012 Share Posted December 19, 2012 No, but without testing the gateway in live mode you never know 100% if the site will take payment. I usually put a hidden product in the shop for a dollar and set my account to have a free shipping carrier and test it. Or if I am using auth.net I just void the payment. But regarldless, best practice is to test in live mode. Just assume the problem was the other way around, test mode worked and live mode didnt. How long would it take you to find out? How many sales would it cost you before you found out? Link to comment Share on other sites More sharing options...
ajensen27 Posted December 19, 2012 Share Posted December 19, 2012 Well eventually I would test in Live mode but I would hope they could get everything working in test mode as well. I'll let my developer work on it and see what he can find. Thanks. Link to comment Share on other sites More sharing options...
Dh42 Posted December 19, 2012 Share Posted December 19, 2012 Tell me about your Prestashop installation, what version are you using? Did you upgrade from another version? Are you using a caching service? What theme are you using? I just tried 3 test payments in a row with no problem. Also what version of the stripe module are you using? http://screencast.com/t/cRV02MGh Link to comment Share on other sites More sharing options...
ajensen27 Posted December 19, 2012 Share Posted December 19, 2012 Running 1.5.2 with memcache and the latest .9.2 Stripe module. Upgraded from 1.5.0.7... Using the default theme, modified slightly by myself and it's the 1 page checkout. Were your test transactions while logged in or did you try some as a guest? The module works fine when I'm logged in but does not work when a guest. I'm thinking this is because there is no "billing" address when checking out as a guest. Just a hunch. Link to comment Share on other sites More sharing options...
bsprague12 Posted December 20, 2012 Share Posted December 20, 2012 Hello All, I was having this exact problem and found a way to make the shop process orders correctly. I set the order process to the 5 page checkout without guest checkout and force compiled the change. Everything works perfectly now. So you know, the 5 page checkout without guest checkout is the only configuration that works. The one page checkout with or without the guest checkout doesn't work. The 5 page checkout with guest checkout doesn't work. So it's something with the guest checkout and one page checkout. To make the changes in the BO go to Orders under the Preferences tab and set Order Process Type to Standard (5 Steps) and Enable Guest Checkout to "No". Save the changes. Then go to Preferences under the Advanced Parameters tab and set Template Cache to "Force Compilation" and save the change. The shop should now work correctly. Try test transactions in both test and live modes to verify. Hope this helps. Link to comment Share on other sites More sharing options...
ajensen27 Posted December 20, 2012 Share Posted December 20, 2012 That's nice but I'm not turning off guest checkout. 1 page checkout works for me, just not as a guest. My developer said he'll finally have some time today to look at this and hopefully fix it. I think it has something to do with a billing address not being available for guests during checkout and the module is looking for these fields (only show when a registered customer is logged in). Link to comment Share on other sites More sharing options...
benjamin utterback Posted January 11, 2013 Share Posted January 11, 2013 That's nice but I'm not turning off guest checkout. 1 page checkout works for me, just not as a guest. My developer said he'll finally have some time today to look at this and hopefully fix it. I think it has something to do with a billing address not being available for guests during checkout and the module is looking for these fields (only show when a registered customer is logged in). Hello everyone, I've got some good news for you, I worked with the team these last two weeks in order to improve the Stripe's Addon based on your feedback and suggestions. Guess what? We just came up with a new awesome version bringing new features and bugfixes! Improvements and changes in Stripe v0.9.4: - Improved the user experience, now redirecting to a customer Order confirmation page after a sucessfull payment (instead of the Orders history page) - Improved interface for users of PrestaShop v1.4.x - Translations: Added two new languages (Spanish and Brazialian Portuguese) - Translations: Improved French translation - Bugfix: The billing address is now refreshed in real time in case a new address is added. The Billing Address is now correctly sent to Stripe. - Bugfix: The module is now compatible with One Page Checkout and Guest Checkout - Bugfix: Customer's token save (while checking the "Save my credit card for later use" box) was not working with MySQL STRICT mode. Thank you again for your help and feedback; If you are looking to accept Credit Card Payments fast and easy on your store, Stripe is definitely one of the best options PrestaShop is offering! You can download Stripe v0.9.4 at the following address: http://addons.presta...611-stripe.html Regards, Link to comment Share on other sites More sharing options...
Linda Posted January 29, 2013 Share Posted January 29, 2013 Hi - I have PS 1.5.3. and the latest version of Stripe. I am getting the error "Token required, please check for any Javascript error on the payment page". I have tried every version of checkout with no variation of result. Also I am not able to setup my webhook - I get a 501 error no matter what I try. If anyone has had any luck with this I would really appreciate some pointers! Update: I ended up going back to 1.5.2 - no problems there with Stripe. If anyone gets rid of the javascript errors that prevent stripe from working in 1.5.3 I would love to hear about it. I know just enough about coding to be dangerous to my sites - I stick with commenting out stuff and that's about it....thanks Link to comment Share on other sites More sharing options...
mosher27 Posted February 11, 2013 Share Posted February 11, 2013 Has anyone figured out the javascript issue for PS 1.5.3 yet? I have downloaded the newest update for Stipe and still cannot get it to work. Any additional information on this would be much appreciated. 1 Link to comment Share on other sites More sharing options...
3dron Posted March 8, 2013 Share Posted March 8, 2013 Anyone figure this out yet?? I tried test, and live. I tried 1 step and 5 step. I tried re-compile, cache options. I tried guest on/off. How about less workarounds to try to get a module to work and some updates to module to make it bullet-proof. -Ron Link to comment Share on other sites More sharing options...
kwlgrilz Posted March 14, 2013 Share Posted March 14, 2013 I found that the test publish key has a trailling space. scroll to the end of the text and make sure there is no extra space. Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 1, 2013 Share Posted April 1, 2013 Hello, is this consistent for all users? or is it sporadic? We definitely want to to make sure this module is working flawlessly. I found that the test publish key has a trailling space. scroll to the end of the text and make sure there is no extra space. I noticed that as well, did removing the extra space fix the issue? Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 4, 2013 Share Posted April 4, 2013 Hi, the newest Stripe module .94 was tested on a fresh install of 1.5.3.1 and 1.5.4.. Make sure you that copied the correct API Secret and Publishable Keys. Also make sure that there is no extra space when you copy and paste. If anybody is having trouble with this module, please let me know. Thank you! Link to comment Share on other sites More sharing options...
anuragr1983 Posted April 10, 2013 Share Posted April 10, 2013 Hi I am getting "Token required, please check for any Javascript error on the payment page." error. 1. Module is active 2. SSL is disabled 3. 5 page checkout 4. API keys are copied perfectly While testing webhook it gives 501 error. Is it due to any Jquery conflict? Please help. Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 10, 2013 Share Posted April 10, 2013 Hi anuragr, any javascript related error will result in this token error. This includes ajax, javascript, jquery etc. Link to comment Share on other sites More sharing options...
anuragr1983 Posted April 10, 2013 Share Posted April 10, 2013 Hello All I have resolved the issue. In stripe-prestashop.js replace $(document).ready(function() { line with following code $.noConflict(); jQuery(document).ready(function($) { It will resolve the issue. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted April 17, 2013 Share Posted April 17, 2013 (edited) I am new to prestashop, i was testing the Stripe payment module and i am getting folowing error, Token required, please check for any Javascript error on the payment page. Can Solution from anuragr1983 will work for this issue,, can someone help me out. greatly appreciated. Edited April 18, 2013 by conerstonegifts (see edit history) Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted April 17, 2013 Share Posted April 17, 2013 i tried the above solution but did not work. please help me out if any one any suggestion Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted April 18, 2013 Share Posted April 18, 2013 I am new to prestashop, i was testing the Stripe payment module and i am getting folowing error, Token required, please check for any Javascript error on the payment page. i tried the Solution from anuragr1983 it did not resolve my issue can someone help me out. greatly appreciated. Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 18, 2013 Share Posted April 18, 2013 Hi cornerstonegifts, do you have a URL. What version of PrestaShop are you using? Is this an upgraded store? Thank! Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted April 18, 2013 Share Posted April 18, 2013 Hi cornerstonegifts, do you have a URL. What version of PrestaShop are you using? Is this an upgraded store? Thank! This is the newest version 1.5.4, URL www.cornerstonegifts.net Thanks Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 18, 2013 Share Posted April 18, 2013 Hello, I just tested this module on a new 1.5.4 version, it did work with the test keys provided. Make sure that there is no extra space when you copy and paste the key's Also make sure that your test key, publishable key, and secret keys are in the right section. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted April 20, 2013 Share Posted April 20, 2013 Hello, I just tested this module on a new 1.5.4 version, it did work with the test keys provided. Make sure that there is no extra space when you copy and paste the key's Also make sure that your test key, publishable key, and secret keys are in the right section. Dear Benjamin I have tried all the things what i supposed to do as per your advice still not working. I have new version, checked make sure all copied in th right section, no spaces and even reset the module. Any other solution you can suggest. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted May 1, 2013 Share Posted May 1, 2013 Hello, I just tested this module on a new 1.5.4 version, it did work with the test keys provided. Make sure that there is no extra space when you copy and paste the key's Also make sure that your test key, publishable key, and secret keys are in the right section. i still have the same problem with stripe cannot make it work any solution please help. Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 1, 2013 Share Posted May 1, 2013 Hi cornerstonegifts, if you are still getting that error then it could be a javascript conflict. This can happen with heavily modified websites. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted May 1, 2013 Share Posted May 1, 2013 Hi cornerstonegifts, if you are still getting that error then it could be a javascript conflict. This can happen with heavily modified websites. Any suggestions you can think off Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 1, 2013 Share Posted May 1, 2013 I could try and investigate it from the front end. Could you enable the stripe module? Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted May 1, 2013 Share Posted May 1, 2013 I could try and investigate it from the front end. Could you enable the stripe module? Thanks a lot, stripe is enabled Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 1, 2013 Share Posted May 1, 2013 Hi, could you actually put it in test mode. That way I could use a test credit card. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted May 1, 2013 Share Posted May 1, 2013 Hi, could you actually put it in test mode. That way I could use a test credit card. Thanks, its on test mode now Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 1, 2013 Share Posted May 1, 2013 Hi cornerstonegifts, can you check and make sure your "Secret Key" and "Publishable Keys" are not switched around. The way you input it via PrestaShop can be a little confusing. Link to comment Share on other sites More sharing options...
Cornerstonegifts Posted May 1, 2013 Share Posted May 1, 2013 Hi cornerstonegifts, can you check and make sure your "Secret Key" and "Publishable Keys" are not switched around. The way you input it via PrestaShop can be a little confusing. Wow, look like you nailed the issue, it did work this time, Thanks a lot for taking time to test this out. it was my mistake copying them in to wrong slot and as you mentioned it is little confusing Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 1, 2013 Share Posted May 1, 2013 I'm happy I could help! Stripe is a great payment module to use. By the way, nice website. I'm down with the Malu books Link to comment Share on other sites More sharing options...
precisebusinessadvice Posted May 7, 2013 Share Posted May 7, 2013 any chance this module will accept £'s as a method of payment and also euros as a method of payment - i know of loads of people in the UK who have BETA accounts but cant actually use them because there is no way of checking out in £'s Link to comment Share on other sites More sharing options...
eyebee14 Posted August 4, 2013 Share Posted August 4, 2013 Hello, I am completely confused. I installed Stripe using version 0.9.4 with 1.5.4.1 prestashop. When I try to pay for something in the test mode, I get the following message: Token required, please check for any Javascript error on the payment page. or The website encountered an error while retrieving https://www.hotfixblingqueen.com/modules/stripejs/validation.php. It may be down for maintenance or configured incorrectly. If I try to make a purchase under the live mode, I get a Server Error. After I refresh, I get this message: Cart cannot be loaded or an order has already been placed using this cart. When I have tested this in the live mode, I check the order details the back office, I am getting a Server Error which states: The website encountered an error while retrievinghttps://www.hotfixblingqueen.com/admin1414/index.php?tab=AdminOrders&id_order=5&vieworder&token=0ac36fe97470dda4a969c3641724154f. It may be down for maintenance or configured incorrectly. Please help! I have searched the web for an solution but I haven't found one. My website is www.hotfixblingqueen.com Link to comment Share on other sites More sharing options...
precisebusinessadvice Posted August 4, 2013 Share Posted August 4, 2013 eyebee14 - I know this sounds stupid, but... does it work in live mode - try sticking through a payment for a $1 or a £1... If it does, then dont bother worrying about test mode Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 (edited) i have the same issue, either live or test mode. Got a Server Error after submit payment, but F5 refresh the page, i got Token required, please check for any Javascript error on the payment page. or im using 1.5.5 with the latest stripe module. there is no trailing space at the end of keys, and both keys are in correct location. Edited October 2, 2013 by kfc_zjian (see edit history) Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 i just tested on newly installed ps 1.5.5, still getting this token error. there should be issue with stripe 0.95 version or prestashop core. Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 2, 2013 Share Posted October 2, 2013 i just tested on newly installed ps 1.5.5, still getting this token error. there should be issue with stripe 0.95 version or prestashop core. Hi kfc_zijan, can you check and make sure your "Secret Key" and "Publishable Keys" are not switched around. The way you input it via PrestaShop can be a little confusing. Make sure that the Keys are in the correct slot and make sure that there are no extra spaces that you copy. Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 No, they are not, all in right position. Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 I copied to notepad sure that there is no space at the end then copy it again from notepad to back office. You can test it on your local ps 1.5.5 to see the result Link to comment Share on other sites More sharing options...
benjamin utterback Posted October 2, 2013 Share Posted October 2, 2013 I tested it and it worked fine for me. I tested it on a live-store. Try and use the GitHub version. Make sure to back up everything, your files and your database. stripejs.zip Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 Okay, I will try your uploaded. But I try v0.95 both test and live mode. Same problem. I will now test your file by now. Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 (edited) same problem there, but i check the stripejs folder, i found a error_log file: [02-Oct-2013 16:18:53 US/Eastern] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 786432 bytes) in /home/zoe/public_html/tools/tcpdf/fonts/dejavusans.php on line 14 By the way, the module you uploaded, i had compared both your files and my current files, they all same sizes. Edited October 2, 2013 by kfc_zjian (see edit history) Link to comment Share on other sites More sharing options...
kfc_zjian Posted October 2, 2013 Share Posted October 2, 2013 problem solved, i increased my memory limit from 32M to 64M, how its working. Link to comment Share on other sites More sharing options...
adamcarter Posted October 3, 2013 Share Posted October 3, 2013 I just tried a payment in LIVE mode. There was a space in the keys at the end. I deleted that space. The following image shows the error I am seeing (I changed the top error statement as I get this error code when a customer choose to pay via cheque or over the phone): Need help with this as I have had to add PayPal back onto my site because the trouble with Stripe. Link to comment Share on other sites More sharing options...
adamcarter Posted October 4, 2013 Share Posted October 4, 2013 Any ideas? Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2013 Share Posted October 4, 2013 I just tried a payment in LIVE mode. There was a space in the keys at the end. I deleted that space. The following image shows the error I am seeing (I changed the top error statement as I get this error code when a customer choose to pay via cheque or over the phone): Need help with this as I have had to add PayPal back onto my site because the trouble with Stripe. did you check the module folder for error log as described in previous post? also, please don't post 'any idea?' as this is against forum rules (bumping posts) thanks Link to comment Share on other sites More sharing options...
adamcarter Posted October 4, 2013 Share Posted October 4, 2013 Yeah, but for some reason I cannot find any error log. There HAS to be a file or folder of error logs, but where? As for posting "any idea", in all due respect I wasn't bumping the thread at all. I was surprised that there hadn't been a reply within the time as this forum is almost always VERY quick as it has very, very good members :-) Link to comment Share on other sites More sharing options...
jaspenhof Posted October 4, 2013 Share Posted October 4, 2013 How do I increase my memory from 32 to 64? I can't find that file. I'm getting the same fatal error message. Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2013 Share Posted October 4, 2013 As for posting "any idea", in all due respect I wasn't bumping the thread at all. I was surprised that there hadn't been a reply within the time as this forum is almost always VERY quick as it has very, very good members :-) when we add to topics with many posts...there is much less exposure to the community...you may want to consider opening a new topic if you haven't already done so. Link to comment Share on other sites More sharing options...
adamcarter Posted October 4, 2013 Share Posted October 4, 2013 when we add to topics with many posts...there is much less exposure to the community...you may want to consider opening a new topic if you haven't already done so. OK. How do I increase my memory from 32 to 64? I can't find that file. I'm getting the same fatal error message. Ask you host to do this for you. I asked mine, but they said they already did this for me and it is 128! 1 Link to comment Share on other sites More sharing options...
Patrock Posted November 7, 2013 Share Posted November 7, 2013 Ok my turn, I've read all the thread, tried fixing it myself with out any result. Checking out I get the message : Token required, please check for any Javascript error on the payment page. I have my SSL certificate. I did double check the keys in the right place without any empty spaces. I'm running Stripe 0.9.6 on Prestashop 1.5.6. I also get an 501 error testing Stripe webhook. and I'm on Bluehost. Can we please resolve this? P. Link to comment Share on other sites More sharing options...
bellini13 Posted November 7, 2013 Share Posted November 7, 2013 using Chrome or IE, press F12 key to open the javascript console, and then checkout. watch the console for any error messages that might appear, and confirm if you are receiving an error message. please check for any Javascript error on the payment page Link to comment Share on other sites More sharing options...
Patrock Posted November 8, 2013 Share Posted November 8, 2013 Hi bellini13, thx for helping. I got this so far: Uncaught ReferenceError: Stripe is not defined stripe-prestashop.js:29 (anonymous function)stripe-prestashop.js:29 ojquery-1.7.2.min.js:2 p.fireWithjquery-1.7.2.min.js:2 e.extend.readyjquery-1.7.2.min.js:2 c.addEventListener.B Link to comment Share on other sites More sharing options...
Patrock Posted November 8, 2013 Share Posted November 8, 2013 This is my checkout page: https://thelightpaintingshop.com/index.php?controller=order&multi-shipping= Link to comment Share on other sites More sharing options...
bellini13 Posted November 9, 2013 Share Posted November 9, 2013 are you using CCC? if you are, try to disable it and see if it works Link to comment Share on other sites More sharing options...
Patrock Posted November 9, 2013 Share Posted November 9, 2013 Thx, I'm not using CCC, I tested again and go in the Chrome Java Console: Uncaught ReferenceError: Stripe is not defined Link to comment Share on other sites More sharing options...
Patrock Posted November 9, 2013 Share Posted November 9, 2013 I don't know about .js but my feeling is, there is a problem with stripe.js I'm not sure how to fix this... Link to comment Share on other sites More sharing options...
Patrock Posted November 9, 2013 Share Posted November 9, 2013 I did try yesterday to install new keys. Link to comment Share on other sites More sharing options...
bellini13 Posted November 10, 2013 Share Posted November 10, 2013 view source of the payment page and search for the file stripe-prestashop.js Link to comment Share on other sites More sharing options...
Patrock Posted November 11, 2013 Share Posted November 11, 2013 SOLVED! In BO of Prestashop, I deleted the STRIPE module completely, checked on my server to make sure the files were gone, downloaded a new STRIPE, installed it and put the new keys in and it worked. My shop is now open. http://thelightpaintingshop.com Thx for the support. Pat. Link to comment Share on other sites More sharing options...
claybourg Posted November 13, 2013 Share Posted November 13, 2013 (edited) I had the same problem... make sure your account is actually activated. Mine was not. It still does not work tho now I tested it live and it says I must activate SSL. I'm on a shared server which has open SSL, is there something else I need to enable in BO? Edit: interestingly enough, I switched to 5-step check out and it worked, even though when I go in the Stripe module setup it still tells me I need to enable SSL. Edited November 13, 2013 by claybourg (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts