iphone - Using a Generic In-app Purchase -


I'm finished working on an iOS app that allows users to browse, purchase and download items from a large multimedia library. Allows a railroad app to have hundreds of buyer items in the online hosted library, and it will be very much expanded in the future.

First of all, I intended to have an underlying in-app purchase item (on iTunes Connect) library for each item. However, I decided that it would be a pain to create all these hundreds of in-app purchase items. Besides, I want to be able to make additional changes in buyer eligible items through my CMS without making any changes to iTunesConnect.

Instead, the app user has now created an account with the Rail app. When they buy an item, they first buy a normal in-app purchase item. Once the transaction is completed, the app connects to my rail app, records purchases, and downloads the purchased content.

One thing that bothers me about this approach is that the user successfully failed to connect with the in-app purchase Apple, but in some way successfully with the Rail app, Purchase will not be recorded and the content will not be downloaded, even if the user has paid. In addition, the built-in purchase recovery methods of Apple will not work, because the purchase item is normal, only my train app will remember what the goods are purchased by the user.

So, I'm going to add a lot of error checking and state-recovery around the whole process. To make sure that if he is in trouble then he can be fine.

I just wanted to keep it out, if someone had some advice for opinions or sharing.

Thank you

Charlie

UPDATE

It's been a long time now, but I'm finished Not using a normal in-app purchase seemed like a big risk. Eventually, with personal in-app purchases, Apple monitors the purchase and provides a way to restore it. So it was understandable for me and its buyers to take advantage of it instead of compelling themselves to maintain their database of their own.

It was a real pain in the ass to add them all into app shopping items in ITC The ITC interface is very awesome. I ran into many problems but eventually they all got there, and now things are working less or easier.

Finally, I can say that even if there is pain in making all those purchases, it is worth it. Or instead it should be worth it if it is making a purchase record in ITC, you do not have trouble for what you expect to achieve by selling it, then you probably have big problems with your business model!

Once successful in-app message has returned from Apple ...

1. It is better to store and delete ProductID in a dictionary

2. Ignore any event until the transaction is completed.

3. Better to keep track of transactions, to store transaction information (product side, user, transaction receipt)

3. Alternatively, you can provide services from a website, so that users can lose their money while app purchases.

Comments