playMaker

Author Topic: in app purchases update [SOLVED]  (Read 1134 times)

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
in app purchases update [SOLVED]
« on: February 22, 2017, 11:13:09 PM »
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
« Last Edit: February 24, 2017, 02:38:03 PM by Carmichael »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4539
    • View Profile
    • jinxtergames
Re: in app purchases update [help] playmaker vets
« Reply #1 on: February 22, 2017, 11:35:27 PM »
Hi,
Did you check the user guides on their website?

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

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: in app purchases update [help] playmaker vets
« Reply #2 on: February 23, 2017, 12: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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4539
    • View Profile
    • jinxtergames
Re: in app purchases update [help] playmaker vets
« Reply #3 on: February 23, 2017, 09: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?

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: in app purchases update [help] playmaker vets
« Reply #4 on: February 23, 2017, 11:09:04 AM »
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.
« Last Edit: February 23, 2017, 03:03:33 PM by Carmichael »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4539
    • View Profile
    • jinxtergames
Re: in app purchases update [help] playmaker vets
« Reply #5 on: February 24, 2017, 08: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.

Ofonna

  • Full Member
  • ***
  • Posts: 230
    • View Profile
Re: in app purchases update [help] playmaker vets
« Reply #6 on: February 24, 2017, 08:56:38 AM »
thank you so much!