Freshplug to display customer orders in WooCommerce store



Show first post
This topic has been closed for comments

37 replies

Apologies for the delay, Kim.

Freshplugs currently do not support OAuth type authentication so any application that uses this type of authentication cannot be implemented as a plug. 

Now, even though the document for woocommerce states that they support Basic Authentication, any postman call or rest call I try shows the error that the oauth key is missing. 

I am checking if there are any other alternatives.


Hi Arjun, 


Can you please give some details how it's going with this? :)


Thank you! 


WBR 

Kim H.

Hi Arjun! 


Any news regarding this integration? 


WBR Kim H.


Hi Arjun!

Thank you so much for helping with this, I shall wait for your response! :)

WBR

Kim

Hi Kim, 

I most certainly will try to look into this and help you out. 

Please give me a 3-4 days to check this use case and get back to you. 

Hope that is okay.


Hi!


I had a short discussion with one Wordpress developer and he couldn't verify that this Freshplug code uses correct authentication and reason is http (without s) and Oauth 1.0a - authentication.


I understood that Basic Auth method works only with httpS - and if you're using http you need to use OAuth 1.0a.


Can you please check the code from your side or/and update it to support OAuth 1.0a and http? 


WBR 


Kim



Hi Kim, 


Not sure on why the issue is. 

I do realise that Woocommerce's API has been bumped up to v3 however their documentation states that Basic Authentication is supported so it must be some configuration setting that we are missing. 

I am not entirely sure on how to fix this, however on searching I did find the link below.

http://stackoverflow.com/questions/21909164/restful-api-woocommerce-rest-api-requests-failing-with-curl


Please let me know if it helps.


Hi Arjun! 


Thank you for your fast reply.


Yes, I do have API enabled in WooCommerce store + username / password double checked in code. 


What I did: Even when I have store at "http://mystore.com", I did change the url parameter in code from http to https and ssl_enabled parameter is now set to be false. Now I don't face that oauth failure message anymore but what I do get is next: 


/No WooCommerce Data 


I'm 100% sure that I have a customer in the store with email (requester) who has orders (with different delivering status). 


What could be the next step?


Thank you for your help in this! 


WBR.

Kim Hiekkanen


Hi Kim, 

The Freshplug should work irrespective of the SSL setting. However there needs to be small change in the code. 

Please find the comment in the code block.
 

var woocombundle = { 
domain:'https://techsupport.360networkservices.com/payment/', //Edit the URL as per the customer's account
ssl_enabled: false, //If the URL is Non-SSL
auth_type : "Basic",
username: 'ck_6c138b20d713e6d4755e3c04f675ddf1', //WooCommerce Consumer_key
password: 'cs_fbc746e4060c4dce64577c5434b4701d' //WooCommerce Consumer_secret
};

 

Also the only set up required is to modify the username and password in the above bundle with your accounts settings. For generating the API key, please view the article in the link below.

https://docs.woothemes.com/document/woocommerce-rest-api/#section-3

The URL will also be based on your account URL so if the URL is http://mystore.com, then the value for the domain on the above bundle should also be the same.



Hi!


Did I understand right from the code abowe that plugin is only for HTTPS enabled stores? 


How about if I'm using only HTTP - how does the authentication works then? 


Now what I get is following when retrieving data: 

"oauth_consumer_key" parameter is missing. 


What I understood (from google) is now about the authentication (oauth), right? Or am I doing something wrong with this code?


Please help - any kind help is very welcome. :) 


Thank you!


WBR 


Kim


Hi Arjun!


First of all, thank you!


I'm pretty new with this WooCommerce kind stuff and I got to ask for more detailed information:


I have managed to set up REST API under my store's settings and put the keys inside the code you sent.

- What's the URL I supposed to call? I mean, is it just the URL of my store like http://mystore.com? 

- Permalinks -> What type of permalink I should use for this?


I don't have https enabled so it's "false".


Now only what I do receive is following:  "/No WooCommerce Data" and after some changes "oath_autkey_missing". 


Please give some more advanced info! 


Thank you forehand for your help with this!


WBR Kim

Hi Kim, 

Please find the WooCommerce Freshplug in the link below. 


https://dl.dropboxusercontent.com/u/98822364/woo_commerce_fixed_v2.txt


The Freshplug will pull in the contact details and order details as shown in the image below.