In the open source framework, this is the code to buy item:
[StoreInventory buyItemWithItemId:@"[itemId]"]
What is the equivalent code to buy item from storefront?
If you're using Storefront, the code to buy an item is:
([StoreInventory buyItemWithItemId:@"your_item_id"])
.