"This product is not sold" Billing
-
"This product won't be sold" when the purchase button comes, what's wrong? The key added, the key added, the application in the release now she's on the mark, but the button still doesn't work what to do.
APK Zalit in a release, you can find the name of the ATM
ID purchases are controlled by Google, the name isbuy_gold
public class Vip extends AppCompatActivity implements View.OnClickListener, BillingProcessor.IBillingHandler{ BillingProcessor bp; String KEY=""; String SKU="buy_gold";
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.vip); ((TextView)toolbar.findViewById(R.id.tb_textView)).setText(""); ((ImageView)toolbar.findViewById(R.id.tb_imageView)).setOnClickListener(this); bp = new BillingProcessor(this, KEY, this); } @Override public void onClick(View v) { switch (v.getId()){ case R.id.tb_imageView: bp.purchase(Vip.this,SKU); break; } } @Override public void onProductPurchased(String s, TransactionDetails transactionDetails) { Log.e("asd",s+" "+transactionDetails.toString()); } @Override public void onPurchaseHistoryRestored() { } @Override public void onBillingError(int i, Throwable throwable) { } @Override public void onBillingInitialized() { }
}
In the Manifeste, he wrote Billing, in the middle of the hall,
-
A successful test purchase requires:
- The app on the mark in the beta version.
- Produced for purchase
- A list of test men in consoles.
- These test-users should take part in the beta test by switching from the console.
- The annex shall be signed by a key, identical to the one signed at the mark.
- The version of the application on the page
versionCode
Totalbuild.gradle
() Shall coincide with the version of the annex published in the mark.