Android in-app. How to implement the ability to re-purchase the same product in the app?

0 like 0 dislike
18 views
Good day!
Do in the app store. Going to sell the same item more than once, but it's not a subscription so
in google console created a limited product
In the application to make a purchase using a library Checkout of this post https://habr.com/post/233265/.
The library is checking on product type: if the type of in-app, and this product has already been bought, we get the error ITEM_ALREADY_OWNED (as I understand in this case the purchase request to Google not went)
Changed the type of subscription (SUBSCRIPTION) -there is a request to Google, but Google also returns a message indicating that the product is already bought
requests.purchase(ProductTypes.SUBSCRIPTION, "ptoduct", null, mCheckout.getPurchaseFlow());


A limited product Google is not allowed to buy more than once, and the subscription is not suitable for multiple purchases in korotichi period of time

Question:
As you can several times to buy the same product?
by | 18 views

2 Answers

0 like 0 dislike
Looked for an answer in other words - I think I have to use a consume
by
0 like 0 dislike
After you have added the purchase - specific payment necessary to "close" - alas the name of the method does not say. Until then he will not be available for re-purchase.
Workflow like this:
The user gmake "buy" kick payment system - payment system-something moves, you have to spend the money - payment system pulls kollbek our priligy about successful payment - accrued what we bought in our attached (the internal currency of the game, for example) - say the payment that "everything is OK, we have accrued"
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
asked Mar 28, 2019 by c_basso
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
32,810 users