Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - In-app purchasing issue

I'm implementing in-app purchasing in my application. When i test that im keep getting "Purchase canceled Your payment could not be processed" issue all the times. Im using test account for testing purpose and dummy credit card number for purchasing the in-app billing. I added my test account in my market profile. How to test in-app with sandbox number. please help me.

NOTE: Would like to implement Auto Renewal for my application. Came to know that its not possible in android. Do we have any other way to implement auto renewal in in-app? is it possible to use 3rd party payment gateway for inapp? will android block my account if i implement 3rd party payment gateway?

Please help me

like image 701
Andro Dev Avatar asked Nov 17 '25 01:11

Andro Dev


1 Answers

you are not able to test in app purchase with a dummy credit card number. You have to buy the item for real. Afterward, you can refund the full amount. The only way to simulate a purchase is to use "android.test.purchased" item id.

like image 200
CChi Avatar answered Nov 19 '25 14:11

CChi