user2045921
user2045921

Reputation: 3

Restore Button On In-App Purchase

my app reject reason "Restore Button On In-App Purchase" how can add this button i use MKSKProduct v.4.0

thanks

Upvotes: 0

Views: 2055

Answers (1)

WDUK
WDUK

Reputation: 19030

Basically, if you have IAP within your app (that has products that can be restored), then you need to provide the user the ability to restore their original transactions (for example, if they buy a new device).

You don't need MKStoreKit to do this, simple StoreKit will do the trick. Create your button where you need it to be, and hook it up to this method:

- (IBAction)restoreCompletedTransactions:(id)sender
{
    [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
    [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}

Check the documentation of restoreCompletedTransactions on Apple's website.

Upvotes: 1

Related Questions