How to integrate InApp Purchase in Android

2019-02-20 21:04发布

I want to use inapp purchase in my application.FOR inapp I have seen so many tutorial and I have get demo project for that.,but the problem is that when I am clicking in google developer console, it's asking for payment and I only want its public key without payment, I don't want to publish my application on googleplay. two things I want to do

  1. how to create my public key for InAPP Purchase api.

  2. from where I can get my key for inapp?/

I have seen this links here & here

and here is the image snippest here

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-02-20 21:27

I suppose the best tutorials are those of developer.android.com. So first read this: http://developer.android.com/google/play/billing/billing_overview.html You definitely want to add this:

    <uses-permission android:name="com.android.vending.BILLING"/>

to your manifest so that you can later add your keys on the developer console

查看更多
ら.Afraid
3楼-- · 2019-02-20 21:27

Actually you can not test Google InApp purchases without publishing application on play-store whether it is in Alpha Testing Mode.

In your case if you really need to test InApp purchases in your application then below are the steps to do so:

  1. Sign-up on Google Play Console (Paid Once)
  2. Complete your merchant account (Required for InApp)
  3. Get billing-key (Go to Setting->API Access) from play developer console
  4. Use this key into your application to purchase something from play-store (Follow these steps)
  5. Create application on Play Console and Fill all store listing data for same application
  6. Create in-app purchases products on console
  7. Generate signed application and publish it to alpha
  8. Add some testing users for demo testing of your application
  9. After final testing publish it to production for all users

Thanks

查看更多
登录 后发表回答