Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting a purchase in a In App Purchase Test User account [duplicate]

I have a test user account that is working just fine for testing in app purchases.

I would like to "delete" a purchase from this account, so I can test the purchase multiple times. Right now, if I try to purchase, it logically says the the Test User has already purchased the product in question.

Can I delete a purchase from a Test User account so that I can test the same purchase multiple times. I'd hate to have to create a new Test User every time I want to test the purchase.

EDIT: Each time I try to purchase, I get a dialog with "You've Already Purchased this. Tap OK to download it again for free".

like image 534
Don Wilson Avatar asked May 23 '12 02:05

Don Wilson


People also ask

What happens if you delete an app with in-app purchases?

Yes, deleting an app removes the program and all its data. That means if you paid to purchase the app, you won't have to pay again should you choose to reinstall it.

How do you remove any unused in-app purchase products from App Store Connect?

Under In-App Purchases on the left, click Manage. Locate the in-app purchase you wish to remove by identifying its Product ID and/or Reference Name and then select it. Under Availability uncheck the Cleared for Sale check box. Click the Save button.

How do I stop unauthorized Apple purchases?

On the Android phone or tablet you want to restrict, head to the Google Play Store app and then tap the profile picture in the top right and choose "Settings". Now tap "Authentication" and then "Require authentication for purchases" and tap on this option.


2 Answers

If you really want to test it clean, you are going to have to create another test user. However, I don't see the need for this. Redownloading an in-app purchase is a nearly identical code flow. The actual purchase and verification logic is not part of your application, and a user buying something multiple times is not something that is supposed to happen (unless you specify that it is that kind of consumable). If it works for redownloading, it is safe to assume it will work for the initial purchase.

You do not have access to this data. If Apple exposed a way to reset purchases, they would risk opening themselves up to a security risk since I assume their sandbox server code is practically identical to their production code (otherwise the sandbox would be meaningless). Because the data is on Apple's servers, associated with an iTunes account, it can span across multiple devices.

An alternate idea would be to delete the in app purchase from your iTunes Connect, and make a new one.

like image 81
borrrden Avatar answered Nov 08 '22 02:11

borrrden


If the type of your in-app purchase is consumable then you can just reinstall your app. If your in-app purchase is non-cosumable, then you will need to create additional test users.

like image 2
Maxim Mikheev Avatar answered Nov 08 '22 04:11

Maxim Mikheev