7

Inching slowly (but methodically) towards my first implementation of In-app Billing, I reached the point in which I can actually run the market billing sample application: The app is signed and uploaded to the AM, the "product list" has been created per the instructions and a test account has been set in both Google and the phone.

But when I proceed (successfully) with a purchase, despite selecting the test account on the AM, I am prompted to confirm the purchase with my real gmail account, to which my real credit card is linked.

When testing PayPal, for example, one can create test accounts, too, with fake CC numbers, to test freely w/o burdening the real CC system.

Is this available (or possible) for In-app Billing development & testing, too?

Update: I tested this on a different device, having only the test account set, and sure enough the Android Market behaves erroneously, responding the following error message:

The item you were attempting to purchase could not be found.

enter image description here

I know that the item is there and that it is set up properly in the Android Market because this error is never issued on the device with the real account with the CC number (there I receive a perfect behavior with the masked CC number, the Total and an Accept & buy button). Why does Google write such misleading error messages?

Update: I found this incredible thread, which seems to partially answer my question. Unless something new has been introduced by Google since then.

Community
  • 1
  • 1
Bill The Ape
  • 3,261
  • 25
  • 44

2 Answers2

5

You have to use a real credit card. However, you can always refund your test purchases!

Note that you'll have to make the purchases from a test account that's separate from your developer account, since Google Checkout doesn't allow an account to buy from itself.

Bruno Oliveira
  • 5,056
  • 18
  • 24
  • 12
    Using a real credit card then refund purchases can be done with any account, why do I need a **test** account then? What is the difference between a "test account" and regular account? Can the test account use the same credit card of the master (developer/merchant) account? +1 for now. – Bill The Ape Jan 08 '12 at 05:04
  • 5
    The difference is that the test account can see the in app purchase on an un-published app, where as the other (non test accounts) cannot see the app (because it is not published). Additionally the developer account cannot buy items from itself (as Bruno mentioned above). – Syntax Dec 13 '12 at 06:58
  • @BillTheApe i am testing this inapp now i want to refund then how can i refund it? – CoronaPintu Oct 28 '13 at 09:35
  • 1
    I think @Syntax has a good point on that but since the In-App documentation states this: "When purchases are complete, Google Play prevents the orders from going to financial processing, ensuring that there are no actual charges to user accounts, and automatically canceling the completed orders after 14 days". I can't see any reasons to refund given the fact that it wasn't processed. – Amaro Nov 28 '13 at 21:03
  • 3
    Is it still true that a real credit card has to be used even for test purchases? Also, what is the logic behind this, to use real credit cards in a sandbox environment? – Jonny Aug 10 '15 at 02:58
1

Test accounts are useful when you upload your application as a draft application,not published.Then using test account you can do even purchase of unpublished application.Hope this helps.

hacker
  • 8,919
  • 12
  • 62
  • 108