robovm / robovm-robopods

64 stars 86 forks source link

Robo.billing Product Not Available #114

Closed apollack11 closed 8 years ago

apollack11 commented 8 years ago

I am trying to implement the Billing Robopod for iOS, but I am running into some difficulties. I followed the sample code shown here: https://github.com/robovm/robovm-samples/tree/snapshot/robopods/plugins/robo.billing

I entered my In-App Product ID into the AppStore class exactly as it appears on the iTunes Connect portal. However, when I try and purchase the product, I get a dialog box that says "Error! Product is not available!". I know the product is available because I have also tried to implement gdx-pay and have gotten to the point where I can request a purchase and a dialog box with the correct purchase pops up (I have had other problems with gdx-pay, so I tried to switch to robo.billing). The product adds to the catalog correct, but the boolean available is set to false for some reason.

Any help would be greatly appreciated. Thanks!

apollack11 commented 8 years ago

After looking into this further, I'm pretty sure when "isAvailable()" method in the Product class is the problem. When a product is created, the boolean "available" is automatically set to false and because the method "setAvailable(boolean available)" cannot be called from outside the package (and I don't believe it's called inside the package) it is never set to true. Therefore the product is never shown as available.