IAP - Buy Item Simply not working

I have tried many many things to get this to work. from changing the case size, logging in as a sandbox user changing provisioning profiles, a whole bunch of etc..

all i am trying to do is induce the action by touching a button to activate "buy item" and it does nothing in adhoc testing or sand box test flight testing.

i have been at this for a while, has anyone else faced this issue? any help or tips will be appreciated.

thanks.

Answers

  • hoomann210hoomann210 Member Posts: 63
    edited May 2015

    @tony.buckner26@gmail.com have u tried it without the attribute condition? or when touch is pressed instead of released?

  • hoomann210hoomann210 Member Posts: 63

    @tony.buckner26@gmail.com u have 3-4 conditions which has to be met in order it to be triggered..r u sure all of them are met? have u used log debugger behavior?

  • StriderzetStriderzet Member, PRO Posts: 17

    @hoomann210 the conditionals are met when i press it. i am trying to change the release to pressed now. hope it works.

  • ArmellineArmelline Member, PRO Posts: 5,364

    Where is the callback attribute being checked?

  • SummationSummation Member, PRO Posts: 476

    @Armelline said:
    Where is the callback attribute being checked?

    Yes, the request for purchase data should be "naked" if I'm not mistaken, i.e. not inside a Rule or anything else.

  • StriderzetStriderzet Member, PRO Posts: 17

    @Summation said:
    Yes, the request for purchase data should be "naked" if I'm not mistaken, i.e. not inside a Rule or anything else.

    it is called at the beginning of the actor as soon as it appears on screen. i put a show text in there and on adhoc testing it returns a 1 every time.

  • SummationSummation Member, PRO Posts: 476

    @Striderzet said:
    it is called at the beginning of the actor as soon as it appears on screen. i put a show text in there and on adhoc testing it returns a 1 every time.

    Have you tried setting up test purchases?
    http://developer.android.com/google/play/billing/billing_testing.html

  • StriderzetStriderzet Member, PRO Posts: 17
  • SummationSummation Member, PRO Posts: 476

    @Striderzet said:
    this issue is happening on iOS.

    I see. Who do you have set up to process your iap's?

  • StriderzetStriderzet Member, PRO Posts: 17

    @Summation said:
    I see. Who do you have set up to process your iap's?

    just me. i made a sandbox tester using an email+email@email.com, but thats not working either. my mobile provision is good for IAP and sandbox testing, but still no dice. i am almost at the point of frustration here.

  • SummationSummation Member, PRO Posts: 476

    @Striderzet said:
    just me. i made a sandbox tester using an email+email@email.com, but thats not working either. my mobile provision is good for IAP and sandbox testing, but still no dice. i am almost at the point of frustration here

    This video might help you:

  • StriderzetStriderzet Member, PRO Posts: 17

    @Summation said:

    i see that and have followed this instructions. i have even setup a simple button just to see if it works and no dice:

  • ArmellineArmelline Member, PRO Posts: 5,364

    There could be 100 things wrong, really, and I'd have to see the file to give any real advice.

    However, a common problem is the Buy behaviour's Purchase ID, the Purchase ID in the table and the Purchase ID set up in iTunes Connect not all matching. Check they're all the same.

  • StriderzetStriderzet Member, PRO Posts: 17

    @Armelline said:
    There could be 100 things wrong, really, and I'd have to see the file to give any real advice.

    However, a common problem is the Buy behaviour's Purchase ID, the Purchase ID in the table and the Purchase ID set up in iTunes Connect not all matching. Check they're all the same.

    they are:


    the funny thing is when i try it on viewer it throws an error saying "buy item is not supported on viewer" so i know it doing something.

  • StriderzetStriderzet Member, PRO Posts: 17

  • ArmellineArmelline Member, PRO Posts: 5,364

    Afraid it would really take looking in detail at the file and your implementation to likely pin this down. Could be so many things.

  • freneticzfreneticz SwedenMember, PRO Posts: 774

    Im using GS 13.22 and trying with ID "android.testing.purchased" , is it normal that i need to press buy everytime i restart the game to activate the iap (maybe because it is offline testing)

  • GameAlchemistGameAlchemist Member Posts: 106

    Same problem is occurring for me too. I have been trying to get the purchases work in Ad hoc testing but whenever I press my in app purchase button, nothing happens. I can only see the request purchase data turn to 1. even though I have followed GameSaladGuru's videos. I hope there is nothing in Xcode that I have to setup other than copy the .app file to my device.

  • ArmellineArmelline Member, PRO Posts: 5,364

    @Shahrukh_1810 said:
    Same problem is occurring for me too. I have been trying to get the purchases work in Ad hoc testing but whenever I press my in app purchase button, nothing happens. I can only see the request purchase data turn to 1. even though I have followed GameSaladGuru's videos. I hope there is nothing in Xcode that I have to setup other than copy the .app file to my device.

    Are you pushing the build to your phone using TestFlight?

  • GameAlchemistGameAlchemist Member Posts: 106

    No @Armelline This is the procedure that I do:
    1. Open Xcode
    2. Window > Devices

    Once my device appears there, I see a + icon below my bought apps. I can delete and install .app files there. When I press the + icon I choose my .app file and the game gets copied.

    I hope I am not doing anything wrong here.
    Thanks.

  • MentalDonkeyGamesMentalDonkeyGames Member Posts: 1,276

    @Shahrukh_1810

    You can only test in-app purchases with TestFlight.

    Mental Donkey Games
    Website - Facebook - Twitter

  • gamestudentgamestudent Member Posts: 504

    I have the same problem as well.

  • GameAlchemistGameAlchemist Member Posts: 106

    I am having some problems with test flight on my device so I tried test fairy to download and install my app, but still the in app purchase buy item button doesn't trigger anything on my iphone 5. I have even logged out of all accounts on my mobile phone.

    I'll try doing testflight on my iphone 6 device after work but first wanted to ask something about testflight. In order to upload the game to Itunes connect, should I press the "Deliver your app" button in Application loader(Only for testing) or is there any other way? I even watched Armelline's video last night to setup in app purchases but I need some help in testing in app purchases only. If there is any simulator, I can even work with that.

    Thanks.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Are you sure you have the purchases actived in itunes connect?

  • ArmellineArmelline Member, PRO Posts: 5,364

    @Shahrukh_1810 said:
    I am having some problems with test flight on my device so I tried test fairy to download and install my app, but still the in app purchase buy item button doesn't trigger anything on my iphone 5. I have even logged out of all accounts on my mobile phone.

    TestFlight is literally your only option to test IAP, unfortunately. Until you test using that, you'll not know for sure what's working and what's not.

  • LovejoyLovejoy Member Posts: 2,078

    @NipaDidIt said:
    Shahrukh_1810

    You can only test in-app purchases with TestFlight.

    @Armelline said:
    TestFlight is literally your only option to test IAP, unfortunately. Until you test using
    that, you'll not know for sure what's working and what's not.

    I test mine just fine without test flight. Simply drag the adhoc .app to my device with Xcode and test everything i need.

    Fortuna Infortuna Forti Una

  • ArmellineArmelline Member, PRO Posts: 5,364

    @Lovejoy said:
    I test mine just fine without test flight. Simply drag the adhoc .app to my device with Xcode and test everything i need.

    Including IAP? As IAP never used to work and that's been tested and confirmed by numerous forum users. Hopefully that's changed, though!

  • LovejoyLovejoy Member Posts: 2,078

    @Armelline said:
    Including IAP? As IAP never used to work and that's been tested and confirmed by numerous forum users. Hopefully that's changed, though!

    Its the way i have tested mine for a year now.

    Fortuna Infortuna Forti Una

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    I always got mine to work without using testflight. Sandboxing was always available. In my videos i show it with the new system. Those were always straight installs.

  • GameAlchemistGameAlchemist Member Posts: 106

    Thanks for the replies guys, I just tested uploading my app to application loader and it is showing ERROR ITMS-90161: "Invalid Provisioning Profile. The provisioning profile included in the bundle com.shahrukh.myapp [myApp.app] is invalid. [Missing code-signing certificate]. A Distribution Provisioning profile should be used when submitting apps to the App Store. For more information, visit the iOS Developer Portal."

    Infact, I checked my certificate and everything else, and my provisioning profile is active but still this problem persists. Let me know if there is any solution to this.

Sign In or Register to comment.