• Resolved mybathgreg

    (@mybathgreg)


    I had to roll back to previous version… updated new version and put in the correct keys but I get this error in the log when I try to submit the information on the greenpay settings page

    11-02-2019 @ 20:46:41 – Preparing data, endpoint is https://greenbyphone.com/eTest.asmx/TestAuthentication
    11-02-2019 @ 20:46:41 – Sending POST to GreenPay?, this is what we are sending: x_delim_data=&x_delim_char=%2C&Client_ID=107977&ApiPassword=hu6kv9gn3fq5
    11-02-2019 @ 20:46:41 – Raw Response: <?xml version=”1.0″ encoding=”utf-8″?>
    <TestAuthenticationResult xmlns:xsi=”https://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”https://www.w3.org/2001/XMLSchema&#8221; xmlns=”CheckProcessing”>
    <Result>0</Result>
    <ResultDescription>Success.</ResultDescription>
    <CompanyName>Colorado Vape</CompanyName>
    </TestAuthenticationResult>
    11-02-2019 @ 20:46:41 – Loaded Response: SimpleXMLElement Object
    (
    [Result] => 0
    [ResultDescription] => Success.
    [CompanyName] => Colorado Vape
    )

    11-02-2019 @ 20:46:41 – Preparing data, endpoint is https://greenbyphone.com/WooCommerce.asmx/RegisterStore
    11-02-2019 @ 20:46:41 – Sending POST to GreenPay?, this is what we are sending: Store=https%3A%2F%2Fwww.phoriakratom.com&RESTConsumerKey=ck_b04c0cdb66344cd5ce049c2450544b3d54b8070a&RESTConsumerSecret=cs_94d5035ced713e15a4d46124e202f3639e0be73e&Client_ID=107977&ApiPassword=hu6kv9gn3fq5
    11-02-2019 @ 20:46:42 – Raw Response: <?xml version=”1.0″ encoding=”utf-8″?>
    <WooCommerceResponse xmlns:xsi=”https://www.w3.org/2001/XMLSchema-instance&#8221; xmlns:xsd=”https://www.w3.org/2001/XMLSchema&#8221; xmlns=”CheckProcessing”>
    <Result>
    <Result>7</Result>
    <ResultDescription>Woocommerce REST API returned an unauthorized response for the given REST credentials</ResultDescription>
    </Result>
    </WooCommerceResponse>
    11-02-2019 @ 20:46:42 – Loaded Response: SimpleXMLElement Object
    (
    [Result] => SimpleXMLElement Object
    (
    [Result] => 7
    [ResultDescription] => Woocommerce REST API returned an unauthorized response for the given REST credentials
    )

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Alex

    (@greenmoney)

    First off, we have to recommend you reset your API password through your green portal as well as reset your WooCommerce REST API credentials as this is a public forum that you just posted those onto.

    Based on the log it can be 1 of 2 things. Either the REST API credentials that you set are incorrect (they may have a trailing or leading space character or something) OR the REST API settings were not configured correctly. My first guess would be that the Permalink settings were not done correctly which can be found on the installation documents on page 7. Installation documents can be downloaded here: https://www.green.money/woo

    If you have any other issues or questions, please email me at [email protected] where we are able to be much more responsive.

    Thread Starter mybathgreg

    (@mybathgreg)

    Yes, I’ll reset them all once I can get it all working, however I followed the instructions exactly. The rest api credientials were copied exactly as they appear from woocommerce without any leading spaces or anything like that and my permalink is set to Post Name: https://www.phoriakratom.com/sample-post/

    Plugin Author Alex

    (@greenmoney)

    The response from WooCommerce’s API that we are getting when sending them the REST API credentials from your debug log is “401 Unauthorized” and we are not given any more information as to why.

    It is possible that the credentials are incorrect, or there is some other setting in your WooCommerce store that we do not know about which could be preventing your store from being authorized by WooCommerce.

    We tested using both their version 2 and version 3 API and we got the same “401 Unauthorized” which should only happen if the credentials are wrong.

    If you need any further assistance, please reach out to us at [email protected] or reach out to WooCommerce support as to why your REST API is not being authenticated.

    Thread Starter mybathgreg

    (@mybathgreg)

    I emailed you directly, let me know if you got it. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘REST API Not Working’ is closed to new replies.