Skip to main content

Posts

Showing posts with the label in-app-purchase

When to use restoreCompletedTransactions for in-app purchases?

For a basic app with nonconsumable in-app purchases, has anyone figured out best practices for using SKPaymentQueue's restoreCompletedTransactions ? Observations I know it's recommended to always register a transaction observer to receive pending transactions that make their way back to the app, but this is a different question. It looks like restoreCompletedTransactions is something the app has to actively decide when to call to poll for all the purchases the customer has already made. From what I can tell, the method is designed to retrieve purchases that may have been lost. For example a customer might install or move an app to a new device in such a way where the user defaults (where Apple recommends recording nonconsumable payments) are lost or reset. Concerns What's not clear to me is how to automatically detect this condition (i.e. how to decide when to poll for missing purchases) in a reliable way. I don't want to screw this up and risk denying a c

inapp purchase verifyreceipt status = 21002

i was developing in app purchase app.i was created test account in my apple id. inapp purchase app is tested in device i was entered test account details in inapp purchase application.transactions are completed if i verify receipt in sandboxurl:https://sandbox.itunes.apple.com/verifyReceipt i got a error receipt like this format exception = "java.lang.NullPointerException"; status = 21002; please help me.

Can i sell ticket in an iphone app without IAP

I'm building a app for an online service that sell tickets on their website. We want to allow people to buy ticket from the iphone but we can't use in app purchase as it cost too much. So my question is, can we have a button on the Event detail view "View Tickets", then when clicked do on of the follow preferably the 1: Open a webview from the app that display the mobile optimized website. Open safari on the event detail screen. Thanks.