开发者

Android in-app billing testing

I created product id list for my application in android developer account. Also i created test account to test my in-app purchase implementation. My concern is do i get charged on entering card details from test account for buying the product, to test in-app billing implementation. What is the best way to开发者_如何学JAVA test in-app billing?


The best way to test an in- App is to

mBillingService.requestPurchase("android.test.purchased", "");

This way you neither have to upload your app nor you have to create in app products on marketplace.


Agree with the one mentioned by ingsaurabh, however in case you want to do a real testing of in-app billing I would recommend going through the entire grind.

Things to test: a. Purchase b. Cancel c. Refund d. Restore transactions

For all these you would need a real purchase, which would get charged to your account. However later on you can go ahead and cancel it from your developer console and it would get refunded.


The only way to do end to end testing is to do a real purchase. You have to set up a test account on the developer site first. You don;t have to worry about the charges. You can always refund it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜