android-inapp-purchase

Verifying in-app-purchases

霸气de小男生 提交于 2020-01-14 07:45:24
问题 The sample app that the Google Developers guide refers to has a method called verifyValidSignature() that looks like this in the BillingManager class: /** * Verifies that the purchase was signed correctly for this developer's public key. * * Note: It's strongly recommended to perform such check on your backend since hackers can * replace this method with "constant true" if they decompile/rebuild your app. */ private boolean verifyValidSignature(String signedData, String signature) { try {

Is Google Play Leaderboards suitable to rank users of my application according to their in-app purchases?

纵然是瞬间 提交于 2020-01-06 07:55:34
问题 Users can make in-app purchases in the application of my firm and fix the amount by themselves (I use Google in-app purchases API). They sign-up and sign-in thanks to Google Sign-in API, with and only with their Google Account (no Facebook, no Twitter, etc.). The client asked us to set up a leaderboard. Users who spent the most are first. Users who made cheap purchases are last. The application isn't a game. So it should not be bound to Google Play, in terms, for example, of Android

Is Google Play Leaderboards suitable to rank users of my application according to their in-app purchases?

心已入冬 提交于 2020-01-06 07:55:09
问题 Users can make in-app purchases in the application of my firm and fix the amount by themselves (I use Google in-app purchases API). They sign-up and sign-in thanks to Google Sign-in API, with and only with their Google Account (no Facebook, no Twitter, etc.). The client asked us to set up a leaderboard. Users who spent the most are first. Users who made cheap purchases are last. The application isn't a game. So it should not be bound to Google Play, in terms, for example, of Android

Android: Consume a product after purchase (in-app billing)

拜拜、爱过 提交于 2019-12-23 22:11:54
问题 I have some problems with in app billing, I wanted to create an product inside the app that can be bought several times. But google made the in app billing in a way that a product first must be consumed before you can buy it again. I tried it with the following code: public class HomeFragment extends Fragment { private WebView homesite; private String homeTabUrl; private ProgressBar pBar; private Bundle webViewBundle; private Boolean buddyProfile = false; private Boolean buddyProfile2 = false

Did Firebase start reporting in_app_purchase for subscriptions recently?

风流意气都作罢 提交于 2019-12-22 11:24:09
问题 My Android app has integrated Firebase SDK Firebase is linked to Google Play I'm using subscriptions only In the past there weren't any " in_app_purchase " events automatically reported (comparing to one-time products) I do not report " in_app_purchase " manually from the client or server. But I've got "in_app_purchase" recently with " subscription " (=1) parameter. https://support.google.com/firebase/answer/7061705?hl=en lists next parameters: product_id, product_name, price, price_is

Google Play In-app Billing API version is less than 3

风格不统一 提交于 2019-12-22 04:36:13
问题 I just started beta testing the 2.0 update to the billing library for the Play Store and a lot of my users are getting this error Google Play In-app Billing API version is less than 3 . Is this just a matter of time before they update or are some devices stuck on older versions or what? 回答1: In-app Billing API version goes with the Google Play Store and v3 is actually quite old (at least 3 years old) PBL will check user's client version and will return this error message if their devices have

How to setup In App purchase (Non Consumable)?

那年仲夏 提交于 2019-12-11 15:44:18
问题 I am Implementing In App purchase in my app, using some online tutorial. But the tutorial is for Consumable In App Purchase. But in my case, Users need to buy only once. I modified the Code, to disable the "Buy Button" after buying the In App Purchase. Now it's working fine. But the problem is if I close and open the app, "Buy button" getting enabled. This is my xml code <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"

Android Purchase subscription and introductory price

*爱你&永不变心* 提交于 2019-12-03 12:25:31
问题 Google came with with the idea of introductory price (https://support.google.com/googleplay/android-developer/answer/140504?hl=en). My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions (https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get) Even when I buy a subscription for introductory price and I asked Google Play Developer API for the information about that subscription, I see only the full

Android Purchase subscription and introductory price

淺唱寂寞╮ 提交于 2019-12-03 02:50:48
Google came with with the idea of introductory price ( https://support.google.com/googleplay/android-developer/answer/140504?hl=en ). My question is related to its API. I can't find the way how to get information about this via Purchases.subscriptions ( https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get ) Even when I buy a subscription for introductory price and I asked Google Play Developer API for the information about that subscription, I see only the full price. Even the inappproduct/get does not have any information about introductory price linked to