Testing In-app Promotions: how to cancel a purchase made with a promo code

1.1k Views Asked by At

Is there any way to cancel a purchase made with a promotion code?

The developer console shows the count of redeemed promo codes but I didn't find a way to administrate and cancel them.

According to the Testing In-app Promotions documentation there are 3 workflows to test. I have an in app purchase that is a non consumable product (no more ad) so there is no way in the app to buy it twice if I already have it.

So how to easily test these workflows on the same user account?

3

There are 3 best solutions below

1
Aladin Q On BEST ANSWER

However you can consume your purchase to cancel a promo code with

public int consumePurchase(int apiVersion, String packageName, String purchaseToken)
1
Pushpa On

There no place to cancel promo code purchases as of now. If you do a promo code purchase or test purchase, you can not cancel it, thus you can not buy a feature more than once.

3
Santiago SR On

Hi you could do 1 day duration promos. Is it not the best solution but after cancelation you old use the same user.