Example usage for com.badlogic.gdx.pay.android.googleplay GoogleBillingConstants ORDER_ID

List of usage examples for com.badlogic.gdx.pay.android.googleplay GoogleBillingConstants ORDER_ID

Introduction

In this page you can find the example usage for com.badlogic.gdx.pay.android.googleplay GoogleBillingConstants ORDER_ID.

Prototype

String ORDER_ID

To view the source code for com.badlogic.gdx.pay.android.googleplay GoogleBillingConstants ORDER_ID.

Click Source Link

Usage

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

private static String makeJsonObjectForOffer(Offer offer) throws JSONException {
    JSONObject jsonObject = new JSONObject();
    jsonObject.put(GoogleBillingConstants.PRODUCT_ID, offer.getIdentifier());
    jsonObject.put(GoogleBillingConstants.PURCHASE_TIME, System.currentTimeMillis());
    jsonObject.put(GoogleBillingConstants.ORDER_ID, "GPA.1234-5678-9012-34567");

    return jsonObject.toString();
}