ICoder
ICoder

Reputation: 1347

IApp purchase doubts in iphone

Ha ii,everybody.I have a reader application which has a database downloading option through inapp,that is,the user can download the diffrent languages of databse(Sqlite) through inapp.I i added the classes from MugunthKumar classes and added it into the project.I have 5 buttons hindiDB,HebrewDB,japaneseDB,portuguesDB etc,etc.If the user tap any of the button above it will automatically connect to in-app and if the payment done ,it need to download that DB to my app.I write this code in one of my button click:

-(IBAction)_clickbtnhindilang:(id)sender
{
[[MKStoreManager sharedManager] buyFeature:kFeatureAId 
                                onComplete:^(NSString* purchasedFeature)
 {
     NSLog(@"Purchased: %@", purchasedFeature);
 }
                               onCancelled:^
 {
     NSLog(@"User Cancelled Transaction");
 }];
}

and the console shows that it cannot built in ios stumulator and ned to build in realdevise,so i build it with a real devise and the console shows

Review request cannot be checked now: (null)
2011-12-06 14:39:33.958 Bible[965:707] User cancelled transaction: <SKPaymentTransaction: 0x373110>
2011-12-06 14:39:33.961 Bible[965:707] error: Error Domain=SKErrorDomain Code=0 "Cannot connect to iTunes Store" UserInfo=0x3dc4d0 {NSLocalizedDescription=Cannot connect to iTunes Store}

I didnt know how to do a inapp purchase.How can done this with MukunthKumar storekit class. Thanks in advance.

Upvotes: 0

Views: 545

Answers (1)

shannoga
shannoga

Reputation: 19869

Look here

http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/

And slow down a little bit, your rush will prevent you from learning.

Shani

Upvotes: 1

Related Questions