Testing Android Market in-app billing with dummy credit card credentials

后端 未结 4 1110
挽巷
挽巷 2020-12-18 18:07

I have configured an Android application to use the in-app billing module as documented at: http://developer.android.com/guide/market/billing/index.html

It works fin

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-18 18:40


    Update:
    Inappbilling library 1.0 just released to make this easier.


    Kumar Bibek has already answerd above: Still I am giving an explanation:

    Hardcode the following debug options in the launch purchase flow to get the desired output.

    • android.test.purchased
    • android.test.canceled
    • android.test.refunded
    • android.test.item_unavailable*

      mHelper.launchPurchaseFlow(Activity.this, "android.test.purchased", 1000, mPurchaseFinishedListener, payload);

    The above will give these screens:

    enter image description here

    On clicking Buy.

    enter image description here

提交回复
热议问题