woocommerce_rest_authentication_error-410-无效的签名

时间:2019-01-16 11:48:31

标签: ionic-framework ionic3 woocommerce-rest-api

我正在使用woocommerce API构建Ionic应用程序

下面是我的woocommerce提供商.ts文件

import * as WC from 'woocommerce-api';
this.Woocommerce =  new WC({
        url: "http://myftuplad.com",
        consumerKey: "ok_d064f357304e",
        consumerSecret: "os_0e59869ac5e08",
        wpAPI: true,
        version: 'wc/v2'
        /*queryStringAuth: true,
        verify_ssl: false*/
    });

下面是放置和订购的checkout.ts文件

this.WooCommerce.postAsync("orders", orderData.order).then((data) => {
    let response = (JSON.parse(data.body));
    console.log(response);
})

以下是错误:

code : woocommerce_rest_authentication_error 
status : 401
message : Invalid signature - provided signature does not match.

谢谢。

0 个答案:

没有答案