Support » Plugin: Print Google Cloud Print GCP WooCommerce » Problems setting up OAuth

  • Resolved PetrP

    (@petrp)


    hi, I spent several hours with this.. Your https://www.bizswoop.com/wp/googlecloudprintapi/ isn’t up to date anymore, and I’m stuck in the whole process.
    First, I must choose External or Internal Type. What should I set for this plugin?
    Next, I need to ‘authorize’ (apparently still something else than just ‘verify’) my domain. Seems I can’t do that without something called G Suite (I really don’t need yet another type of Google account, is this necessary at all??)

    And third question: I’m trying to set this up for a client (in another country). He bought a wifi printer NOT Google Cloud Ready (but that shouldn’t be a problem, I understood). It’s connected to his wifi by a professional. Now I’m wondering how this printer should appear in ‘locations’. By setting up this Google Cloud Print API access plus your plugin, how can this get any connection to that remoted printer?? There’s nothing in there what somehow makes the link between THAT printer and the whole website/Google setup afaik? Even if the Google API setup would have been made from the client’s own Google Account instead of ours, I still don’t see how it would ‘know’ about that printer? I’m pretty much in the dark here, way beyond my scope of making sites 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Sorry to hear you have some difficulty setting up the Google API connection. We try to keep the documentation updated, but Google does change screens often, so we do make the note in the documentation, some screens might be different and the guide serves as a rough guideline. Plus our documentation is not for setting up a Google Console Account in all the steps, only the steps required for the plugin API use. 🙂

    Some of the screens you are referencing are not related to the setting up a new API project. You are referencing the setup process for the OAuth consent screen, most customers already have this step completed as it’s not directly related to our use case of the API, but a yes, it’s a requirement as part of OAuth verification between the website running the Print plugin and Google Cloud.

    For the specific question External or Internal Type. We avoid providing recommendations as this has direct implications to your account and overall API setup. We’d recommend you review the Google documentation to better understand those options better. We can confirm, both the Internal and External types are supported by the Print Plugin. As a result, the second part of your question, yes, you can select External and use a regular gmail account. You aren’t required to use a GSuite account. In addition, the domain verification is recommended by Google depending on your content type, but not required to complete the setup of the OAuth screen and creating API credentials. You can complete the OAuth consent screen and create API credentials that function without the domain verification by Google. The key item, under the OAuth consent screen, you do need to list the authorized domain. And the Authorized domain needs to match the redirect URI listed under the API credentials for the web application.

    Finally, the third question. You are correct. The printer doesn’t need to be a cloud ready printer or Wifi printer. A printer connected using a browser works as well. The only requirement, the printer needs to be added to the Google Cloud Print account linked to the account used to setup the Google Console account.

    This is how it works. After you setup the Google Cloud console account and download the JSON file with credentials. You upload the JSON file to the Settings tab of the Print plugin. And log into your Google account, the OAuth consent screen will show requesting permission. Now the Print Plugin is linked to the Google Cloud Print account. Go to Google Cloud Print account, and link the printer to the specific Google Cloud Print account. Here is a great article on adding printers to Google Cloud Print: https://support.google.com/cloudprint/answer/1686197?hl=en At this point, when you click add a location on the Print plugin, under the printers section you will see the printer you linked to Google Cloud Print. Now select that printer and you are ready to go. The printer is linked and can be used for print jobs.

    The good news, once you get the API credentials created in Google Accounts Console, the process should be a bit more straight forward and hopefully you will feel less in the dark. I hope that information was helpful.

    Hi, thanks for the extensive reply! My first step at this point:
    I read that it’s needed to set up the printer, according that Google link, via a pc to the Cloud Print. OK, I thought so earlier but later wasn’t sure anymore.

    But that means that only the client (abroad) can do this, right? And since only he can do that, also he should do all the other (complicated) steps concerning the API, with his account and gmail. Correct? That’s gonna be something… 🙂

    Plugin Author bizswoop

    (@bizswoop)

    On the Google Console account for the API. We agree, some clients struggle to complete this setup as it requires a bit more knowledge on web development. The client can potentially provide you developer access to their account for you to setup the account for them, outlined here by Google: https://support.google.com/googleplay/android-developer/answer/2528691?hl=en

    On adding the printer to the Google Cloud Print account, given the printer is local based and abroad, you would need some coordination with the user account being signed in and printer being added. This step is less complex, but some clients may still struggle. 

    One overall recommendation, try using a tool like TeamViewer or other remote control tools to access the client’s setup in real time. This would allow them to log into their accounts and you support setting up the API and adding the printer for them. This would eliminate the issue with them being abroad and trying to coordinate or educate them on how to perform the setup process for both tasks. We use remote access tools for the less tech savvy clients. I hope that helps. Good luck!

    PetrP

    (@petrp)

    Hi, after some delay from client’s side we’re picking this up again. He connected the printer to his Google account where I have access to.
    Now to be sure about some basic things before getting further:
    1- must I share the printer (public sharing) or is it enough that printer is accessible through this one Google account of the client?
    2- I assume it’s needed that on the printer’s network is necessary to have a pc running all the time so that the printer appears ‘online’, or is it not needed to have that pc running non-stop?
    3- Do we need the internet provider to let open some ports on the internetmodem by default?
    Thanks a lot!

    Plugin Author bizswoop

    (@bizswoop)

    Happy to help you, but please note. Many of these questions are about the Google Cloud Print service and product, not our plugin functionality. We’d recommend you review the help center for future questions related to setting up and using the Google Cloud Print service: https://support.google.com/cloudprint

    1. No. The printer does not need to be public. The only requirement, the printer needs to be shared with the account used for the Google Cloud account API connection. 

    2. Yes. If you are using the Google Chrome Connector for non-wifi enabled printers on PC, you will need the PC to always be on to receive print jobs. One recommendation, many customers use a Raspberry Pi device as a Print server running Chrome Connector and CUPS print server, it’s a low cost solution and “always on”, so the PC is not required. 

    3. No, using Chrome Connector with a PC to connect to the printer, you should not need to open any ports, but please consult your printer guidelines and Cloud Print connector documentation to confirm specifically for your setup.

    I hope this information helps.

    PetrP

    (@petrp)

    Very much appreciated! 🙂

    PetrP

    (@petrp)

    OK it finally works 🙂

    The downside is that the plugin isn’t compatible with Yith Product addons / Yith Checkout manager. That’s bummer as the (complex) shop is totally setup already.
    I read that other people asked for this functionality already, so here is a +1.
    But as the client won’t want to wait for anything more than at most 10 days, I’m afraid we need to find another solution unfortunately.
    I wouldn’t mind a paid addon or anything; it’s better than redoing the whole shop.

    • This reply was modified 1 month ago by PetrP.
    PetrP

    (@petrp)

    I’m really considering now to effectively switch the shop items from Yith product addons to your addon.
    But as I just read the news that Google Cloud Print service will be dead at the end of this year; I’d like to first hear your take on that. Will you stop the support of this plugin, or are you working on an alternative method?
    Thanks a lot!

    Plugin Author bizswoop

    (@bizswoop)

    Great to hear it’s working for you now.

    In the past, before we developed support for the Custom Print Templates functionality, we did offer a paid add-on solution. Once we released the Custom Print Templates allowing developers to build their own templates or use our sample template, we stopped providing the paid add-on. We found, with the paid add-on, since it was a print template, most customers wanted more than just support for another plugin, like Yith, they also wanted tweaks to the layout, styling and other fields. Plus it was a lot of work to track updates from other developers to maintain compatibility for the few customers using the Custom Print Template unique to their store. As a result, we felt this was better for them to develop and manage, so we have decided to discontinue that support at this time. We don’t plan on offering a paid add-on. Feel free to connect with the Yith team, maybe they could help support and develop a Custom Print Template of Yith add-ons for purchase that is compatible with the Print plugin. Or view the developer documentation to build a Custom Print template or modify existing default Print templates to make them work.

    As for your second question. Yes, you are correct. The Google Cloud Print product is planned by Google to be sunset and deprecated in December 2020. We wish it was not being ended, as we love the product, but we don’t make those decisions. Developers were notified at the same time as customers, as a result, we are still evaluating other products and services to replace the GCP product, but at this time we don’t have any plans to share on the future replacement.

    We are recommending to customers, if they are interested in onboarding our product now, you can expect an impact on the product by December of this year, either by a change of Cloud Print service provider or a shutdown of the product. At a minimum the plugin will need to be rebuilt as the core functionality is based upon Google Cloud Print services. Up until December 2020, the product is stable and successfully providing a Cloud based print solution. For customers looking for a long term solution beyond 2020, they should consider alternatives if having to change solutions in 10 months is not something they are interested in doing. Once we have confirmed our plans, we will provide an official notice to current users and overall plans for the future. I know that is not a direct answer, but hopefully gives you our take on the topic.

    Hi there! We’re actually still struggling at one point: it’s working fine when using a ‘google cloud ready’ printer. But when using a thermal non-google cloud ready wifi Epson printer, it simply doesn’t print anything. Also non-cloud ready wifi-enabled printers should function within this system, right? I’ve tried and searched everything. Keeping that big Cloud-ready printer isn’t really an option, and small Thermal pos printers aren’t Cloud-ready – at least not at Epson, which is our partner.
    It’s curious that in our old system (not via Google cloud) those were working just fine. We only had to ask the internet provider to open a certain port by default.

    Whatever additional input will again be highly appreciated 🙂

    Plugin Author bizswoop

    (@bizswoop)

    Happy to help give some tips. 

    The quick answer, yes, the Print plugin and Google Cloud Print Service supports non-cloud ready Thermal printers. In our testing lab, we have EPSON TM-T20II printers which are not cloud ready running perfectly. 

    The tricky part of Thermal printers and Cloud Print Service, it takes a bit of trial and error to get the print settings correct. Unfortunately, due to the volume of Thermal print models, drivers and different ways to connect them to GCP service, we don’t have a mapping of all recommended settings per Thermal printer model. 

    Our best recommendation, try different settings in the Location setup for the Thermal Printer. This article here providers a breakdown of tips to try: https://wordpress.org/support/topic/troubleshooting-errors-or-print-failures/

    For example, Page Orientation, the default assumption would be Portrait or Auto setting, but we’ve had reported some Thermal printers require Landscape which is counter intuitive to what you would setup by default. 

    The other issue causing problems we’ve had reported is the continuous feed support on Thermal Printer models, using 0 or setting a custom height should optimize for this issue too.  

    In general, each time you make a change, trigger an order to see if the modified setting fixes the print failure. We are confident with some patience in testing different settings under Location, you should be able to get supported a non-cloud ready Thermal printer.  

    Hi,

    I think we tried every possible combination of option two weeks ago. Except, probably, that Landscape mode you mentioned. That was really unexpected, but we’ll give it a try!
    In the list of print jobs, those are always marked as ‘pending’. We’ll test this week and let you know the outcome.

    Thanks!

    Plugin Author bizswoop

    (@bizswoop)

    Very strange, we’ve never had a reported instance that a setting configuration failed to resolve the print jobs for a printer model.

    What model of Epson printer are you connecting to GCP?

    This comment grabbed our attention “In the list of print jobs, those are always marked as ‘pending’.”

    Based upon this print job status, we suspect the issue could be between the Printer Model and connector to Google Cloud Print Services. What setup are you using to connect the non-cloud ready printer to GCP? Chrome Connector?, CUPS print server? or?

    Have you verified the printer can print from GCP without using our Plugin? Meaning send a print job from inside GCP to the printer, did this successfully print? If not, I think that is where the attention should be spent trying to get that connection correct.

    If yes the GCP test print job worked, after you test Page Orientation status, if that doesn’t solve the problem, can you send us the print log, under the logs tab. We’d like to take a quick look at the log of events occurring.

    hi, the model is TM-m30 and we use Chrome Connector for the setup.
    I’ll be doing some more tests soon and come back to you. Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.