Question

I have an iOS app that uses InApp purchases. I have gone through all the steps necessary and everything seems to be working ok. I am unclear on one issue though… how do I re-test an InAPP Purchase?

What I mean is I have a few different SKU's available, some when purchased cancel out others. For example, I have Feature A that has a blue and red widget. Then I have Feature B that includes a blue and red widget, but also adds a yellow one.

I successfully tested the InApp Purchase with the test account and bought Feature A, how do I clear the InApp and try my App by Purchasing Feature B?

Was it helpful?

Solution

You can not clear the purchase history.

Create a new user for each different set of testing you want to run.


In your case, MKStoreKit keeps a record in the keychain and that is retained across app deletion. So, you need to call removeAllKeychainData on MKStoreManager to remove all of the old purchases.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top