In app purchase not fully working
<p>I just wrote a test application to test in app purchases, it's just a test application where you have to press a button and you purchase a "premium" membership that will make that button invisible (this is just a test app)</p>

<p>So after my friend pressed the button he got the payment screen, he paid, but when he got back to the app the button was still there</p>

<p>This is how i start the purchase </p>

<pre><code>    // User clicked the "Upgrade to Premium" button.
    public void onUpgradeAppButtonClicked(View arg0) {
        Log.d(TAG, "Upgrade button clicked; launching purchase flow for upgrade.");
   //     setWaitScreen(true);
        mHelper.launchPurchaseFlow(this, SKU_PREMIUM, RC_REQUEST,   mPurchaseFinishedListener);
    }
</code></pre>

<p>and when the purchase is finished</p>

<pre><code>// Callback for when a purchase is finished
IabHelper.OnIabPurchaseFinishedListener mPurchaseFinishedListener = new IabHelper.OnIabPurchaseFinishedListener() {
    public void onIabPurchaseFinished(IabResult result, Purchase purchase) {
        Log.d(TAG, "Purchase finished: " + result + ", purchase: " + purchase);

        int duration = Toast.LENGTH_SHORT;
        if (result.isFailure()) {
            // Oh noes!
         //   complain("Error purchasing: " + result);
         //   setWaitScreen(false);
            Toast.makeText(getBaseContext(), "Failed to purchase", duration).show();
            return;
        }

        Log.d(TAG, "Purchase successful.");

        if (purchase.getSku().equals(SKU_PREMIUM)) {
            // bought the premium upgrade!
            Log.d(TAG, "Purchase is premium upgrade. Congratulating user.");
          //  alert("Thank you for upgrading to premium!");
            mIsPremium = true;

            Toast.makeText(getBaseContext(), "You are now premium", duration).show();
            Button test = (Button) findViewById(R.id.test);
            test.setVisibility(View.INVISIBLE);
          //  updateUi();
         //   setWaitScreen(false);
        }
    }
};
</code></pre>

<p>The code was taken from the sample app that was provided by google,i removed the parts i didn't need, maybe i removed something that was needed?</p>
