Questions tagged [in-app-purchase]

In-app purchase (IAP) usually refers to the acquisition of a feature for an application from within the application itself or the buying of digital goods from within an application. Use this tag for questions about writing code for the buying process. Questions about app-store policies or about specific transactions are off-topic on Stack Overflow and should not be posted.

In-app purchases (IAP) are digital goods which, when bought from within an app, often either unlock new features, enable the user to skip mundane tasks or provide additional content.
Such purchases were made popular by Apple's iOS SDK, iPhones, iPod Touches and iPads, but are not limited in any way to these platforms.

Don't ask questions about the transaction process itself, except where it pertains to coding problems. Remember that Stack Overflow cannot answer questions specific to Customer Support

How to Implement In-App Purchase:

Libraries

8671 questions
3
votes
1 answer

What's the path name of appStoreReceiptURL in App Review environment?

Is Bundle.main.appStoreReceiptURL?.lastPathComponent "receipt" or "sandboxReceipt" in App Review environment? I want to know the result of this TestFlight check code in App Review environment.
an0
  • 16,371
  • 11
  • 78
  • 132
3
votes
1 answer

Server product delivery model with Android in-app purchases?

Say the app sells songs and the actual songs are stored on an outside server. The app sends a download request for a song. The server now needs to authenticate that the user has actually bought the song before sending the MP3 file. Apple provides a…
randomguy
  • 11,352
  • 14
  • 65
  • 94
3
votes
0 answers

Project has not been linked in Google play developer console, error came while I called the Google Developer API

I have integrated Google In-App subscription in one of my apps. It was integrated successfully. But, one mistake I have made while making subscription plans without a linked project with Google Play Developer Console. I found the same issue's answer…
3
votes
4 answers

In-app purchase and subscriptions in android apps

Can we have in-app purchase and subscription options in android apps? If yes, how do we implement it?
techno
  • 623
  • 2
  • 8
  • 16
3
votes
1 answer

Android billing null purchases list

I'm trying to implement In-App purchases using 'com.android.billingclient:billing:2.0.3' library. the app is released in the Internal test track, and have one managed product, and a single tester (another account of mine), I managed to launch a…
yazan sayed
  • 168
  • 1
  • 13
3
votes
0 answers

Purchase Status of an In-App purchase is 'null'

I am working on in-app purchases for my flutter app, using the official in_app_purchase plugin. After implementing the first IAP I created a test-track and a non-consumable product in the Play Console and added myself as a tester. The purchase…
3
votes
1 answer

What permissions are required for validating Google Store In-App Purchases?

I am trying to validate user purchase with the token received from the client (internal release). For that I am using Python script with Google Python API Client (https://github.com/googleapis/google-api-python-client). import httplib2 from…
UrK
  • 2,038
  • 2
  • 25
  • 36
3
votes
1 answer

How does verify purchase was signed correctly using developer's public key, at server side will make the app more secure?

Based on the in-app purchase code example at https://github.com/googlesamples/android-play-billing/blob/master/TrivialDrive_v2/shared-module/src/main/java/com/example/billingmodule/billing/BillingManager.java#L369 /** * Verifies that the purchase…
Cheok Yan Cheng
  • 49,649
  • 117
  • 410
  • 768
3
votes
1 answer

Real-time Developer Notifications Not Sending IAP Subscription Event Messages

After setting up Android real-time developer notifications (RTDN) as a way to receive IAP subscription state changes to my web server, I only actually receive a certain push from Google's RTDN webhook that never includes the subscription details. …
prafferty
  • 81
  • 8
3
votes
1 answer

Limit Functionality with Android Subscriptions

I am trying to create a in-app billing for android application that will allow users to buy a subscription. I have managed to do that and I am able to buy subscriptions but what I don't get is how can I limit some features in app to those who have…
3
votes
2 answers

How to test auto-renewable subscription?

I have an app with an auto-renwable item in the inApp-Purchase. Let's say, with an period of 7 days. If a test-User buys the item... How can I check the expiration-date? I can observe it with restoreCompletedTransaction, but there will be an…
xnz
  • 63
  • 1
  • 5
3
votes
1 answer

Testing In-App purchases on iOS

I am having trouble querying product info from the app store via in-app purchasing. I have followed this guide closely, but have one lingering question. When you add products to iTunes connect, is it required to "submit for review" before they are…
jimj
  • 916
  • 2
  • 10
  • 19
3
votes
0 answers

Flutter: remove non-consumable purchase with in_app_purchase package for testing

I am testing in_app_purchase package. No problems when using consumable subscriptions, but for non-consumable (buy once) I cannot find a way to remove it for testing purpose. I see in the InAppPurchaseConnection class there is…
MarcoB
  • 33
  • 1
  • 4
3
votes
1 answer

In-app billing or Paypal

I'd like to insert an in-app payement method in my app. What is the best solution for you? But most of all, why? Is there a more convenient or profitable one?
Redax
  • 9,011
  • 6
  • 29
  • 39
3
votes
1 answer

Refresh Play Billing purchase cache

I'm using the Google Play Billing Library. The documentation for BillingClient.queryPurchases says: Get purchases details for all the items bought within your app. This method uses a cache of Google Play Store app without initiating a network…
Dan Fabulich
  • 31,628
  • 35
  • 121
  • 153
1 2 3
99
100