Example usage for com.badlogic.gdx.pay PurchaseManagerConfig addOffer

List of usage examples for com.badlogic.gdx.pay PurchaseManagerConfig addOffer

Introduction

In this page you can find the example usage for com.badlogic.gdx.pay PurchaseManagerConfig addOffer.

Prototype

public void addOffer(Offer offer) 

Source Link

Usage

From source file:com.badlogic.gdx.pay.android.googleplay.testdata.PurchaseManagerConfigObjectMother.java

public static PurchaseManagerConfig managerConfigGooglePlayOneOfferBuyFullEditionProduct() {
    PurchaseManagerConfig config = new PurchaseManagerConfig();

    config.addStoreParam(STORE_NAME_ANDROID_GOOGLE,
            "kbiosdfjoifjkldsfjowei8rfjiwfklmujwemflksdfjmsdklfj/sdifjsdlfkjsdfksd");
    config.addOffer(offerFullEditionEntitlement());

    return config;
}

From source file:com.badlogic.gdx.pay.android.googleplay.testdata.PurchaseManagerConfigObjectMother.java

public static PurchaseManagerConfig managerConfigGooglePlayOneOfferConsumbableProduct() {
    PurchaseManagerConfig config = new PurchaseManagerConfig();

    config.addStoreParam(STORE_NAME_ANDROID_GOOGLE,
            "kbiosdfjoifjkldsfjowei8rfjiwfklmujwemflksdfjmsdklfj/sdifjsdlfkjsdfksd");
    config.addOffer(offerConsumable());

    return config;
}

From source file:com.badlogic.gdx.pay.android.googleplay.testdata.PurchaseManagerConfigObjectMother.java

public static PurchaseManagerConfig managerConfigGooglePlayOneOfferSubscriptionProduct() {
    PurchaseManagerConfig config = new PurchaseManagerConfig();

    config.addStoreParam(STORE_NAME_ANDROID_GOOGLE,
            "kbiosdfjoifjkldsfjowei8rfjiwfklmujwemflksdfjmsdklfj/sdifjsdlfkjsdfksd");
    config.addOffer(offerSubscription());

    return config;
}