Java Code Examples for com.android.billingclient.api.BillingClient.BillingResponse#ITEM_NOT_OWNED
The following examples show how to use
com.android.billingclient.api.BillingClient.BillingResponse#ITEM_NOT_OWNED .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GooglePlayBillingVendor.java From Cashier with Apache License 2.0 | 6 votes |
private Error getConsumeError(int responseCode) { final int code; switch (responseCode) { case BillingResponse.FEATURE_NOT_SUPPORTED: case BillingResponse.SERVICE_DISCONNECTED: case BillingResponse.BILLING_UNAVAILABLE: case BillingResponse.ITEM_UNAVAILABLE: code = CONSUME_UNAVAILABLE; break; case BillingResponse.USER_CANCELED: code = CONSUME_CANCELED; break; case BillingResponse.ITEM_NOT_OWNED: code = CONSUME_NOT_OWNED; break; case BillingResponse.DEVELOPER_ERROR: case BillingResponse.ERROR: default: code = CONSUME_FAILURE; break; } return new Error(code, responseCode); }
Example 2
Source File: GooglePlayBillingVendor.java From Cashier with Apache License 2.0 | 6 votes |
private Error getDetailsError(int responseCode) { final int code; switch (responseCode) { case BillingResponse.FEATURE_NOT_SUPPORTED: case BillingResponse.SERVICE_DISCONNECTED: case BillingResponse.SERVICE_UNAVAILABLE: case BillingResponse.BILLING_UNAVAILABLE: case BillingResponse.ITEM_UNAVAILABLE: code = PRODUCT_DETAILS_UNAVAILABLE; break; case BillingResponse.USER_CANCELED: case BillingResponse.ITEM_NOT_OWNED: case BillingResponse.DEVELOPER_ERROR: case BillingResponse.ERROR: default: code = PRODUCT_DETAILS_QUERY_FAILURE; break; } return new Error(code, responseCode); }
Example 3
Source File: GooglePlayBillingVendor.java From Cashier with Apache License 2.0 | 5 votes |
private Error getPurchaseError(int responseCode) { final int code; switch (responseCode) { case BillingResponse.FEATURE_NOT_SUPPORTED: case BillingResponse.SERVICE_DISCONNECTED: case BillingResponse.SERVICE_UNAVAILABLE: case BillingResponse.BILLING_UNAVAILABLE: case BillingResponse.ITEM_UNAVAILABLE: code = PURCHASE_UNAVAILABLE; break; case BillingResponse.USER_CANCELED: code = PURCHASE_CANCELED; break; case BillingResponse.ITEM_ALREADY_OWNED: code = PURCHASE_ALREADY_OWNED; break; case BillingResponse.ITEM_NOT_OWNED: code = PURCHASE_NOT_OWNED; break; case BillingResponse.DEVELOPER_ERROR: case BillingResponse.ERROR: default: code = PURCHASE_FAILURE; break; } return new Error(code, responseCode); }