how I can return or reverse a payment, How is the method??
is
Your code / steps to reproduce
restore in app purchase (required)
restoreMembership( id ) {
this.productId = id;
this.iap.restorePurchases().then( result => {
// loop through purchases to find the one we are looking for
for (var i = 0; i < result.length; ++i) {
// TODO: check result[i].state for cancelled or refunded
if( result[i].productId == this.productId ) {
console.log( 'Purchase found! Do something...', result )
return;
}
}
})
.catch( err => {
console.log(err)
})
}
how I can return or reverse a payment, How is the method?? is
Your code / steps to reproduce