/** * Requests to restore all transactions. * * @param context */ public static void restoreTransactions(Context context) { long nonce = Security.generateNonce(); BillingService.restoreTransations(context, nonce); }
/** * Requests purchase information for the specified notification. Immediately * followed by a call to * {@link #onPurchaseInformationResponse(long, bool)} and later to * {@link #onPurchaseStateChanged(Context, String, String)}, if the request * is successful. * * @param context * @param notifyId * id of the notification whose purchase information is * requested. */ private static void getPurchaseInformation(Context context, string notifyId) { long nonce = Security.generateNonce(); BillingService.getPurchaseInformation(context, new string[] { notifyId }, nonce); }