cordova-plugin-inapppurchase icon indicating copy to clipboard operation
cordova-plugin-inapppurchase copied to clipboard

How reverse pay in-app purchase IOS

Open christiantigre opened this issue 5 years ago • 1 comments

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)
    })

  }

christiantigre avatar May 23 '19 19:05 christiantigre

Ever figure this out?

rbrand21 avatar Apr 17 '20 06:04 rbrand21