Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ofonna on February 23, 2017, 01:13:09 AM

Title: in app purchases update [SOLVED]
Post by: Ofonna on February 23, 2017, 01:13:09 AM
heyy guys, please i would appreciate any tutorial on IAP with stans asset, i bought it and the example scene doesn't seem to make sense, ive spent a whole day trying to work this out, i'm new to android development and this is just my learning phase so please bare with me, i understand all the basics and can even build games, but my biggest issue is implementing IAP and testing it out on my google developer console account. i know there are a lot of vets here that can do this easily, please help me.

this is what the scene looks like, some may be familiar with this, the fsms dont seem to make sense.

thanks in advance to whoever helps out
Title: Re: in app purchases update [help] playmaker vets
Post by: djaydino on February 23, 2017, 01:35:27 AM
Hi,
Did you check the user guides on their website (https://unionassets.com/android-native-plugin/plugin-setup-79)?

There is a playmaker section in it, but be sure to check getting started 1st.
there are some important things you need to setup 1st
Title: Re: in app purchases update [help] playmaker vets
Post by: Ofonna on February 23, 2017, 02:36:48 AM
thank you very much for your reply djaydino, i've gone through the entire process but it's a lot and i dont seem to understand where i'm going wrong, i opened my google console developer account aswell as the merchant account, my main issue is testing the in app purchase, my plan was to build the example scene and test it out on my phone, but i've spent the whole day not achieving anything, i tried the beta testing but the opt in link never popped up and
secondly, i would like to know if the actions are meant to work in the editor
Title: Re: in app purchases update [help] playmaker vets
Post by: djaydino on February 23, 2017, 11:06:59 AM
Hi,
It will not work in the editor

The version you placed on your phone must be the same as the (alpha/beta) version on google dev.

Have you placed the Base64 key in AndroidNativeSettings and added your product?
Title: Re: in app purchases update [help] playmaker vets
Post by: Ofonna on February 23, 2017, 01:09:04 PM
hi once again, thank you so much djaydino for your time.

yes i've added my products and added the base64 key aswell, but as you can see down below, theres no opt in link, secondly i tried to use my own gmail as a tester gmail, since i dont have any tester, thirdly i was expecting to see the purchase buttons pop up under the items to buy, but i guess it cant work in the editor like you said.(image down below)

but if you look at the picture, i clicked on the closed beta testing and added my email as a tester. could that be the problem?
i just want to test the android native IAP plugin but i can't seem to figure out how to download the test app on my device from google play

but please look at the pictures and tell me if you notice any faults

thanks for your time.
Title: Re: in app purchases update [help] playmaker vets
Post by: djaydino on February 24, 2017, 10:06:48 AM
Hi,
The opt-in is only for "open" beta testing

you will get a link like this one for example :
https://play.google.com/apps/testing/com.jinxter.HitTheLight
then you can share that link on FB for example.

I never tried the example files.

in the game i linked i simply use :

"AN_initBilling" at the start of the game.

then after some ads are shown i have a popup with 2 buttons, when no ads forever is pressed it will trigger "AN_Purchase"

I also use "AN_ISProductPurchased" to check if the product is purchased (right after initBilling)

If you want to show the price on your buy screen you can use "AN_RetriveProductInfo" to get all the info on that product, then use a set text/string to display it.

Also what i noticed on the top/left from the 2nd picture that is says draft, it must be published.
and there must be some reason that you can't publish, you can try clicking "Why Can't I Publish?"

Maybe you app does not have a 'keystore' yet.
Title: Re: in app purchases update [help] playmaker vets
Post by: Ofonna on February 24, 2017, 10:56:38 AM
thank you so much!