Facing problem with woocommerce


#1

When i use version: ‘wc/v2’ its showing proper response but when i tried to change to version: ‘wc/v3’ showing an error 404 not found
below attach my code

this.Woocomerce= WC({
  		url:"https://mydomainname.com/wordpress",
  		consumerKey: "ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  		consumerSecret:"cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  		wpAPI: true,
    	       version: 'wc/v2'
  	});

.ts

export class HomePage {
Woocomerce:any;
productss:any[]
  constructor(public navCtrl: NavController) {
  	this.Woocomerce= WC({
  		url:"https://mydomainname.com/wordpress",
  		consumerKey: "ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  		consumerSecret:"cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  		wpAPI: true,
    	       version: 'wc/v2'

  	});
  	this.Woocomerce.getAsync("products").then((data)=>{
  		console.log(JSON.parse(data.body));
  		this.productss=JSON.parse(data.body).products;
  	},(error)=>{
  		console.log(error)		
  	})
  }

.html

 <ion-row>
      <ion-slides>
        <ion-slide *ngFor="let product of productss">
          <ion-card no-padding>
            <img [src]="product.featured_src">
            <h1>{{product.title}}</h1>
            <p>{{product.short_description}}</p>
          </ion-card>
        </ion-slide>
      </ion-slides>
   </ion-row>

Please help me out anyone.
Thanks in advance.