Я создаю приложение Ionic с использованием API woocommerce
Ниже приведен файл .ts моего провайдера woocommerce
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.
Спасибо.