Better documentation needed
iamcam opened this issue · 3 comments
I know CargoBay works well, but exactly how to use it is a bit obtuse from the limited documentation. As somebody figuring out IAP for the first time, it would be helpful to have some general idea about how to set up the various transaction queue observers, and what to do once called. I eventually ran across LXReceiptStore and pieced together enough to get a basic implementation of my own, but it would be much more helpful if CB were documented with intended use cases and helpful hints.
In the same thread, adding more comments to code would be helpful.
Otherwise, great work! This has really saved me quite a bit of time from having to do my own solution from scratch or tutorial.
This is definitely in the list of todo but I have yet find time though. I try to find time to document this well soon. :)
@lxcid I've read several short tutorials on IAP and I think your LXReceiptStore is on the path of how I think a good generic implementation could work. I really like using a helper singleton in my implementation with simple methods like buyItem:(NSString *)productId
and filling in the rest as needed for my use cases. Perhaps documenting a barebones implementation with suggested actions in comments in the success + failure blocks. For the most part it seems that a lot of the implementations I've looked over have quite a bit of code and logic in common.
It's not a fully-baked example, but it's a vast improvement: CargoBay.h is now properly documented.
@iamcam If you have any more specific ideas, I'd love to hear them. Feel free to open new issues for anything you'd like to see.