libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 82 forks source link

gdx-pay-tests-android #29

Closed vuongthanhtai closed 9 years ago

vuongthanhtai commented 9 years ago

gdx-pay-tests-android cant run with last pull.

PS: In my project:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
SkyIslandGUI skyIslandGUI = new SkyIslandGUI();
initialize(skyIslandGUI);

if (PurchaseSystem.hasManager()) {
     PurchaseManagerConfig config2 = new PurchaseManagerConfig();
    config.addOffer(new Offer().setType(OfferType.CONSUMABLE).setIdentifier("fish.coin"));
    config.addStoreParam(PurchaseManagerConfig.STORE_NAME_ANDROID_GOOGLE, GOOGLEKEY);
        PurchaseSystem.install(new PurchaseObserver() {
        ...
        }, config);
}

}

02-04 20:29:35.844: E/AndroidRuntime(28093): Caused by: java.lang.RuntimeException: Problem setting up in-app billing: IabResult: 3, No suitable appstore was found (response: 3:Billing Unavailable)

noblemaster commented 9 years ago

Looks like the latest version of OpenIAB needs a store search parameter (how the backend decides which store to use). I just fixed it in github and uploaded another SNAPSHOP release to maven. Please try the latest 0.4.0-SNAPSHOT release and check if the problem is resolved? Sorry for the troubles...

vuongthanhtai commented 9 years ago

Problem is resolved. :+1: Thank you!