In app purchase ERROR


#1

Hello, I’m getting error “invalid time value” from In App Purchase V1 native plugin, then i try to buy consumable item.

my code is :

 buy(product) {
  let d:any;
    this.iap
      .buy(product)
      .then(data => {
        this.iap.consume(data.productType, data.receipt, data.signature);
        d = data;
      })
      .then(() => {
      this.enableItems(product,d);
    })
      .catch( err=> alert(':'+err.message+' '+err.status))
  }

Can you guys please tell me solution to fix that.


#2

Found issue. Date variable was null and i tried to alert it.