
/*******************************************************
 * Copyright (C) 2018 XMind Ltd. - All Rights Reserved
 *******************************************************/

const ext = require("./index")

ext.restoreCompletedTransactions().then(function(){
  console.log("Restore purchase success")
}).catch(function(error){
  console.log("Restore pruchase error:", error)
})

ext.refreshReceipt().then(function(){
  console.log("Refresh receipt success")
}).catch(function(error){
  console.log("Refresh receipt error:", error)
})

// ext.getProducts(["net.xmind.zen.subscription.vana"], function(result, error){
//   console.log(result, error)
// })

// ext.purchaseProduct("net.xmind.zen.subscription.vana", 1, function(result, error){
//   console.log(result, error)
// })
