private void restoreTransactions(Intent intent, int startId) {
   final String packageName = getPackageName();
   final long nonce = intent.getLongExtra(EXTRA_NONCE, 0);
   final RestoreTransactions request = new RestoreTransactions(packageName, startId);
   request.setNonce(nonce);
   runRequestOrQueue(request);
 }
 private void requestPurchase(Intent intent, int startId) {
   final String packageName = getPackageName();
   final String itemId = intent.getStringExtra(EXTRA_ITEM_ID);
   final String developerPayload = intent.getStringExtra(EXTRA_DEVELOPER_PAYLOAD);
   final RequestPurchase request =
       new RequestPurchase(packageName, startId, itemId, developerPayload);
   runRequestOrQueue(request);
 }
 private void getPurchaseInformation(Intent intent, int startId) {
   final String packageName = getPackageName();
   final long nonce = intent.getLongExtra(EXTRA_NONCE, 0);
   final String[] notifyIds = intent.getStringArrayExtra(EXTRA_NOTIFY_IDS);
   final GetPurchaseInformation request =
       new GetPurchaseInformation(packageName, startId, notifyIds);
   request.setNonce(nonce);
   runRequestOrQueue(request);
 }
 private void confirmNotifications(Intent intent, int startId) {
   final String packageName = getPackageName();
   final String[] notifyIds = intent.getStringArrayExtra(EXTRA_NOTIFY_IDS);
   final ConfirmNotifications request = new ConfirmNotifications(packageName, startId, notifyIds);
   runRequestOrQueue(request);
 }
 private void checkBillingSupported(int startId) {
   final String packageName = getPackageName();
   final CheckBillingSupported request = new CheckBillingSupported(packageName, startId);
   runRequestOrQueue(request);
 }