in-app-billing

Offering additional media resources (graphics/sounds) as Google Play in-app billed items

一世执手 提交于 2019-12-06 02:43:08
问题 Within my Android app that is available via Google Play, I want to offer additional items that can be bought via in-app billing. The kind of items I want to offer is media content such as graphics and sounds, which would normally go into the res folder of the app. The problem is that these resources must be protected, of course. In its documentation, Google suggests not to store the content inside of the application package but to obtain a key after the item was bought and then send the key

Android in-app billing signature verification in php server

混江龙づ霸主 提交于 2019-12-06 01:40:53
I am working on the IAB v3 in my android application. After every succes purchase, I want my app to send back the sign data and signature to my php server for verification by the public key generated by google developer console. I found the following code. <?php // $data and $signature are assumed to contain the data and the signature // fetch public key from certificate and ready it $fp = fopen("/src/openssl-0.9.6/demos/sign/cert.pem", "r"); $cert = fread($fp, 8192); fclose($fp); $pubkeyid = openssl_get_publickey($cert); // state whether signature is okay or not $ok = openssl_verify($data,

How to activate an in-app product in Google Play Developer Console while application is in draft?

孤者浪人 提交于 2019-12-05 23:18:46
问题 I'm trying to add an in-app product to my draft Android app that has been uploaded to the Developer Console. But since no version of the app had ever been published, the Developer Console gives me this message: Your in-app product has been marked to be activated when the application is published. Is there no way to test in-app products before publishing the app? The guide says that you should be able to do this with a draft application: ... you can publish your in-app items while your APK is

Android In-App billing: Null Pointer Exception

喜欢而已 提交于 2019-12-05 22:35:38
I'm trying to implement in-app billing to my application. I'm reading the guide on developer.android.com, looking at their example application. I started to write basic methods for check if In-App billing is supported, but when i try to call sendBillingRequest i receive the following error: 05-17 14:23:30.479: W/System.err(15332): java.lang.NullPointerException 05-17 14:23:30.489: W/System.err(15332): at resistorcalc.main.billing.BillingService.checkBilling(BillingService.java:63) 05-17 14:23:30.489: W/System.err(15332): at resistorcalc.main.SupportusActivity.onCreate(SupportusActivity.java:24

Check android purchase status but return the purchase token was not found

馋奶兔 提交于 2019-12-05 18:25:18
I refered google play android api to check the purchase and consumption status of an in-app item. For some orders, I can get right result,but some return the error as below: error: { errors: [ { domain: "global", reason: "purchaseTokenNotFound", message: "The purchase token was not found.", locationType: "parameter", location: "token" } ], code: 404, message: "The purchase token was not found." } Purchase token is provided by google, does it can be faked? I found if I cancel the google order, then check the purchase status,it will return the purchase token was not found. if not, i will get the

Android: Issue with in-app billing

天涯浪子 提交于 2019-12-05 16:16:28
I am integrating in-app billing in my application. But, I'm facing issues in testing my app. Every time, I try to purchase an in app item. A wired message comes up The item you were attempting purchase could not be found . On Logcat, following appeared up: 09-10 14:45:02.437: E/IabHelper(12617): Launching buy intent for premium. Request code: 10001 09-10 14:45:02.523: E/Finsky(11260): [8464] FileBasedKeyValueStore.delete: Attempt to delete 'paramspXaplU_vTGhfGqvnmPPddQ' failed! 09-10 14:45:04.000: E/Volley(11260): [8448] BasicNetwork.performRequest: Unexpected response code 500 for https:/

Android inapp billing responseList is empty

守給你的承諾、 提交于 2019-12-05 10:25:06
问题 I have defined some in app products in my app. I've uploaded the apk to the Google Play and added the inapp purchase products on the Google play. I've got my ServiceConnection defined as followed: ServiceConnection mServiceConn = new ServiceConnection() { @Override public void onServiceDisconnected(ComponentName name) { mService = null; } @Override public void onServiceConnected(ComponentName name, IBinder service) { mService = IInAppBillingService.Stub.asInterface(service); connect(); } };

AppLicensing fails - signature is empty string

拥有回忆 提交于 2019-12-05 09:46:33
I've implemented App-Licensing for InApp-Billing and now I'm getting Error.NOT_LICENSED and I have no idea what's wrong. The version I'm working on has not been published to the play store yet. This is the code I use to start the licensing-process: private void checkLicense(int retries) { if (retries != 5) { String publicKey = "YOUR KEY"; final CdcLicenseCheckerCallback callback = new CdcLicenseCheckerCallback(); String deviceId = mPrefsHandler.getDeviceId(); deviceId = deviceId != null ? deviceId : UUID.randomUUID().toString(); mPrefsHandler.setDeviceId(deviceId); Crashlytics.setBool("has

How can i test in-app payments when Google Play App Signing feature is enabled?

孤者浪人 提交于 2019-12-05 09:42:18
问题 I want to test in-app payments and I have Google Play App Signing (GPAS) enabled. To test payments, I need an apk signed with real key (signing key in terms of GPAS). But I do not have private key for signing certificate. It was generated by Google and stored in Google Play. How can I avoid necessity to upload apk to Google Play each time I want to test in-app payments? How can I download signing private key somewhere? 回答1: I have an app in alpha channel and "Google Play App Signing" enabled

Android in-app billing Error: This item could no be purchased. (Error code: IAB-DPTL)

倾然丶 夕夏残阳落幕 提交于 2019-12-05 06:43:38
I'm just beginning to use the android in-app billing system. I tested the Dungeons application sample without any problems. So I'm trying to integrate in-app in my own application, but when I use declared productId or static test id, I'm getting the same error: This item could not be purchased. (Error code: IAB-DPTL) This application is already on the market. I uploaded a signed version that I also pushed on the phone (so it's the same version on both sides). I added the email wich is used on the phone as a test account. Should I activate my application ? (incurring the risk to remove the