Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - BlackWolf Studios

Pages: 1
1
Ask a Question / Android Billing - When a purchase succeeds event issues
« on: January 25, 2015, 09:17:37 pm »
I've followed all of the tutorials possible and searched the forum but only found 1 post with a similar problem and no answer.

In short:
  • I add an event "when a purchase succeeds - product ID".
  • I add a simple button that when pressed buys a product.
  • I press said button and the billing pop up works and I can go through and purchase the product
  • Once Google passes the user back to the app, nothing happens

However, if I add to the button press to "do after 1 seconds" "buy product" (essentially just running the same buy block again). Everything magically works and the user gets their product no issues at all.

Why will the purchase succeed event not fire when the user comes back from the purchase screen and why does it fire when you then buy the product for a second time?

If you want I can add examples but my code could not be more identical to this tutorial: http://www.stencyl.com/help/view/android-in-app-purchases/ - The only difference is I am triggering the "buy" from a button (actor that is created after getting the product info). Although I have tested with the EXACT code in the tutorial and it still doesn't seem to work.

Currently using build 8085.

Pages: 1