Example of using IAP (In App Purchase) for MonoTouch?

I need to implement InApp Purchase in my monotouch application, but I can not find the sample project on the Xamarin website ( http://samples.xamarin.com/iOS ) or in the monotouch sample collection on GitHub ( https://github.com / xamarin / monotouch-samples ).

Any help is gained, thanks.

+2
source share
2 answers

I am working on a purchase example in the MonoTouch application, you can check the code here:

https://github.com/conceptdev/xamarin-samples/tree/master/InAppPurchase

The sample contains two projects, one of which demonstrates Consumable purchases, and one that demonstrates NonConsumable purchases.

NOTE: in this example, RECEIPT VERIFICATION is not yet confirmed, so you have to add this to yourself (why? See hack , fix ). Check the server side @redth code to help create your own receipt verification logic using ASP.NET: https://github.com/Redth/APNS-Sharp/tree/master/JdSoft.Apple.AppStore

You can also consider services such as UrbanAirship or Beeblex (although I have not tried them, therefore cannot) to confirm receipt.

FYI my sample code is partially based on the @jtclancey code of the AppStore: https://github.com/Clancey/ClanceyLib

Finally, you need a little customization for In-App purchases (registering your bank details with Apple, setting up products on the iOS developer portal, providing your application correctly). These steps are the same for MonoTouch and Objective-C, so this Apple setup doco can help. You should also read the Apple App Purchase Documentation in the app for review.

+6
source

I donโ€™t know what you mean by โ€œmonotouchโ€, but I implemented the In-App purchased in my iPad project using this tutorial. This is the best. Just browse through it, download the sample, and you will get what you need for the simple but awesome In-App feature in your project.

http://www.raywenderlich.com/2797/introduction-to-in-app-purchases

0
source

All Articles