In App Purchase Sandbox Testing - Clear Purchase History Not Working

I'm testing iAP in a sandbox account (as configured in App Store Connect under 'Sandbox Testers').

So the in app purchase works. Cool. But I wanted to retry it. So I cleared the purchase history (both in App Store Connect and on my iPad in the 'Developer' section in Settings).

But when I relaunch my app the purchase still validates and my app displays the item as 'unlocked'.

Figure the receipt must still be cached so I nuke the app and completely reinstall it but it appears StoreKit is still getting the receipt and it isn't being cleared because my app is displaying it as 'purchased.'

Also tried rebooting the iPad. But the sandbox purchase doesn't clear. I just did a sandbox test since it is closer to real life than StoreKit Configuration so I just wanted to do it a few times to make sure all is good but making a burner test account for every purchase is kind of tiresome. Anyone know of a workaround? I might just declare victory and go back to StoreKit Configuration.

[@Macho Man Randy Savage](https://developer.apple.com/forums/profile/Macho Man Randy Savage)

  • I have the same problem, and I have no idea how to resolve clear purchase history.
  • I have a filed a feedback, no response on it.
  • Really wish Apple fixes this or tells us what we are missing, because it very frustrating.
  • Refer: https://developer.apple.com/forums/thread/829459

I have same problem. There always a monthly subscrition . Can't clear by sandbox

I have created a Feedback: FB23078234

It would be great if Apple can fix it

I am also experiencing this (though I'm using Unity IAP, not StoreKit directly). Clearing purchases locally and in cloud, then signing out of Sandbox account and restarting/reinstalling the app: my fulfillment logic still being triggered for previous purchases. :(

@newwbee That link is showing "Feedback Not Found" FYI

@Rabadash8820

Feedback links are only accessible by Apple Engineers and the person who created the feedback.

Yes this is experienced by many, I hope this gets the attention of some Apple Engineers. This is such a critical feature to test and yet, either we are doing something wrong or is broken.

If you don't mind could you also file a feedback, on your mac go to Feedback Assistant app and file a feedback and post the Feedback ID here.

In App Purchase Sandbox Testing - Clear Purchase History Not Working
 
 
Q