I can now make purchases again but it still doesn't let me request the details of the in-app purchase before the user makes the purchase.
I have my app published as a beta app (no production app uploaded yet).
When I request for the payment using:
manager.RequestPayment("productid_is_here","inapp","aaa")
it pops up requesting for the payment (I never follow though with the payment).
So I know I have a in-app purchase available.
When I run the code:
it returns nothing other than:
** Activity (main) Pause, UserClosed = true **
*** Service (starter) Create ***
** In-App Billing Initialize **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Billing service connected.
Checking for in-app billing 3 support.
In-app billing version 3 supported for my.app.name
Subscriptions AVAILABLE.
true, Setup successful. (response: 0:OK)
Subscriptions supported: true
Starting async operation: refresh inventory
Querying owned items, item type: inapp
Package name: my.app.name
Calling getPurchases with continuation token: null
Owned items response: 0
Continuation token: null
Querying SKU details.
queryPrices: nothing to do because there are no SKUs.
Querying owned items, item type: subs
Package name: my.app.name
Calling getPurchases with continuation token: null
Owned items response: 0
Continuation token: null
Querying SKU details.
queryPrices: nothing to do because there are no SKUs.
Ending async operation: refresh inventory
** Manager_OwnedProducts triggered **
It triggers that OwnedProducts sub, but Success = False.
If Success = False then there is a different problem which you need to first solve.
Any ideas on where to start ?
I can confirm it allows me to purchase the item (as per the above), so I know there is a valid in-app product it should be returning, and since it allows me to purchase the item it is able to communicate to the Google Play store.
Since I haven't purchased any items yet, I guess this is why it's returning false or doesn't that matter if I have purchase a product or not ?
For testing, I now have just created a small demo project which I uploaded to Google Play as a production app to test it out.
I got the same result, where it allows the user to purchase the in-app purchase etc, but when I request GetOwnProducts it returns nothing. It seems to trigger the OwnedProducts sub but never any details about what products are available for purchase. So success is still returning False.
Either I am doing something wrong, or GetOwnProducts only returns the products the user has purchased and not what is available for purchase.
I have attached my demo project as an attached file to this post, hoping someone can see what I might of done wrong.
My In-App Purchase in Google Play looks like:
(I put a high amount for the in-app purchase so people don't follow though with the purchase while I testing it, if they do purchase it, well lucky me)
I have now unpublished the app as I didn't want anyone to download the app etc.