Created
March 21, 2017 17:25
-
-
Save jonathanpeppers/7ab8b40b3ac2885b724be3aab4e60d01 to your computer and use it in GitHub Desktop.
BillingConstants for Google Play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BillingConstants | |
{ | |
public const int ApiVersion = 3; | |
// Billing response codes | |
public const int ResultOk = 0; | |
public const int ResultUserCancelled = 1; | |
public const int ResultBillingUnavailable = 3; | |
public const int ResultItemUnavailable = 4; | |
public const int ResultDeveloperError = 5; | |
public const int ResultError = 6; | |
public const int ResultItemAlreadyOwned = 7; | |
public const int ResultItemNotOwned = 8; | |
// Keys for the responses from InAppBillingService | |
public const string ResponseCode = "RESPONSE_CODE"; | |
public const string SkuDetailsList = "DETAILS_LIST"; | |
public const string SkuDetailsItemList = "ITEM_ID_LIST"; | |
public const string SkuDetailsItemTypeList = "ITEM_TYPE_LIST"; | |
public const string BuyIntent = "BUY_INTENT"; | |
public const string InAppPurchaseData = "INAPP_PURCHASE_DATA"; | |
public const string InAppDataSignature = "INAPP_DATA_SIGNATURE"; | |
public const string InAppItemList = "INAPP_PURCHASE_ITEM_LIST"; | |
public const string InAppDataList = "INAPP_PURCHASE_DATA_LIST"; | |
public const string InAppSignatureList = "INAPP_DATA_SIGNATURE_LIST"; | |
public const string InAppContinuationToken = "INAPP_CONTINUATION_TOKEN"; | |
// Item types | |
public const string ItemTypeInApp = "inapp"; | |
public const string ItemTypeSubscription = "subs"; | |
public const string BillingIntent = "com.android.vending.billing.InAppBillingService.BIND"; | |
public const string BillingPackageName = "com.android.vending"; | |
public const int PurchaseRequestCode = 1337; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment