Reputation: 21880
I've already tested my In App Billing code using the static response codes, but I'm taking the next step to test with my real app ids.
I've got the ids configured in Google Play. I've got my test accounts set up.
When I try to initiate a test purchase, I'm asked to provide Credit Card info... is it going to charge me money?
I expected the test account to use a fake CC just like the static skus did.
Upvotes: 3
Views: 5854
Reputation: 35661
To test in app purchases you should set up a separate google account because you are unable to purchase your own apps.
Using the test account you should buy the item you are testing using a real and valid credit card.
If you go into your developer console, you can refund/cancel any order at any time. If you refund within about 15-20 minutes of purchase then the charge will never appear on your card. If you refund later than this then it will appear as a charge and a separate refund.
You do not lose anything. You can always refund the whole amount.
Ignore the message "This in-app purchase cannot be refunded". This applies to the purchaser. The developer has discretion to refund any order at any time. I have refunded an order that was over a year old in the past.
Update: This can now be done https://developer.android.com/google/play/billing/billing_testing.html?rd=1#test-purchases
Upvotes: 2
Reputation: 1954
You have to input a real CC when testing as you said. When I tested in my app I just went into my Developer Console and cancelled the order by hitting the "Cancel Entire Order" button. Doing so refunded the money to my card.
Upvotes: 2
Reputation: 2629
A test purchase shouldn't charge your card. Even if it does, you can immediately cancel the order. You can make a real purchase and immediately cancel the order to get a full refund.
I have performed multiple test and real In-App Purchase transactions on my own applications and have never been erroneously charged or unable to fully refund myself.
Here's the process I successfully use to refund purchases:
A refunded order in your Google Checkout transaction list should look something like this:
I have had to refund myself on a few occasions (like above) and have never had a problem. I apologize if you've lost your $0.99 on my account.
Upvotes: 1