You need to sign your APK with your live certificate. Then install that onto your test device. You can then test InAppBilling.
If you are using the android.test.purchased it will work all the way, but you won't have the developerPayload in your final response.
If you are using your own draft in app item you can test all the way but you will be charged and so will have to refund it yourself afterwards.
You cannot buy items with the same gmail account that you use for the google play development console.
For more details see here: http://blog.blundell-apps.com/simple-inapp-billing-payment/
:D
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…