surferboy Posted September 11, 2013 Share Posted September 11, 2013 Hi - First, we are using a fresh install of 1.5.5 and there is considerable debate on the forum about whether the PSWebServiceLibrary.php is compatible with 1.5.5 I obtained my version of PSWebServiceLibrary.php file by going to this link and following the instructions: http://doc.prestashop.com/display/PS15/Using+the+PrestaShop+Web+Service As an organization based in the United States, we use only one carrier to ship our products: the US Postal Service. However, we use Stamps.com to print our postage and forms since we get a reduced rate as compared to using the US Postal Service in person or online. In our existing, pre-Prestashop setup, we receive a payment email confirmation from Paypal, and then we login to Paypal to verify the ordered item, print the paid invoice, and copy the shipper's address. We then open Stamps.com on our desktop, and paste the shipper's address in the package screen, along with a copy and paste of the customer's phone number. Then we print the shipping label, and affix it to the package. So ... I called Stamps.com and asked if they had an integration package for Prestashop. They said yes and provided the general page: http://www.stamps.com/shipping/ecommerce-integrations/prestashop/ Then I downloaded the integration zip file, which is found after you login to Stamps.com and click on the batch link on the left, and then click on Manage Data Services and select Add Source. Once you select Prestashop from the popup window, and click next, a new popup appears that provides the download link for the file. I have attached that zip file here for any interested Prestashop developers who actually care if this might work .... Stamps_ShoppingCart_Integration_Kit__See_README_file.zip After unzipping the file, and reading both the .pdf file and the readme file, I generated the random password and also went into the Prestashop Back Office and went to Advanced Parameters -> Webservice, and created a new webservice key. The Prestashop documentation in the .pdf file gives directions on enabling permissions for the Webservice key, and also enabling the shop associations found by enabling the Multi Store mode. I also followed the directions to reset the .htaccess key by going to the SEO & URLs and hitting save. I added all the information to the ShippingZSettings.php file, and uploaded all of the files to the root of the prestashop installation directory - as directed. For good measure, I tried changing the file permission from 644 to 444, and in either scenario, I could not get the wizard to create the connection between the Prestashop installation and Stamps.com service. An error code appeared in the stamps.com wizard that basically said Stamps.com could not find the url or there was a problem with configuration. The Stamps.com technical support folks took a look at the situation and we tried a number of approaches but each time, they boiled it down to a 'time out' that caused the error message. In a nutshell, they said that Stamps.com could not access or read the files that I had uploaded. Whether this is an issue with Stamps.com and their current configurations, or whether it is an issue with a faulty PSWebservicelibrary.php file, or whether it is simply a problem with the Webservice token, I don't know. I realize the Prestashop developers may feel this is a low level issue and may get to it when they get to it, but the least the Prestashop developers could do would be to investigate, confirm, and remedy the PSWebservicelibrary.php file so that it is compatible with 1.5.5 Thanks, Brian 1 Link to comment Share on other sites More sharing options...
asadahmedbe Posted September 17, 2013 Share Posted September 17, 2013 Hi,I have been working on integrating stamps.com with prestashop and i'm facing the same problems can u please guide me how to integrate stamps.com pro with my prestashop website if u have done the same..please send me the steps on how to integrate.... Link to comment Share on other sites More sharing options...
surferboy Posted September 17, 2013 Author Share Posted September 17, 2013 @asadahmedbe: That's the whole point of this topic ... I have documented every step I took to date, and I have not succeeded in integrating stamps.com pro with prestashop 1.5.5 There are two probably causes: the PSWebservicelibrary.php file and/or the fact that the integration file provided by Stamps.com is not up to date and works only with 1.4.x or up to perhaps 1.5.x versions. At any rate, my jeep is dead in the desert and you just pulled up. That's all I know. Prestashop Roadside Assistance may or may not come. The developers rarely, if ever, visit the forum and dip into the issues directly here. - Brian 1 Link to comment Share on other sites More sharing options...
Joe Retail Posted September 30, 2013 Share Posted September 30, 2013 Sheez, My Land Crusier just broke down in the desert right by your Jeep. Any progress on Stamps.com integration? At any rate, my jeep is dead in the desert and you just pulled up. That's all I know. Prestashop Roadside Assistance may or may not come. The developers rarely, if ever, visit the forum and dip into the issues directly here. - Brian Link to comment Share on other sites More sharing options...
surferboy Posted September 30, 2013 Author Share Posted September 30, 2013 A little bit, actually. In another post, also stamps.com related, someone provided an update on the PSWebservicelibrary.php file so I made that correction and called Stamps.com to ask what was happening on their end. We tried multiple times, using the batch menu and then the Manage Data Sources -> Add Source -> select Prestashop and then Add Prestashop Web Store -> My Web Store is Configured -> three fields: Web Store Name: already filled in as 'PrestaShop Web Store' (by default) Web Store Url: you just enter your prestashop url which for me is http://www.mydomain/com/prestashopfolder Access Token: ... okay, pay attention to this one ... I was under the mistaken belief that I was supposed to enter my 31 digit random code generated by PC Tools as outlined in the integration file ... oh no ... I was supposed to use the webservice key created by prestashop back office (see Advanced Parameters -> Webservice) ... so I tried that with them on the phone but that didn't work either ... So after several double checks and emailing copies of the zsettings files to stamps.com, they finally concluded that "this should work" and they were going to elevate the issue to Tier 2 and have them directly liaison with the Prestashop developers (that was how it was explained to me that it would work - I didn't have the heart to tell them that the Prestashop developers rarely respond to anyone let alone spend any time in the forum; they want you to sign up for the $399 or the $699 tech support package and shazam, suddenly the Prestashop developers are right there ... ) So at least we know there is water in the radiator, gas in the tank, and a charge in the battery .... but still the Jeep won't start! Link to comment Share on other sites More sharing options...
Joe Retail Posted September 30, 2013 Share Posted September 30, 2013 Thanks for the quick reply. I've been on the phone to stamps.com tech support and the tech guy seemed very confident that everything will work....I don't know yet. I did the download fresh today and read the README.TXT file and I did see this little comment which could give both of us problems since we are both stuck in the desert with clean installs of 1.5.5 # PrestaShop versions supported: v1.4.6.2 # # You may try other versions, and please let us know if you are successful. A little bit, actually. In another post, also stamps.com related, someone provided an update on the PSWebservicelibrary.php file so I made that correction and called Stamps.com to ask what was happening on their end. Link to comment Share on other sites More sharing options...
asadahmedbe Posted October 2, 2013 Share Posted October 2, 2013 HI friends, I'm using stamps pro to print the labels. When i print a label the tracking number is not updated in the webstore. The stamps.com doc says "Stamps.com will automatically post back to your web store and shopping cart account information data like tracking number and shipping cost. This allows you to easily let your customers know that an order has shipped." All i want to know is how can i insert the tracking number in my webstore after i print the label frm the stamps pro software automatically Link to comment Share on other sites More sharing options...
surferboy Posted October 4, 2013 Author Share Posted October 4, 2013 No idea on that. I still need stamps.com to work in the first place! Link to comment Share on other sites More sharing options...
Basix101 Posted October 11, 2013 Share Posted October 11, 2013 Any updates on getting it working? Really need this, may try installing PS 1.4.6.2 to see if it works... If I do I will keep you posted on events. Link to comment Share on other sites More sharing options...
safetyrestore Posted October 12, 2013 Share Posted October 12, 2013 PHEW! I thought I was the only one in the desert. At least you guys have appropriate automobiles here, I accidentally drove into this place on a PRIUS! Anyways, same thing here. If we made this work, oh what a load off it would be for our shipping department. We ship hundreds of items on a daily basis, and you can imagine how annoying it is to manually update the status to "SHIPPED" and put in the address + email to the stamps software. I didn't even bother with the Stamps.com instructions on integrations, seems outdated and too hectic to me. Maybe we can together pitch in and have a module developed for us? An official one. Just punch in the order ID in stamps.com, and you're set. Engine starts and we're out of here. Label prints, status updated to "SHIPPED" and the customer gets the tracking #. So are you guys in, or in? Link to comment Share on other sites More sharing options...
surferboy Posted October 12, 2013 Author Share Posted October 12, 2013 well, great idea but .... you need both parties to dance and as much as we could make a paid module from a developer on the prestashop end, we still need to troubleshoot or coordinate with the stamps.com integration plugin. Officially, the stamps.com integration says good through prestashop 1.4.6.2 so unless the stamps.com tier II folks get a move on, we are still stuck out here in the desert ... Link to comment Share on other sites More sharing options...
Joe Retail Posted October 13, 2013 Share Posted October 13, 2013 I am working with Stamps.com tech support on an unrelated problem right now. I found a bug in the main program and they have developers looking into it. I don't know what tier it is but it's been elevated quite a bit already. When it's resolved, I will try to find out about our PrestaShop problem. unless the stamps.com tier II folks get a move on, we are still stuck out here in the desert ... Link to comment Share on other sites More sharing options...
peeptoe Posted October 24, 2013 Share Posted October 24, 2013 Surferboy, I have been trying to configure mine for the past couple hours.... I had entered my key from PS webservice into the access token field and it wasn't working. Actually I didn't even know the Stamps program was even working or attempting to connect, it wasn't showing me any evidence of it as it had earlier. But then all of a sudden I looked back at the stamps desktop program and it returned an error message to me. From memory something like this "shipping_access_token invalid" so I went in and changed it to the password I generated for ShippingZSettings and it FINALLY SAYS IT WORKED. Link to comment Share on other sites More sharing options...
surferboy Posted October 26, 2013 Author Share Posted October 26, 2013 hmm, okay, well I better try using the 31 digit code again, and I guess those "helpful" folks at Stamps.com tech support may not have known as much about the issue as they thought! Link to comment Share on other sites More sharing options...
DanielHerbert77 Posted October 31, 2013 Share Posted October 31, 2013 Stuck exactly where you guys are I think. Super-noob to Prestashop and eCommerce and Stamps.com - need to make something work asap for printing shipping labels as automated as possible for USPS. Spent all day on this and I'm noticing that Prestashop 1.5.5 is requiring a 32 digit key but I read here and in some of the setup help text in the Stamps.com install package that I should generate a 31 digit Token... Does this mean anything to anyone out there? If any of you have figured out why the Stamps.com integration isn't functioning properly in 1.5.5 and have a fix for it, PLEASE update this thread with the information. I had to literally spell P-R-E-S-T-A-S-H-O-P to the last Stamps.com technical support rep after he asked me to spell it for him, so ANY help at all would be greatly appreciated. Thanks! Link to comment Share on other sites More sharing options...
DanielHerbert77 Posted November 1, 2013 Share Posted November 1, 2013 FINALLY got this integration of PS 1.5.5 and Stamps.com to work after 13 hours of fiddling! I created the 32 character key within PS's webservice section and used that same key for BOTH fields in the ShippingZsetting.php file (the Token AND API Key). I also used the SAME 32 character key in the Stamps.com webstore data source setup. One key note - once all of these are the same - then MAKE SURE you go and save the Enable Web Services button in PS and ensure that you go to the SEO and URLs section and Save there to regenerate the htaccess file. I don't know enough about all of this to understand WHY it worked - I just know that it did. I can now see orders from my PS site automatically come up in the Stamps.com software. ** I haven't seen the tracking number come back through to update in PS yet though. That's my next project I guess... I could use some help if anyone has any ideas. Link to comment Share on other sites More sharing options...
wearCA Posted November 15, 2013 Share Posted November 15, 2013 has anyone been able to do this without the standalone stamps.com software? i am on a macintosh and stamps does not work on mac.. thinking about endicia? any one try that to do the same type of integration? Link to comment Share on other sites More sharing options...
Electronixbarn Posted November 19, 2013 Share Posted November 19, 2013 Kinda a little off topic, but.... Is stamps.com postage that much cheaper than the rates that paypal offers? I know that paypal probably doesn't offer the shipping label, tracking updates from within PS. Thanks Link to comment Share on other sites More sharing options...
cyris69 Posted December 5, 2013 Share Posted December 5, 2013 FINALLY got this integration of PS 1.5.5 and Stamps.com to work after 13 hours of fiddling! I created the 32 character key within PS's webservice section and used that same key for BOTH fields in the ShippingZsetting.php file (the Token AND API Key). I also used the SAME 32 character key in the Stamps.com webstore data source setup. One key note - once all of these are the same - then MAKE SURE you go and save the Enable Web Services button in PS and ensure that you go to the SEO and URLs section and Save there to regenerate the htaccess file. I don't know enough about all of this to understand WHY it worked - I just know that it did. I can now see orders from my PS site automatically come up in the Stamps.com software. ** I haven't seen the tracking number come back through to update in PS yet though. That's my next project I guess... I could use some help if anyone has any ideas. Still doesnt work Link to comment Share on other sites More sharing options...
aftermarket Posted December 17, 2013 Share Posted December 17, 2013 I installed it 1.5.6.0 Supposedly everything was working fine and it was connecting. (Hasn't retrieved any orders and now is spitting out an error that it can't connect.) I will be trying to get this to work today. Link to comment Share on other sites More sharing options...
cyris69 Posted December 17, 2013 Share Posted December 17, 2013 I did get it working. The files that come in the plugin zip from stamps.com are incomplete. They are missing a few files. You also have to edit more than one file as well. 1 Link to comment Share on other sites More sharing options...
Basix101 Posted December 17, 2013 Share Posted December 17, 2013 Thanks for the update. I'm stuck getting emails configured at the moment but hope to get back to the stamps.com integration within the next day or so (hopefully at least by Friday). Re: The missing files, and coding, can you share or give us a hint of what to expect. It will be very helpful! thanxs. Link to comment Share on other sites More sharing options...
surferboy Posted December 18, 2013 Author Share Posted December 18, 2013 @cyris69: wow, do share! what did you have to do? The files that come in the plugin zip from stamps.com are incomplete. They are missing a few files. You also have to edit more than one file as well. Everyday, I have two screens open, Stamps.com and Prestashop back office and I copy and paste shipping addresses from Prestashop to Stamps.com, and then type in the Priority Mail tracking number after the postage is printed. Would love to even save just one step! Link to comment Share on other sites More sharing options...
cyris69 Posted December 18, 2013 Share Posted December 18, 2013 Let me post a few steps and the zip file with all the needed files. Link to comment Share on other sites More sharing options...
aftermarket Posted December 18, 2013 Share Posted December 18, 2013 (edited) Alright, I got it to work, don't ask me how. But no orders are being imported. The only file I have edited is ShippingZSettings.php Does anybody know under what order status do orders get imported into stamps.com? Answer: On preparation in progress and payment accepted Awesome, it is importing orders! There must have been some sort of lag with the script. Edited December 18, 2013 by aftermarket (see edit history) Link to comment Share on other sites More sharing options...
cyris69 Posted December 18, 2013 Share Posted December 18, 2013 Ok, For your access token and webservice key use the exact same string. So go to:https://identitysafe.norton.com/password-generator/# Once there leave all settings the same but change length to 32 then generate you random key In prestashop go to Advanced Parameters WebserviceClick add new button. No need to generate key just paste the one you got from the password generator. Now enable all full permissions for everything listed below the key you entered by click the furthest to the left check box of each entry. Then save I have ssl on my web server but dont type https:// in the webstore edit in stamps.com software just type http:// or you can leave it with https://URL.COM Fill in that info and put your random key from above in as the access token as well then click save then hit the X to close the screen. Finish editing any opetion form the next screen then click done, then done again. Ok, now you have stamps and prestashop configured. So lets edit and upload the files. First file to edit is ShippingZSettings.php, lets use notepad++ so you can see the line numbers making this a bit easier. Go to line 109 which will look like this define("SHIPPING_ACCESS_TOKEN","Change This"); // See steps above to set this -- REQUIRED ! Replace the "Change This" with the same code used for access token and webkey, leave the quotations In the same file go to line 408 which will look like this define("PRESTASHOP_API_KEY","####"); // See above for details Replace "####" with the same key from above. Leave quotations Now save that file and your done there. Now the missing file that was not included is PSWebServiceLibrary.php which will be in the attachment. You will then upload these files (ALL OF THEM) even the ones for other carts to the root of your prestashop installation on your webserver. Now goto Preferences SEO & URLsIn prestashop and scroll down find save button and click it. Now goto Advanced Parameters PerformanceFind and click the button Clear Smarty cache Now proceed to go back to stamps.com software and click the batch icon under print postage. Click Manage Data Sources -> Edit Sources Click your entry you setup earlier rthen click edit, then click refresh. It may take 15-20 minutes for stamps.com servers to process your new information from the online server. So if you get an error close the edit and wait then try again. Prestashop files.zip Link to comment Share on other sites More sharing options...
Basix101 Posted December 18, 2013 Share Posted December 18, 2013 Wow! awesome, thank you so much... I've copied the instructions, and downloaded the files for future reference. 1 Link to comment Share on other sites More sharing options...
philee Posted December 18, 2013 Share Posted December 18, 2013 Glad I stumped upon this thread. Did anyone got it to work PS V.1.4.11? I am afraid to mess anything up attempting to get it successfully integrated. Link to comment Share on other sites More sharing options...
cyris69 Posted December 18, 2013 Share Posted December 18, 2013 Glad I stumped upon this thread. Did anyone got it to work PS V.1.4.11? I am afraid to mess anything up attempting to get it successfully integrated. Follow the same steps, the original guide is for 1.4x and a bit of 1.5.x you wont break anything doing this Link to comment Share on other sites More sharing options...
AlexGW Posted January 18, 2014 Share Posted January 18, 2014 (edited) Hi all, I'm about half way through the process of building an independent carrier module for the stamps.com SWS/IM system to work with Prestashop 1.5.x for a client of mine, and I've decided to put it on the market also. Here is the core feature support list; Shipping calculation (tied with the "carriercompare" module) Address cleansing/validation via USPS Label creation/capture/storage upon order payment received. Tracking Possible future support; Automatic crediting of funds onto your stamps.com account (through configuration) Scan forms Carrier pickup notifications Will post back when its done! Edited January 18, 2014 by AlexGW (see edit history) Link to comment Share on other sites More sharing options...
Jameh Posted October 3, 2014 Share Posted October 3, 2014 Thanks a lot. I have set up on ver 1.6.0.9. I didn't try it. But I found if the orders were mark preparation in progress at the B/O, the stamps.com couldn't import those orders. One more thing, I am confusing that is necessary to install SSL for stamps.com? I just bought SSL CRT before I set it up. Best regards, Link to comment Share on other sites More sharing options...
Web VIZO Posted October 29, 2014 Share Posted October 29, 2014 Hello Everyone, We are not sure if there is anyone still interested in a Stamps.com integration module, however, we have just released a module that enables you to generate Stamps.com shipping labels directly from your order's page. You can find more information about our module at: http://addons.prestashop.com/en/shipping-logistics-delivery-prestashop-modules/17696-stampscom-label-printing.html . Thank you, Web VIZO Link to comment Share on other sites More sharing options...
ingenium Posted November 3, 2014 Share Posted November 3, 2014 The official module from Stamps.com does seem to work on 1.6.0.9, with one exception: it doesn't trigger an email to be sent to the customer stating that the order was shipped, and it doesn't email the tracking number to the customer. If I manually mark/add these things then the email is correctly sent. Anyone know how to make it send customer emails with the tracking numbers? Link to comment Share on other sites More sharing options...
magicdave Posted December 30, 2014 Share Posted December 30, 2014 Hi All, I am looking for someone with a stamps.com account who can demo if prestashop will support negotiated rates with stamps.com. These are much lower than the standard Commercial Base rates obtained. PM if you are interested. The stamps.com account will be free if you ship over $500 a month in postage. Link to comment Share on other sites More sharing options...
Spatinisa Posted January 20, 2015 Share Posted January 20, 2015 FINALLY got this integration of PS 1.5.5 and Stamps.com to work after 13 hours of fiddling! I created the 32 character key within PS's webservice section and used that same key for BOTH fields in the ShippingZsetting.php file (the Token AND API Key). I also used the SAME 32 character key in the Stamps.com webstore data source setup. One key note - once all of these are the same - then MAKE SURE you go and save the Enable Web Services button in PS and ensure that you go to the SEO and URLs section and Save there to regenerate the htaccess file. I don't know enough about all of this to understand WHY it worked - I just know that it did. I can now see orders from my PS site automatically come up in the Stamps.com software. ** I haven't seen the tracking number come back through to update in PS yet though. That's my next project I guess... I could use some help if anyone has any ideas. Hi - First, we are using a fresh install of 1.5.5 and there is considerable debate on the forum about whether the PSWebServiceLibrary.php is compatible with 1.5.5 I obtained my version of PSWebServiceLibrary.php file by going to this link and following the instructions: http://doc.prestashop.com/display/PS15/Using+the+PrestaShop+Web+Service As an organization based in the United States, we use only one carrier to ship our products: the US Postal Service. However, we use Stamps.com to print our postage and forms since we get a reduced rate as compared to using the US Postal Service in person or online. In our existing, pre-Prestashop setup, we receive a payment email confirmation from Paypal, and then we login to Paypal to verify the ordered item, print the paid invoice, and copy the shipper's address. We then open Stamps.com on our desktop, and paste the shipper's address in the package screen, along with a copy and paste of the customer's phone number. Then we print the shipping label, and affix it to the package. So ... I called Stamps.com and asked if they had an integration package for Prestashop. They said yes and provided the general page: http://www.stamps.com/shipping/ecommerce-integrations/prestashop/ Then I downloaded the integration zip file, which is found after you login to Stamps.com and click on the batch link on the left, and then click on Manage Data Services and select Add Source. Once you select Prestashop from the popup window, and click next, a new popup appears that provides the download link for the file. I have attached that zip file here for any interested Prestashop developers who actually care if this might work .... Stamps_ShoppingCart_Integration_Kit__See_README_file.zip After unzipping the file, and reading both the .pdf file and the readme file, I generated the random password and also went into the Prestashop Back Office and went to Advanced Parameters -> Webservice, and created a new webservice key. The Prestashop documentation in the .pdf file gives directions on enabling permissions for the Webservice key, and also enabling the shop associations found by enabling the Multi Store mode. I also followed the directions to reset the .htaccess key by going to the SEO & URLs and hitting save. I added all the information to the ShippingZSettings.php file, and uploaded all of the files to the root of the prestashop installation directory - as directed. For good measure, I tried changing the file permission from 644 to 444, and in either scenario, I could not get the wizard to create the connection between the Prestashop installation and Stamps.com service. An error code appeared in the stamps.com wizard that basically said Stamps.com could not find the url or there was a problem with configuration. The Stamps.com technical support folks took a look at the situation and we tried a number of approaches but each time, they boiled it down to a 'time out' that caused the error message. In a nutshell, they said that Stamps.com could not access or read the files that I had uploaded. Whether this is an issue with Stamps.com and their current configurations, or whether it is an issue with a faulty PSWebservicelibrary.php file, or whether it is simply a problem with the Webservice token, I don't know. I realize the Prestashop developers may feel this is a low level issue and may get to it when they get to it, but the least the Prestashop developers could do would be to investigate, confirm, and remedy the PSWebservicelibrary.php file so that it is compatible with 1.5.5 Thanks, Brian Hi Guys, I am writing you both since you are the two that have the most experience with the USPS. I am NEWWWWW to this and having a heck of a time setting up the shipping for the USPS. I have my manufacturers zones and shipping rates. Which I want to implement into Presta Shop. I have gone through all of the shipping tutorial and seen all the zones for US and other countries however they are not the same zones that I got from my manufacturer. I want to ship by price and I consider myself pretty proficient. This is boggling my brain! Can either of you give me so direction with regard to this... Maybe I just didn't see what I needed and if you direct me back to a tutorial I will revisit it and go from there. I am pretty sure you know what I am attempting to do... 1-100 will cost $8:15 in zone one, $9.25 in zone 2, $9.90 in zone 3 and so onnnnnn! lol I appreciate any assistance with this! Nikki Link to comment Share on other sites More sharing options...
Basix101 Posted April 4, 2015 Share Posted April 4, 2015 Anyone have any idea on how to fix this? "This call to PrestaShop Web Services failed and returned an HTTP status of 401. That means: Unauthorized." On PS 1.6.0.14 PSWebServiceLibrary.php (copied from git hub Jan 24 file, and changed 1.6.0..11 to "const psCompatibleVersionsMax = '1.6.0.14';" Webservice working correctly on http://mywesite.com/api Using stamps.com latest plugin download for prestashop. Webservice key and Webservice permissions enabled. Below file is result from calling http://mywebsite.com/ShippingZPrestashopApiTester.php Checking accessibility of prestashop webservice library(PSWebServiceLibrary.php).........OK Checking accessibility of prestashop webservice API and permission of required prestashop resources......... HTTP REQUEST HEADER GET //api/orders/1 HTTP/1.1 Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Host: mywebsite.com Accept: */* HTTP RESPONSE HEADER HTTP/1.1 401 Unauthorized Date: Sat, 04 Apr 2015 19:49:20 GMT Server: Apache WWW-Authenticate: Basic realm="Welcome to PrestaShop Webservice, please enter the authentication key as the login. No password required." Access-Time: 1428176961 X-Powered-By: PrestaShop Webservice PSWS-Version: 1.6.0.14 Execution-Time: 0.018 Transfer-Encoding: chunked Content-Type: text/xml;charset=utf-8 RETURN HTTP BODY <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <message><![CDATA[internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[internal error. To see this error please display the PHP errors.]]></message> </error> </errors> </prestashop> This call to PrestaShop Web Services failed and returned an HTTP status of 401. That means: Unauthorized. Completely stuck on this, any help? 1 Link to comment Share on other sites More sharing options...
dformica Posted May 11, 2015 Share Posted May 11, 2015 Anyone have any idea on how to fix this? "This call to PrestaShop Web Services failed and returned an HTTP status of 401. That means: Unauthorized." On PS 1.6.0.14 PSWebServiceLibrary.php (copied from git hub Jan 24 file, and changed 1.6.0..11 to "const psCompatibleVersionsMax = '1.6.0.14';" Webservice working correctly on http://mywesite.com/api Using stamps.com latest plugin download for prestashop. Webservice key and Webservice permissions enabled. Below file is result from calling http://mywebsite.com/ShippingZPrestashopApiTester.php Checking accessibility of prestashop webservice library(PSWebServiceLibrary.php).........OK Checking accessibility of prestashop webservice API and permission of required prestashop resources......... HTTP REQUEST HEADER GET //api/orders/1 HTTP/1.1 Authorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Host: mywebsite.com Accept: */* HTTP RESPONSE HEADER HTTP/1.1 401 Unauthorized Date: Sat, 04 Apr 2015 19:49:20 GMT Server: Apache WWW-Authenticate: Basic realm="Welcome to PrestaShop Webservice, please enter the authentication key as the login. No password required." Access-Time: 1428176961 X-Powered-By: PrestaShop Webservice PSWS-Version: 1.6.0.14 Execution-Time: 0.018 Transfer-Encoding: chunked Content-Type: text/xml;charset=utf-8 RETURN HTTP BODY <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <message><![CDATA[internal error. To see this error please display the PHP errors.]]></message> </error> <error> <message><![CDATA[internal error. To see this error please display the PHP errors.]]></message> </error> </errors> </prestashop> This call to PrestaShop Web Services failed and returned an HTTP status of 401. That means: Unauthorized. Completely stuck on this, any help? Exact problem here. Link to comment Share on other sites More sharing options...
Basix101 Posted May 11, 2015 Share Posted May 11, 2015 Have you enabled error reporting on your site? Have you enabled the Resource Permissions in the Webservice? Once error reporting was turned on I could see the stamps.com files were calling for something in the PS database that was not there or was worded differently. I got support to fix those files with Designhaus42, and it worked! There was another hiccup a few days later so I deleted the stamps.com source and then installed it again on stamps.com and it has been working perfect ever since. All my orders are brought into stamps.com and the tracking and shipping confirmation are sent back to PS. 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