Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In-App billing not working (Your request could not be processed)

Today I published my app, and when my friend tried to buy the in-app content the market says: "Your request could not be processed. please try again".

A few clarifications:

  1. The app was published more than 10 hours ago, and is visible in the google play store.
  2. The testing with google static codes DID work all the time
  3. The buying account is NOT the publisher account
  4. Most of the code is copied as is from google's in-app billing example
  5. The in-app product IS shown correctly when trying to buy.
  6. The buyer has a valid credit card

Thanks!

like image 279
RE6 Avatar asked Jul 13 '12 19:07

RE6


People also ask

Why won t my Google Play let me buy anything?

Sometimes a transaction is declined because of insufficient funds. Check your account to make sure you have enough to complete the purchase. Your card may have specific restrictions which cause the transaction to be declined.

Can't connect to plays billing service?

Go to Android Settings > Applications (also known as Apps & notifications on some devices) > Google Play Store > Storage > tap on Clear storage and Clear cache. Repeat the same steps for Google Services framework. Try buying again. If you still have an error, try step 2.


2 Answers

Couple of things you have to consider.

  1. Check the public key [Must be your account public key.]
  2. Check if your friend is in the test account list for that product.(Remove it)
  3. In your code use logcat to find the status code. (Use billing receiver for any purchase request code). or Error : Developer Error.

  4. Be sure you are signing with correct keystore.

FYI onRequestPurchaseResponse() inside Dungeon.java get the Response.

Hope will help you.

like image 91
Ajay Kumar Meher Avatar answered Jan 27 '23 17:01

Ajay Kumar Meher


Are you from one of the accepted countries for In App Purchases by Google Play? https://support.google.com/googleplay/android-developer/answer/150324

like image 35
user2832636 Avatar answered Jan 27 '23 17:01

user2832636