Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to implement in app purchase ios 10 in objective c [closed]

I am developing an app with some chargeable subscription, I want to add in-app purchase for that, so can anyone help me find a helping tutorial or example for it, in ios-10 (objective-c). I have been searching example for it , all I get is for swift. Thank you in advance !

like image 305
kishan Avatar asked Oct 17 '16 06:10

kishan


People also ask

Which framework is needed to support in-app purchases on iOS?

In-App Purchase allows you to embed a store inside your app using the Store Kit framework. The framework connects to the AppStore on your app's behalf to securely process payments from users, prompting them to authorize payment.

Why is my in-app purchase not working?

Restart the device Tap Power off or Restart (depending on your device this text may be different). If needed, hold down the power button again to turn the device back on. Wait for the device to start back up. Re-open the app or game and check if the in-app purchase has been delivered.


1 Answers

Have a deep look here:

https://www.raywenderlich.com/127423/in-app-purchases-tutorial

and

https://www.appcoda.com/in-app-purchase-tutorial/

Objc version:

https://www.tutorialspoint.com/ios/ios_in_app_purchase.htm http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial

and

https://www1.in.tum.de/lehrstuhl_1/teaching/tutorials/511-sgd-ws13-tutorial-store-kit

And from iOS 9.0, in app purchase restore has an issue. Try to use this for restore purchase.

-(IBAction)restorePurchase:(id)sender
{
   [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
   [[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}
like image 128
Jamshed Alam Avatar answered Nov 14 '22 22:11

Jamshed Alam