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 that, 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

9247 questions
50
votes
3 answers

Unable to remove an in-app subscription from my google play developer console

I have published a new version of my app, and although it has no In-app functionality or billing permission, the Google play page of my app shows that the app has a 0.50cent in-app item for purchase. This is because a few months ago I was playing…
Victor Caveda
  • 686
  • 1
  • 6
  • 6
49
votes
8 answers

You are not authorized to make purchases of this InApp in Sandbox at this time

I'm trying to make in-app (non-consumable) in my app. I'm trying to buy the package but I can't... Of course, I've looked here for answer, but I have one actual account everywhere - at developer.apple.com - also I've created provisioning profiles,…
DiDinko
  • 523
  • 1
  • 4
  • 11
48
votes
4 answers

android billing:4.0.0 - queryPurchases(INAPP) and purchase.getSku()

I refresh to android billing version 4 and 2 things are not working anymore. First I have this: else if (billingResult.getResponseCode() == BillingClient.BillingResponseCode.ITEM_ALREADY_OWNED) { Purchase.PurchasesResult…
RGS
  • 4,062
  • 4
  • 31
  • 67
48
votes
5 answers

iOS recurring subscription policy for service, not content

Apologies in advance for a policy, rather than a programming question, but given the paucity of information available online I hope I can be forgiven for asking it here. I would like to use the new recurring subscriptions from Apple in an iOS app. I…
Roger
  • 15,793
  • 4
  • 51
  • 73
46
votes
6 answers

iOS 5 does not allow to store downloaded data in Documents directory?

I have made an application for my client by keeping target iOS as 4. But since the application still not submitted to Apple store, my client is planning to upgrade it for iOS 5.0. For this I read the guideline from Apple and found that "Only…
Naved
  • 4,020
  • 4
  • 31
  • 45
46
votes
2 answers

In App Purchase Crashes on [[SKPaymentQueue defaultQueue] addPayment:payment]

My In-App-Purchases work. I present a ModalView with a "Buy" UIButton. You click the button and the In App Purchase goes through the process. You can even do it several times in a row. The problem occurs if you open the Modal View, then close the…
Chris
  • 5,485
  • 15
  • 68
  • 130
46
votes
7 answers

in-app billing android return authentication is required when try to subscribe to product

This is my first time to deal with In-App Billing in android 1) I am using API v3 2) I have upload alpha version of my app to be able to test then 3) I have created a subscribe product 4) This is my code to subscribe in the…
46
votes
10 answers

iPhone In App Purchase - response.products are still empty?

Basically, I've tried to set up in app purchases on a test app before I implement them into a proper app that my company is working on. I've read the Store kit pdf and other snippets about a 1000 times, but the products are still being returned as…
user218485
  • 527
  • 1
  • 8
  • 9
46
votes
20 answers

iPhone In-App Purchase Store Kit error -1003 "Cannot connect to iTunes Store"

I've been working on adding in-app purchases and was able to create and test in-app purchases using Store Kit (yay!). During testing, I exercised my app in a way which caused the app to crash mid purchase (so I guess the normal cycle of receiving…
Rei
  • 1,148
  • 2
  • 12
  • 16
46
votes
1 answer

In-app billing (v3) - IllegalArgumentException: Service not registered:

I have just released an app with in-app billing. So far no crashes have been reported to google play (this only happens when the user takes the trouble to report the crash) but I do have some reports of crashes via flurry (which is automatic). The…
Mick
  • 8,284
  • 22
  • 81
  • 173
44
votes
4 answers

How to test In App Purchases through Apple TestFlight?

I uploaded my first app to iTunes Connect (iOS 8, iPhone) and it's now available through Apple TestFlight for internal and external testers. I created a Non-Consumable in app purchase for it and would like to test it. How can I add it to my beta…
Tom
  • 5,588
  • 20
  • 77
  • 129
44
votes
4 answers

In app purchases restore Button

I have implemented in app purchases into my app update for the first time, only too wait 3 weeks and have it rejected for the following reason: We found that your app offers In-App Purchase/s that can be restored but it does not include a…
Alex G
  • 2,299
  • 5
  • 37
  • 54
42
votes
5 answers

“The item you were attempting to purchase could not be found” Android in-app billing

I am receiving this error while testing my app. The app is signed and uploaded to the alpha testing portion of the developer console. The in-app item has the status "Active". I have entered an account other than my developer account in "testing…
CyberedElf
  • 539
  • 1
  • 4
  • 12
42
votes
7 answers

Change paid app to free but know if user previously purchased it

I am considering changing my paid iOS app to be free, making it ad based, and having an in-app purchase option to remove the ads. This sounds like a good idea if I was just launching the app, but we have over 30k paid downloads, and I don't want…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
42
votes
6 answers

Verify receipt for in App purchase

I have been playing around with in app purchases for a few days, everything works fine up until the point where I try to validate the receipt with the app store, as i am constantly getting back an invalid status. I am passing the receipt data to my…
Andy
  • 423
  • 1
  • 5
  • 4